v2s.gsf
Name
v2s() - Convert GrADS variable to GrADS script variable.
Synopsis
ret = v2s( var )
Options and Return values
- var
- Name of variable which has no varying dimension.
- ret
- Value of the variable. should be enclosed by '' or "".
Examples
(1) Show global mean temperature.
-
test.gs
'reinit' rc = gsfallow( 'on' ) 'open t.ctl' 'set lat 0' 'set lon 0' 'set t 1' 'gm = aave(t, global)' gm = v2s('gm') say gm
-
console
ga-> test 286.429
Script source code
- v2s.gsf (necessary)