[gradsusr] (no subject)

Mikovitz, Colleen (LARC-E302)[SCIENCE SYSTEMS AND APPLICATIONS, INC] j.c.mikovitz at nasa.gov
Fri May 1 07:23:18 EDT 2015


You just need the single quotation marks around your close statement:
‘close 1’

On May 1, 2015, at 6:58 AM, Gargi Akhoury <gargiakhoury at bitmesra.ac.in<mailto:gargiakhoury at bitmesra.ac.in>> wrote:

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<http://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
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150501/8850d1ab/attachment-0001.html 


More information about the gradsusr mailing list