topfitintobox domain compatibility
Return value
an array with dimensions matching the domain
or -1 if there is an error...
Parameters
field
in
required
nx
in
optional
default: define by grille.pro
ny
in
optional
default: define by grille.pro
nz
in
optional
default: define by grille.pro
firstx
in
optional
default: define by grille.pro
firsty
in
optional
default: define by grille.pro
firstz
in
optional
default: define by grille.pro
lastx
in
optional
default: define by grille.pro
lasty
in
optional
default: define by grille.pro
lastz
in
optional
default: define by grille.pro
Keywords
WDEPTH
Examples
IDL> help, fitintobox(findgen(jpi,jpj))
FLOAT = Array[41, 3]
IDL> help, fitintobox(findgen(jpi,jpj,78))
Error:
the array dimensions [180,148,78] are incompatible
with the the domain dimensions
[jpi/nx, jpj/ny, jpk/nz, jpt] = [180/41, 148/3, 31/31, 1]
INT = -1
Version history
Version
$Id: fitintobox.pro 136 2006-07-10 15:20:19Z pinsard $
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
10 juin 2000.
June 2005: S. Masson rewrite all.
Other attributes
Uses routines
cm_4mesh
cm_4cal