[gradsusr] error in if command of grads
chinh ta huu
chinhth2010 at gmail.com
Mon Aug 1 23:51:28 EDT 2011
Dear Sir/Madam
I use if command for calculating but I had a problem as below
This is my module:
function main(args)
year=subwrd(args,1)
para=1
*if (para = 1)
* 'sdfopen
/home/chinhth/DATA/HINCAST/COLA/z500/COLA/JUN/'year'/z500.nc'
'set t 1'
'set z 1'
'set lat -90 90'
'set lon 0 357.5'
'set gxout print'
'set prnopts %g 1 1'
'd z500'
res=result
w=write('/home/chinhth/DATA/HINCAST/COLA/z500/COLA/JUN/'year'/'year'.txt',res)
*endif
*But I don't understand one error occur as bellow:
*Unable to locate ENDIF statement for the IF statement at line 8
In file convert_txt.gs*
Please tell me this problem
Thank you
Chinh
--
(Mr.) Ta Huu Chinh
National, Weather Forecasting Center, Ha Noi, Viet Nam.
No: 4th, Dang Thai Than, Hoan Kiem, Ha Noi
Tel: 84-903-402-181
Fax: 84-43-824-4917
Email: chinhth2010 at gmail.com
Website: http://vn.myblog.yahoo.com/chinhth2005/
Website: http://bestknowledge-chinhth.blogspot.com/
Website: http://anhcuoidep.vn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110802/c2242b07/attachment-0003.html
More information about the gradsusr
mailing list