[SciPy-user] cookbook example on irregularly spaced data fails

Robert Kern robert.kern at gmail.com
Thu Sep 21 14:31:13 EDT 2006


Craig Maloney wrote:
> Hi all.
> 
> I'm trying to use the delaunay module in the sandbox to do natural 
> neighbor interpolation.  I'm trying to follow the cookbook example at:
> 
> http://www.scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_data
> 
> The "zi's" I get at the end of the day are all NaN.  If I play around 
> with the parameters, I can get *some* of the zi's to be nan.
> 
> Any ideas of what might be wrong?

Not really. It is working fine for me. Some of the values must be nan (or 
whatever you use for default_value when calling nn_interpolator()) because the 
requested points are outside of the convex hull.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco



More information about the SciPy-User mailing list