Sending commands


宣言文は一つの式表記のみで構成される。

式表記

この式表記は評価され、結果の文字列がコマンドとしてGrADSに送られる。 この文を実行したあと、スクリプト変数「result」にその値が与えられる。

例: hallo = 'draw string 4.0 8.0 HALLO'
hallo
また
'query'
say result
の結果は
GrADS Version 1.7Beta9 --- LATS=GRIB_NCSA_HDF__SDF_READ=NCSA_netCDF_HDF
query or q Options: 
  q config   List configuration of this build
  q files:   Lists open files
  q file n:  Gives info on particular file
  q define:  Lists currently defined variables
  q fwrite:  Fwrite Status
  q lats:    State of the GrADS-LATS Interface
  q dims:    Gives current dimension environment
  q time:    Gives current time
  q gxinfo:  Gives graphics environment info
  q xinfo:   Gives info on state of X Window
  q shades:  Gives colors and levels of shaded contours
  q pos:     Waits for mouse click, returns position
  q w2gr:    Convert world to grid coordinates
  q gr2w:    Convert grid to world coordinates
  q w2xy:    Convert world to x,y screen coordinates
  q xy2w:    Convert x,y screen coordinates to world coordinates
  q gr2xy:   Convert grid to x,y screen coordinates
  q xy2gr:   Convert x,y screen to grid coordinates
  q pp2xy:   Convert pre-projected grid coordinates to screen x,y coordinates
  q defval:   Gives defined grid value given grid i,j