[gradsusr] (no subject)

Gargi Akhoury gargiakhoury at bitmesra.ac.in
Fri May 1 06:58:20 EDT 2015


Hello,

When I am doing without .gs file the program below is working, but when m
putting in .gs file it is not working. Kindly, help me regarding this.


the program is as follows

'reinit'
'set display color white'
'c'

'open tempa.ctl'
'set grid off'
'set poli on'
'set lon 0 360'
'set lat -90 90'
'set lev 850'
'set grads off'
'set map auto'

'define t1=tempa'
*'d t1'

*
close1
*

'open tempb.ctl'
'set grid off'
'set poli on'
'set lon 0 360'
'set lat -90 90'
'set lev 700'
'set grads off'
'set map auto'
'define t2=tempb'

*'d t2'
'd (t1+t2)/2'



And the error is as follows

 run temp.gs
No hardcopy metafile open
All files closed; all defined objects released;
All GrADS attributes have been reinitialized
Unknown command: close1
Syntax Error:  Invalid Operand
  'tempb' not a variable or function name
  Error ocurred at column 1
DEFINE error:  Invalid expression.
Syntax Error:  Invalid Operand
  't2' not a variable or function name
  Error ocurred at column 5
DISPLAY error:  Invalid expression
  Expression = (t1+t2)/2


Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150501/251b74d3/attachment.html 


More information about the gradsusr mailing list