[gradsusr] Saving new variable time-dependent

Rabah Hachelaf r.hachelaf at gmail.com
Sun Jan 25 12:48:46 EST 2015


Hi Grads users,

i have this small scripts to transform every 12 hours radiation into daily
data by summing. but my new variable "dayrad" saves just the last iteration.
my request is how to save all data calculated in dayrad variable into a
time-dependent variable.

Thanks for help.


'open rad.ctl'
tt=1
while( tt <= 10)

'set t 'tt

'define dayrad= 2.78e-4*sum(SSRsfc, t='tt',t='tt+2')'

'set gxout print'

'd dayrad'

tt=tt+3
endwhile
-- 
Rabah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150125/82132732/attachment.html 


More information about the gradsusr mailing list