login

qdims.gsf

Top / GrADS / script / qdims.gsf

Japanese / English

Name

qdims() - Get a part of "q dims".

Synopsis

ret = qdims( id )

Options and Return values

id
ID. See table below.
ID Description
fnum Current file number.
varying Number of varying dimensions.
fixed Number of fixed dimensions.
xtype Whether "varying" or "fixed".
lonmin/latmin/levmin/timemin/ensmin Lower bound of longitude/latitude/level/time/ensemble.
lonmax/latmax/levmax/timemax/ensmax Upper bound of longitude/latitude/level/time/ensemble.
xmin/ymin/zmin/tmin/emin Lower bound of X/Y/Z/T/E.
xmax/ymax/zmax/tmax/emax Upper bound of X/Y/Z/T/E.
ret
Value corresponding to the ID.

Examples

(1) Obtain number of varying dimensions.

  • test.gs
    rc = gsfallow( 'on' )
    'open t'
    say qdims( 'varying' )
    
  • console
    ga-> test
    2
    

Script source code