How to save variables to ASCII
Wansang Ryu
wansryu at GMAIL.COM
Fri Oct 2 17:19:59 EDT 2009
Thank you, Teddy,
Do I have to use fwrite after I made a defined variable or before?
Do you have any simple example that i can use for my data?
Wansang
On Fri, Oct 2, 2009 at 3:23 PM, Teddy Allen <teddyallen at yahoo.com> wrote:
> Wansang,
> It has been my experience in the past that fwrite only works in script mode
> and not during command line execution. Have you tried using fwrite in a
> script?
> Hope this helps,
> teddy
>
>
> http://www.teddyallen.com
>
> "To move quickly, go alone. To move far, go *together*."
>
> African Proverb
>
>
> ------------------------------
> *From:* Wansang Ryu <wansryu at GMAIL.COM>
> *To:* GRADSUSR at LIST.CINECA.IT
> *Sent:* Friday, October 2, 2009 3:51:11 PM
> *Subject:* How to save variables to ASCII
>
> 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
>
>
--
Ph.D. Candidate
Department of Geography
Texas A&M University
College Station, TX 77843-3147
Office: 305A CSA (Teague) Bldg
(979) 845-2719
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20091002/36bc062a/attachment.html
More information about the gradsusr
mailing list