INTERPOLATE function - points outside the range [message #92912] |
Tue, 22 March 2016 07:21  |
dmfl0590
Messages: 17 Registered: December 2015
|
Junior Member |
|
|
Hi
I wanted to ask how does the INTERPOLATE function deals with interpolates outside the field of view?
There is a note in the help file:
"Location points outside this range are considered missing data."
It's consider the points outside the range as missing. This means INTERPOLATE puts zero? or does it doing something else?
|
|
|
Re: INTERPOLATE function - points outside the range [message #92914 is a reply to message #92912] |
Tue, 22 March 2016 07:54  |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
On Tuesday, March 22, 2016 at 10:21:33 AM UTC-4, dmfl...@gmail.com wrote:
> Hi
>
> I wanted to ask how does the INTERPOLATE function deals with interpolates outside the field of view?
>
> There is a note in the help file:
> "Location points outside this range are considered missing data."
>
> It's consider the points outside the range as missing. This means INTERPOLATE puts zero? or does it doing something else?
I'm not sure which help file you are looking at. The IDL 8.5 help file discusses this in detail http://www.harrisgeospatial.com/docs/INTERPOLATE.html
"Note: If the MISSING keyword is not set, then location points outside the bounds of the array P--that is, elements of the X, Y, or Z arguments that are either less than zero or greater than the largest subscript in the corresponding dimension of P -- are interpolated to the closest value within the bounds of the array P. If MISSING is set then points outside of the bounds are set to the missing value."
MISSING
The value to return for elements outside the bounds of P. For one-dimensional input, the bounds of P are 0 to n, where n is the number of elements in P. For higher-dimensional input, the bounds of P are 0 to n-1 where n is the largest subscript of the corresponding dimension of P.
Note: If MISSING value is set to a complex number, IDL uses only the real part."
|
|
|