topcomputegrid
Grid
Parameters
startx
in
optional
type: scalar
starty
in
optional
type: scalar
stepxin
in
optional
type: scalar or vector
stepyin
in
optional
type: scalar or vector
nxin
in
optional
type: scalar
nyin
in
optional
type: scalar
Keywords
XAXIS
type: 1D or 2D array
YAXIS
type: 1D or 2D array
ZAXIS
type: 1D
MASK
type: 2D or 3D array
default: array of 1
GLAMBOUNDARY
type: 2 elements vector
default: those defined in the file
XMINMESH
type: scalar
default: 0L
XMAXMESH
type: scalar
default: jpiglo-1
YMINMESH
type: scalar
default: 0L
YMAXMESH
type: scalar
default: jpjglo-1
ZMINMESH
type: scalar
default: 0L
ZMAXMESH
type: scalar
default: jpkglo-1
ONEARTH
type: scalar: 0 or 1
default: 1
PERIODIC
type: scalar: 0 or 1
default: computed by using the first line of glamt
PLAIN
type: scalar: 0 or 1
default: 0
SHIFT
type: scalar
default: computed according to glamboundary
STRIDE
type: 3 elements vector
default: [1, 1, 1]
YREVERSE
type: scalar
default: computed according to gphit[0, 1:jpj-1] LT gphit[0, 0:jpj-2]
ZREVERSE
type: scalar
default: computed according to gdept[0] GT gdept[1]
FULLCGRID
type: scalar: 0 or 1
default: 0
XYINDEX
UBASE2TBASE
VBASE2TBASE
FBASE2TBASE
STRCALLING
type: scalar string
ROMSH
type: 2D array
Version history
Version
$Id: computegrid.pro 399 2009-07-02 08:38:54Z smasson $
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
2000-04-20
Sept 2004, several bug fix to suit C grid type...
Aug 2005, rewritte almost everything...
Known issues
Restrictions
if the grid has x/y periodicity overlap and/or if
the mask has 0 everywhere at the border (like a closed sea) and
if (we did not activate /plain and xminmesh, xmaxmesh, yminmesh,
ymaxmesh keywords are defined to their default values), we redefine
xminmesh, xmaxmesh, yminmesh, ymaxmesh in order to reove the
overlapping part and/or to open the domain (avoid it be forced
to use cell_fill = 1).
FUV points definition is not exact if the grid is irregular
Other attributes
Uses routines
Statistics
McCabe cyclic | 241 |
McCabe essential | 1 |
McCabe modular design | 1 |