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

Home » Public Forums » archive » interpolation question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
interpolation question [message #48395] Wed, 19 April 2006 21:25 Go to previous message
chen123.dian is currently offline  chen123.dian
Messages: 4
Registered: April 2006
Junior Member
Hi, I want to use nearest-neighbor method to interpolate 2-D data.
After reading some posters here and idl references, I am still confused
how to do. I use a 1-D data to explain my problem. For example, there
is x-arrary, [1.0, 2.9, 5.1], the corresponding y-arrary is [10, 50,
80]. Now we want to get the y-values at x-value [0.5, 2.6, 3.1, 4.6]
using nearest-neighbor method. The result of y-values should be [10,
50, 50, 80]. Can the IDL function of interpolate.pro do this work? The
input of interpolate.pro, X,Y,Z, arrays of numeric type containing the
locations for which interpolated are desired, is very confuse. Is there
any function like the function interp1 (interp2 for 2-D data) for
matlab? Like, y_values=interp1(x, y, x-values, 'nearest', 'extrap').

Thanks in advance.

Chen
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDL 6.2 Array Definition Question (Program code area full)
Next Topic: Re: New Image Processing Routines

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

Current Time: Fri Oct 10 10:34:00 PDT 2025

Total time taken to generate the page: 0.71905 seconds