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

Davide Sacchetti davide.sacchetti at arpal.gov.it
Thu Oct 18 12:02:27 EDT 2012


subwrd and write are recognized *only* in scripts: not in interactive
mode

another chance is to use gxout print, see:
http://grads.iges.org/grads/gadoc/gadocindex.html

bye bye
Davide

On Thu, 2012-10-18 at 10:29 -0500, Sagar Parajuli wrote:
> 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: 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
> 
> ***********************************************
> 
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

-- 
--> Attenzione cambio indirizzo: davide.sacchetti at arpal.gov.it
--
Davide Sacchetti
Centro Funzionale Meteo Idrologico di Protezione Civile della Regione Liguria
ARPAL Unità Tecnica Complessa di livello Regionale
V.le Brigare Partigiane 2 16121 Genova (I)
tel: +39 010 6437535                    fax: +39 010 6437520
mail: davide.sacchetti at arpal.gov.it     web: www.meteoliguria.it





More information about the gradsusr mailing list