How to use the gs file at Window

Lizhi Wang wlz at TEA.AC.CN
Sun Oct 12 22:58:16 EDT 2008


Dear GrADS Users,

My Grads' version is V1.8L11 32-bit at Linux and Windows

I have a gs file as following: (named grads.gs)
***********grads.gs
Function main( args )
ctlfile = subwrd( args, 1 )
giffile = subwrd( args, 2 )
varname = subwrd( args, 3 )
'open 'ctlfile
'd 'varname
'printim 'giffile
'quit'
*************grads.gs end

This gs file can be run at Linux using following command:
gradsc -blc "run grads.gs flx.ft06.200808.ctl TMP2m.gif TMP2m"
or
gradsc -blc "grads.gs flx.ft06.200808.ctl TMP2m.gif TMP2m"

It's ok and I can get the correct GIF file.
But at windows, I was told at the "grads command window" as following:
Unknown command line keyword: grads.gs
Unknown command line keyword: flx.ft06.200808.ctl
Unknown command line keyword: TMP2m.gif
Unknown command line keyword: TMP2m

What's the difference between Linux and Windows, Or should I setup something at windows?

thanks,
with best regards,

Lizhi Wang



More information about the gradsusr mailing list