Re: [Matplotlib-users] Strange behavior with basemap.interp() and masked arrays

2013-06-26 Thread Benjamin Root
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

Re: [Matplotlib-users] Strange behavior with basemap.interp() and masked arrays

2013-06-26 Thread Jeff Whitaker
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