The variable you are working with, has 3 dimensions (e.g. XLAT, XLONG, TIME). But when you are feeding data you might have provided only one set of data which can cause this type of errors. You can either edit the dimensions of the variable or can check the data.