[gradsusr] How to write data in a file

Yan Libin zjuyanlibin at 163.com
Wed Sep 28 01:00:28 EDT 2011


set gxout print
d *

or 

rc=write(file='.../result.txt',result)




Yan Libin

From: sushant puranik
Date: 2011-09-28 13:26
To: GrADS Users Forum
Subject: [gradsusr] How to write data in a file
Hi

I am trying to make average of vorticity over four points as 


set lev 850
define zeta=hcurl(uwnd,vwnd.2)
set lat 12.5
set lon 100
define z1=zeta
clear
set lat 10
set lon 100
define z2=zeta
clear
set lat 12.5
set lon 97.5
define z3=zeta
clear
set lat 10
set lon 97.5
define z4=zeta
clear
define avez=(z1+z2+z3+z4)/4
d avez
write (testz.txt,te)




But the output file remains blank.



whats wrong with the script?


Thanks 




Sushant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110928/2aacd292/attachment-0003.html 


More information about the gradsusr mailing list