Interpolation to fixed points. [message #4122] |
Tue, 02 May 1995 00:00 |
afl
Messages: 51 Registered: December 1994
|
Member |
|
|
I am looking for a routine that would perform bi-linear or
cubic spline interpolation on a cartesian grid.
This is the type of functionality I am looking for...
Let's assume I have data (data_in) at fixed points on a grid.
The grid points are defined by two vectors (x and y).
I would like to interpolate data_in to another set
of grid points given by two vectors (xnew and ynew).
The function call would look something like this.
data_new = interp(data_in, x, y, data_out, xnew, ynew, /spline)
Where I am passing in data_in, x, y, xnew, ynew
(and setting the spline keyword, of course), and
I am getting back data_new.
Does anyone have this type of IDL code lying around?
--
Andrew F. Loughe email: afl@cdc.noaa.gov
University of Colorado, CIRES voice: (303) 492-0707
Campus Box 449 fax: (303) 497-7013
Boulder, CO 80309-0449 USA
|
|
|