I have done something slightly different that works more generally. I am
trying to recall it from memory, so some details may be wrong.
Essentially, do the interpolation you want on a filled version of the
masked array (filling with a value that makes sense for your data). Then,
do the same interp
Goodman, Alexander (398J-Affiliate)
June 24, 2013
6:27 PMHi Jeff,Thanks
for the quick reply. However I am a little lost with your suggested
solution. The issue here is that if datain is a masked array, dataout
will not be a masked array when order=3 is used unless masked=True
Goodman, Alexander (398J-Affiliate)
June 24, 2013
4:30 PMJust something I
thought I should add to this, but would the following code seem like a
reasonable workaround? Basically, since map_coordinates() cannot handle
mask arrays, I thought that perhaps passing in the actual ma
Hi,
I am trying to use basemap's interp function for regridding purposes, and I
need to be able to handle masked arrays. Using bilinear or nearest-neighbor
interpolation (order=1, order=0), it seems to work fine for masked arrays.
However, none of the elements get masked after using cubic spline
i