<br><font size=2 face="sans-serif">Teddy....I'm using v1.9.0-rc1 on windows
xp. I'm using 'write' from a script. Doesn't v2 allow it from
a script? Stephen Mc</font><br><br><br><table width=100%><tr valign=top><td width=40%><font size=1 face="sans-serif"><b>Teddy Allen <teddyallen@YAHOO.COM></b></font><br><font size=1 face="sans-serif">Sent by: GRADSUSR@LIST.CINECA.IT</font><p><font size=1 face="sans-serif">01/07/2009 06:51 AM</font><table border><tr valign=top><td bgcolor=white><div align=center><font size=1 face="sans-serif">Please respond to<br>teddyallen@yahoo.com</font></div></table><br><td width=59%><table width=100%><tr valign=top><td><div align=right><font size=1 face="sans-serif">To</font></div><td><font size=1 face="sans-serif">GRADSUSR@LIST.CINECA.IT</font><tr valign=top><td><div align=right><font size=1 face="sans-serif">cc</font></div><td><tr valign=top><td><div align=right><font size=1 face="sans-serif">Subject</font></div><td><font size=1 face="sans-serif">Re: GrADS output to textfile?</font></table><br><table><tr valign=top><td><td></table><br></table><br><br><table width=100%><tr valign=top><td width=100%><font size=3>Thank you very much Stephen, but my version
of GrADS (v2 windows xp) does not recognize the WRITE command. Are you
using a newer or older version than the version 2?</font><br><font size=3>Thank you again for your support. I appreciate it!</font><br><font size=3>teddy </font><br><br><font size=3><b>web: </b></font><a href=http://personal.ecu.edu/tla0923/HOME.html><font size=3 color=blue><b><u>http://personal.ecu.edu/tla0923/HOME.html</u></b></font></a><br><font size=3><b>"To move quickly, go alone. To move far, go</b></font><font size=3 color=red><b>together</b></font><font size=3><b>."</b></font><br><font size=3><b>African Proverb
*</b></font><br><font size=3> </font><br><br><br><font size=3>--- On <b>Wed, 1/7/09, Stephen R McMillan <i><smcmillan@PLANALYTICS.COM></i></b>wrote:</font><br><font size=3>From: Stephen R McMillan <smcmillan@PLANALYTICS.COM></font><br><font size=3>Subject: Re: GrADS output to textfile?</font><br><font size=3>To: GRADSUSR@LIST.CINECA.IT</font><br><font size=3>Date: Wednesday, January 7, 2009, 1:35 AM</font><br><br><br><font size=2 face="sans-serif">Teddy,</font><br><font size=2 face="sans-serif">The fwrite command produces binary,
not text output. To produce ascii text output of what you're currently
displaying, use 'set gxout print'. You control the output with 'set
prnopts....' Display your data, then write to file using the write
command. Here's a simple example (assuming file is open and appropriately
dimensioned):</font><br><br><font size=2 face="sans-serif">'set gxout print'</font><br><font size=2 face="sans-serif">'set prnopts %0.1f 10 1'</font><br><font size=2 face="sans-serif">'d air-273.16'</font><br><font size=2 face="sans-serif">dummy=write('c:/temp/output.txt',result)</font><br><br><font size=2 face="sans-serif">Your output might look something like
this:</font><br><font size=2 face="Courier New">Printing Grid -- 77 Values -- Undef
= 32766</font><br><font size=2 face="Courier New">11.1 10.7 8.4 9.0 12.9 15.4 16.3 17.1
17.5 17.5 </font><br><font size=2 face="Courier New">17.6 8.3 8.6 7.0 6.3 8.2 10.3 11.7
12.4 13.0 </font><br><font size=2 face="Courier New">13.8 13.9 7.0 7.8 6.8 4.2 3.1 4.7 7.0
7.9</font><br><font size=2 face="Courier New">-2.2 0.1 2.4 3.2 3.5 0.8 0.2 -2.3 -4.3
-4.7</font><br><br><font size=2 face="Courier New">You could also output one grid value
at a time without using 'set gxout print' and 'set prnopts.' </font><font size=2 face="sans-serif">The
opengrads cookbook listing you referenced goes </font><font size=2 face="Courier New">into
more detail on the above and alternate methods. Additional references:</font><br><font size=2 face="sans-serif">set gxout print: http://grads.iges.org/grads/gadoc/gradcomdsetgxout.html</font><br><font size=2 face="sans-serif">set prnopts: http://grads.iges.org/grads/gadoc/gradcomdsetprnopts.html</font><br><font size=2 face="sans-serif">write command: http://grads.iges.org/grads/gadoc/script.html#intrinsic</font><br><br><font size=2 face="sans-serif">Stephen McMillan</font><br><br><br><br><br><table width=100%><tr valign=top><td width=40%><font size=1 face="sans-serif"><b>Teddy Allen <teddyallen@YAHOO.COM></b></font><br><font size=1 face="sans-serif">Sent by: GRADSUSR@LIST.CINECA.IT</font><font size=3></font><br><font size=1 face="sans-serif">01/06/2009 05:36 PM</font><font size=3></font><table border width=100%><tr valign=top><td width=100% bgcolor=white><div align=center><font size=1 face="sans-serif">Please respond to</font><br><font size=1 face="sans-serif">teddyallen@yahoo.com</font></div></table><br><td width=59%><table width=100%><tr valign=top><td width=37%><div align=right><font size=1 face="sans-serif">To</font></div><td width=62%><font size=1 face="sans-serif">GRADSUSR@LIST.CINECA.IT</font><font size=3></font><tr valign=top><td><div align=right><font size=1 face="sans-serif">cc</font></div><td><tr valign=top><td><div align=right><font size=1 face="sans-serif">Subject</font></div><td><font size=1 face="sans-serif">GrADS output to textfile?</font></table><br><table width=100%><tr valign=top><td width=50%><td width=50%></table><br><br></table><br><br><table width=100%><tr valign=top><td width=100%><font size=3>Dear GrADS users,</font><br><font size=3>I have seen traces of information leading to the creation
of .txt files from GrADS output generated from NetCDF files. Unfortunately,
I am having a bit of trouble trying to accomplish this. One method says
to:</font><br><font size=3> </font><br><font size=3>'set gxout fwrite'</font><br><font size=3>'set fwrite file.txt'</font><br><font size=3>'d [variable]'</font><br><font size=3>'disable fwrite'</font><br><font size=3> </font><br><font size=3>While another points to a script from the cookbook: </font><a href="http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file"><font size=3 color=blue><u>http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file</u></font></a><br><font size=3> </font><br><font size=3> </font><br><font size=3>I also try :</font><br><font size=3>set gxout fwrite</font><br><font size=3>d [variable]</font><br><font size=3>disable fwrite</font><br><font size=3> </font><br><font size=3>GrADS then sends an output to my hard-drive, but
it is not in an ascii .txt format.</font><br><font size=3>Does anybody have a simple method to produce text output
files from GrADS? I am not having any success in the above options. I am
using GrADS 2.0 on a windows XP system. </font><br><font size=3> </font><br><font size=3>Thank you very much.</font><br><font size=3>Sincerely,</font><br><font size=3>teddy </font><br><br><br><font size=3> </font><br><font size=3><b>web: </b></font><a href=http://personal.ecu.edu/tla0923/HOME.html><font size=3 color=blue><b><u>http://personal.ecu.edu/tla0923/HOME.html</u></b></font></a><br><font size=3><b>"To move quickly, go alone. To move far, go</b></font><font size=3 color=red><b>together</b></font><font size=3><b>."</b></font><br><font size=3><b>African Proverb
*</b></font><br><font size=3> </font></table><br><br><br><br><font size=3>***************************************************</font><br><font size=3>The information contained in this e-mail message is intended
only for the use of the recipient(s) named above and may contain information
that is privileged, confidential, and/or proprietary. If you are not the
intended recipient, you may not review, copy or distribute this message.
If you have received this communication in error, please notify the sender
immediately by e-mail, and delete the original message.</font><br><font size=3>***************************************************</font></table><br><br><BR>
<BR>
***************************************************<BR>
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary. If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.<BR>
***************************************************<BR>