topfromreg
Interpolation
Return value
2D array the interpolated data
Parameters
method
in
required
type: string
datain
in
required
type: 2d array
lonin
in
required
type: 1d or 2d array
latin
in
required
type: 1d or 2d array
lonout
in
required
type: 1d or 2d array
latout
in
required
type: 1d or 2d array
Keywords
WEIG
type: 2d array or variable name
ADDR
type: 2d array or variable name
NONORTHERNLINE
NOSOUTHERNLINE
Examples
To interpolate 1 field:
IDL> topa = fromreg('bilinear', tncep, xncep, yncep, glamt, gphit)
or if you have several fields to interpolate from the same source and target grids
1) get back the weights and addresses in variables a and b
(that must be undefined or equal to 0 before calling fromreg
IDL> t1opa = fromreg('bilinear', t1ncep, xncep, yncep, glamt, gphit, WEIG = a, ADDR = b)
IDL> help, a, b
2) use a and b that are now defined to bypass the computation of the weights and addresses
and speed-up the computation!
IDL> t2opa = fromreg('bilinear', t2ncep, xncep, yncep, glamt, gphit, WEIG = a, ADDR = b)
Version history
Version
$Id: fromreg.pro 372 2008-08-08 12:31:53Z pinsard $
History
November 2005: Sebastien Masson (smasson@lodyc.jussieu.fr)
Known issues
Restrictions
We supposed the data are located on a sphere, with a periodicity along the
longitude.
Statistics
McCabe cyclic | 5 |
McCabe essential | 1 |
McCabe modular design | 1 |