login

qctlinfo.gsf

Top / GrADS / script / qctlinfo.gsf

Japanese / English

Name

qctlinfo() - Get a part of "q ctlinfo".

Synopsis

ret = qctlinfo( fn, id [, num] )

Options and Return values

fn
File number.
id
"dset", "xdef", etc, or "vlist" (variabie list). Must use small capital.
num
Number (>=1). All the elements are returned unless specified.
ret
Value corresponding to the fn, id, and num.

Examples

(1) Display XDEF contents.

  • test.gs
    rc = gsfallow( 'on' )
    'open t'
    say qctlinfo( 1, 'xdef' )
    
  • console
    ga-> test
    xdef 144 linear 0 2.5
    

(2) Display variable list.

  • test.gs
    rc = gsfallow( 'on' )
    'open t'
    say qctlinfo( 1, 'vlist' )
    
  • console
    ga-> test
    t
    

Script source code