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

Craig Maloney cmaloney at kitp.ucsb.edu
Thu Sep 21 13:44:58 CDT 2006


Yep.  That was it.  Smaller grid has no NaN's.  (Apparently not *all*  
of them were NaN on the big grid... guess the boundary is the first  
thing which I looked at.).  Thanks.

On Sep 21, 2006, at 2:31 PM, Robert Kern wrote:

> 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
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20060921/acd7268e/attachment.html 


More information about the SciPy-user mailing list