comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Interpolate the NaN in 2D array.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Interpolate the NaN in 2D array. [message #91526 is a reply to message #91516] Thu, 23 July 2015 20:40 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Thursday, July 23, 2015 at 7:58:10 AM UTC-4, Haje Korth wrote:
>
> INTERPOLATE (instead of INTERPOL) does 2D interpolation. It has a MISSING keyword. Try setting MISSING=!value.f_nan.

I don't believe that INTERPOLATE() can deal with NaN values. The MISSING keyword is used to set an *output* value to elements outside of the range of the input array.

And INTERPOLATE() does not have any way to recognize NAN values as special. For example,

IDL> a = dist(5)
IDL> a[2,3] = !values.f_nan
IDL> print,interpolate(a,2,3)
NaN
IDL> print,interpolate(a,2.3,3.3)
NaN
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: compass search
Next Topic: !x/y.window & convert_coord giving unwanted offset to my image scale

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:49:50 PDT 2025

Total time taken to generate the page: 0.00255 seconds