The data that I have is the frequency (f
) and theta *(th
) *which are coordinates that correspond to a 2d object beam (b
). i.e: (f_i, th_i) == b_ii
.
I set up the 2d interpolation using scipy.interpolate.interp2d
. Works well, until I use new input data in descending order or with masked arrays (the mask values become 0
) which re-orders the data such that zero values are first.
If I re-apply the mask it will appear in the incorrect place due to the ordering of the data. Does anyone have a simple workaround?
Note: New input values are within the bounds of the original grid setup.