error with while loop
dipak sahu
dipakmath at GMAIL.COM
Mon Feb 22 10:41:18 EST 2010
Dear frnds
here i have some difficulty with the following script, i want to write
the maximum value of daily temperature of 4-day forecast, but it is only
writing a single value (i.e the maximum value of last day only). I didin't
found where is the mistake. Thanks in advance if anybody has any solution to
share on it.The script is given below.
'reinit'
'open singldom-Nov.ctl'
'set lat 20.25'
'set lon 85.83'
tt = 1
while (tt<97)
'set t 'tt
'define maxt= max((t2-273.15),t+0,t+23)'
'set gxout print'
'fprintf maxt maxt2-bbsr-DA.txt';
tt=tt+24
endwhile
~
with regards
Dipak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100222/9ea7a71f/attachment.html
More information about the gradsusr
mailing list