[gradsusr] ascii file
Becker, Bernd
bernd.becker at metoffice.gov.uk
Wed Sep 8 07:14:50 EDT 2010
Kyungsuk,
try :
'open cks.ctl'
'set time 01jan2006 31jan2006'
'set lon 126.95'
'set lat 37.57'
'define dwL = DLWRFsfc'
'define dwS = DSWRFsfc'
*-----------------------------------
'd dwL'
res=write(dwL.txt,result,append)
*-----------------------------------
'd dwS'
res=write(dwS.txt,result,append)
*----------------------------------
see what that does.
Cheers,
Bernd.
--
Bernd Becker Climate Impacts Product Development
Met Office Hadley Centre FitzRoy Road Exeter Devon EX1 3PB United
Kingdom
Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050
E-mail:bernd.becker at metoffice.gov.uk -
http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/
bernd-becker
-----Original Message-----
From: gradsusr-bounces at gradsusr.org
[mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Cho, Kyungsuk
Sent: 08 September 2010 11:40
To: gradsusr at gradsusr.org
Subject: [gradsusr] ascii file
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
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr
More information about the gradsusr
mailing list