topfromirr
Interpolation
Return value
2D array the interpolated data
Parameters
method
in
required
type: string
datain
in
required
type: 2d array
lonin
in
required
type: 2d array
latin
in
required
type: 2d array
mskin
in
required
type: 2d array or -1
lonout
in
required
type: 1d or 2d array
latout
in
required
type: 1d or 2d array
mskout
in
required
type: 2d array or -1
Keywords
WEIG
type: 2d array
ADDR
type: 2d array
Examples
To interpolate 1 field:
IDL> tncep = fromirr('bilinear', topa, glamt, gphit, tmask[*,*,0], lonout, latout, mskout)
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 fromirr)
IDL> t1ncep = fromirr('bilinear', topa, glamt, gphit, tmask[*,*,0], lonout, latout, mskout $
, 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> t2ncep = fromirr('bilinear', topa, WEIG = a, ADDR = b)
Version history
Version
$Id: fromirr.pro 372 2008-08-08 12:31:53Z pinsard $
History
June 2006: Sebastien Masson (smasson@lodyc.jussieu.fr)
Known issues
Restrictions
We supposed the data are located on a sphere, with a periodicity along
the longitude.
Note that the input data can contain the same cells several times
(like ORCA grid near the north pole boundary)
Statistics
McCabe cyclic | 4 |
McCabe essential | 1 |
McCabe modular design | 1 |