ToBeReviewed/INIT/
initncdf.pro
Initfile for Netcdf file. define all the grid parameters through
an appropriate call to computegrid
initncdf
Grid
initncdf, ncfilein, ZAXISNAME=scalar string, START1=scalar: 0 or 1, XYINDEX=scalar: 0 or 1, ZINDEX=scalar: 0 or 1, _EXTRA=_EXTRA
Parameters
ncfilein
in
required
type: scalar string
A string giving the name of the NetCdf file
Keywords
ZAXISNAME
type: scalar string
default: 'z', 'level', 'lev', 'depth...'
A string giving the name of the variable in the file
that contains the [xyz]axis.
START1
type: scalar: 0 or 1
default: 0
Index the axis from 1 instead of 0 when using
/xyindex and/or /zindex
XYINDEX
type: scalar: 0 or 1
default: 0
To define the x/y axis with index instead of using
the values contained in X/YAXISNAME.
x/yaxis = keyword_set(start1) + findgen(jpi/jpj)
this forces key_onearth = 0
ZINDEX
type: scalar: 0 or 1
default: 0
To define the z axis with index instead of using
the values contained in ZAXISNAME.
zaxis = keyword_set(start1) + findgen(jpk)
_EXTRA
Used to pass keywords to computegrid,
ncdf_getaxis, ncdf_getmask and isafile
Examples
IDL> initncdf,'toto.nc',glam=[-180,180]
Version history
Version
$Id: initncdf.pro 371 2008-08-07 09:32:02Z pinsard $
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
8 May 2002
Known issues
Restrictions
Change the grid parameters (see computegrid)
the file must contain an x and an y axis. (1 ou 2 dimensional array)
Other attributes
Uses routines
common
Produced by IDLdoc 2.0.