Re: [Matplotlib-users] Basemap interp nearest neighbor

2011-03-11 Thread Juan A. Saenz
Jeff, thanks for your reply. One situation where one might require masked nearest neighbor interpolation is when, on a given fixed grid, interpolating velocities on cell corners (B-grid) to faces (C-grid). Cells will be defined as either land or ocean cells, masked or un-masked respectively. Th

Re: [Matplotlib-users] Basemap interp nearest neighbor

2011-03-11 Thread Juan A. Saenz
If I think of something, I'll let you know. In the meantime, I'd like to point out the following: Nearest neighbor returns a masked interpolation point if the nearest neighbor is masked (this is just what you've already told me). If there are two equidistant neighbors, it returns the one on the

Re: [Matplotlib-users] Basemap interp nearest neighbor

2011-03-07 Thread Jeff Whitaker
On 3/7/11 2:25 PM, Juan A. Saenz wrote: > Jeff, thanks for your reply. > > One situation where one might require masked nearest neighbor > interpolation is when, on a given fixed grid, interpolating velocities > on cell corners (B-grid) to faces (C-grid). Cells will be defined as > either land o

Re: [Matplotlib-users] Basemap interp nearest neighbor

2011-03-07 Thread Jeff Whitaker
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 bas

Re: [Matplotlib-users] Basemap interp nearest neighbor

2011-03-07 Thread Aman Thakral
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 On Mon, Mar 7, 2011 at 8:23 AM, Jeff Whitaker wrote: > On

Re: [Matplotlib-users] Basemap interp nearest neighbor

2011-03-07 Thread Jeff Whitaker
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

Re: [Matplotlib-users] Basemap interp nearest neighbor

2011-03-07 Thread Jeff Whitaker
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 neigh