How to save variables to ASCII

Charles Seman Charles.Seman at NOAA.GOV
Fri Oct 2 16:34:08 EDT 2009


Wansang,

Please check out:
http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file

Hope this helps,
Chuck

Wansang Ryu wrote:
> Dear users,
>
> I am a beginner of GRADS, so I have lots of questions.
> One of them is that I want to save a variable (or variables) to an
> ASCII file.
> I read that fwrite would work, but I don't know how to use it.
>
> I define a variable named 'wind' as below.
>
> define wind = ave(mag(uwind,vwind),t+0,t=360,12)
>
> I want to save the variable 'wind' to ASCII.
> I just used 'set fwrite' command, but I don't see any new file in my
> directory.
>
> Anybody can help me?
>
> Wansang
>
> ---
> College Station, TX 77843-3147
> Office: 305A CSA (Teague) Bldg
> (979) 845-2719

--

Please note that Charles.Seman at noaa.gov should be considered my NOAA
email address, not cjs at gfdl.noaa.gov.

********************************************************************
 Charles Seman                                Charles.Seman at noaa.gov
 U.S. Department of Commerce / NOAA / OAR
 Geophysical Fluid Dynamics Laboratory         voice: (609) 452-6547
 201 Forrestal Road                              fax: (609) 987-5063
 Princeton, NJ  08540-6649            http://www.gfdl.noaa.gov/~cjs/
********************************************************************

"The contents of this message are mine personally and do not necessarily
reflect any position of the Government or NOAA."



More information about the gradsusr mailing list