[gradsusr] writing grads output to a *.txt file

Sagar Parajuli psagar at utexas.edu
Thu Oct 18 11:29:44 EDT 2012


Hi Jaykrishnan,

Thank you for your suggestion. I tried but in my version of grads 2.0.1, the
functions subwrd and write are not recognized. Do you have any other way to
write grads output to a .txt or ascii file?

 

 

Sincerely,

 

Sagar Prasad Parajuli

Graduate Student/Research Assistant

University of Texas at Austin

Jackson School of Geosciences

1 University Station C1100, JGB 5.322
Austin, TX 78712

Contact:  <mailto:psagar at utexas.edu> psagar at utexas.edu

Cell: 512 965 4093

texas-longhorn-logo

 

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org]
On Behalf Of Jayakrishnan P.R
Sent: Thursday, October 18, 2012 12:55 AM
To: GrADS Users Forum
Subject: Re: [gradsusr] writing grads output to a *.txt file

 

Dear Sagar,

           Try this...

 

'reinit'

'open trmm03.ctl'

tt=1

while (tt<=2920)

'set lat 11'

'set lon 76.25'

'set t 'tt

'd rr'

te=subwrd(result,4)

w=write('sample.dat',te)

tt=tt+1

endwhile

 

 

Best of Luck.....

 

-- 
Sincerely
***********************************************
Jayakrishnan.P.R
CSIR-Senior Research Fellow
Department of Atmospheric Sciences
Cochin University of Science and Technology (CUSAT), Cochin-682 016
Kerala, India.
Mob: 09895417565

***********************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20121018/45d3ee7e/attachment-0003.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1251 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20121018/45d3ee7e/attachment-0003.jpe 


More information about the gradsusr mailing list