[gradsusr] ascii file
Cho, Kyungsuk
kyungsuk.cho at metoffice.gov.uk
Wed Sep 8 06:39:42 EDT 2010
Hi, All
I would like to ask you how to write ascii data using Grads (version
1.9b4) .
I tried to make script in gs file using function "write" below. I think
it is very simply.
I can see the figures on the display window every run.
However, the data was not written in the txt file (eg. dwL.txt etc.).
The txt file is empty.
My script here:
'open cks.ctl'
'set time 01jan2006 31jan2006'
'set lon 126.95'
'set lat 37.57'
'define dwL = DLWRFsfc'
'define dwS = DSWRFsfc'
*-----------------------------------
'd dwL'
ret=result
res=write('dwL.txt',ret)
*-----------------------------------
'd dwS'
ret=result
res=write('dwS.txt',ret)
*----------------------------------
Thank you for your help.
Kyungsuk
More information about the gradsusr
mailing list