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

Jeff Duda jeffduda319 at gmail.com
Thu Oct 18 12:28:15 EDT 2012


Not sure why subwrd would be invalid unless you're running OpenGrads or
something like that.  Anyway, check out the fprintf script, which is well
documented here:
http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file

Jeff Duda

On Thu, Oct 18, 2012 at 10:29 AM, Sagar Parajuli <psagar at utexas.edu> 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****
>
> [image: 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
>
>


-- 
Jeff Duda
Graduate research assistant
University of Oklahoma School of Meteorology
Center for Analysis and Prediction of Storms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20121018/f65cb145/attachment-0003.html 


More information about the gradsusr mailing list