On 3/7/11 7:38 AM, Aman Thakral wrote:
On a similar note, are there any alternatives available to nearest
neighbor? For example, kriging? I remember seeing a geostats library
in python (hpgl i think), but I found the API rather impractical and
difficult to use.
Thanks,
Aman
Aman: The basemap interp function is just a convenience function for
simple regridding (linear, cubic and nearest neighbor).
scipy.interpolate
(http://docs.scipy.org/doc/scipy/reference/interpolate.html) provides
many more options.
-Jeff
On Mon, Mar 7, 2011 at 8:23 AM, Jeff Whitaker <jsw...@fastmail.fm
<mailto:jsw...@fastmail.fm>> wrote:
On 3/7/11 5:50 AM, Jeff Whitaker wrote:
> On 3/6/11 8:58 PM, Juan A. Saenz wrote:
>> Hi,
>>
>> I use Basemap and netCDF4-python on a regular basis, and find them
>> very useful tools. Thank you for developing them!
>>
>> I noticed that when using basemap.interp for nearest neighbor
>> (order=0) the interpolation is not masked, and nearest neighbor
masked
>> values will be used in the interpolation. I was wondering if
you could
>> suggest a way to do nearest neighbor interpolation where masked are
>> supported, i.e. nearest neighbor values that are not masked.
>>
>> Thanks for your help,
>> Juan
>>
> Juan: I agree that this would be desirable behavior.
Unfortunately,
> it's not obvious to me how to do it. I'll think about it and
get back
> to you. (cc'ing matplotlib-users list).
>
> -Jeff
>
Juan: On second thought, I'm not sure this is desirable behavior. I
would guess that most of the time, if a nearest neighbor is
masked, the
user would expect the interpolation routine to return a masked
value. I
would be interested to hear what others think.
-Jeff
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
<mailto:Matplotlib-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users