Question:
Hi I’ve been stuck on this error for a while now! I want to interpolate data 3 D and then display it in 2D (in Basemap). Unfortunately, I get this error when I want to plot the grid[long], grid[lat] and the interpolation values with contourf:y = df['variable'].values.tolist()
but this did not change the error. Unfortunately, as I am new to arrays, I do not have a good understanding of them and need to solve this error in a timely manner.Answer:
Hmm.. Seems to be a problem with np.compresscondition needs to be a 1-d array of bools according to: https://numpy.org/doc/stable/reference/generated/numpy.compress.html#numpy.compress This is what happens to grid[‘x’]
If you have better answer, please add a comment about this, thank you!