<br><font size=2 face="sans-serif">Teddy,</font><br><font size=2 face="sans-serif">The fwrite command produces binary,
not text output. &nbsp;To produce ascii text output of what you're currently
displaying, use 'set gxout print'. &nbsp;You control the output with 'set
prnopts....' &nbsp;Display your data, then write to file using the write
command. &nbsp;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: &nbsp;http://grads.iges.org/grads/gadoc/gradcomdsetgxout.html</font><br><font size=2 face="sans-serif">set prnopts: &nbsp;http://grads.iges.org/grads/gadoc/gradcomdsetprnopts.html</font><br><font size=2 face="sans-serif">write command: &nbsp;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 &lt;teddyallen@YAHOO.COM&gt;</b></font><br><font size=1 face="sans-serif">Sent by: GRADSUSR@LIST.CINECA.IT</font><p><font size=1 face="sans-serif">01/06/2009 05:36 PM</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">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>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>&nbsp;</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>&nbsp;</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>&nbsp;</font><br><font size=3>&nbsp;</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>&nbsp;</font><br><font size=3>GrADS&nbsp; 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>&nbsp;</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>&nbsp;</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>&quot;To move quickly, go alone. To move far, go</b></font><font size=3 color=red><b>together</b></font><font size=3><b>.&quot;</b></font><br><font size=3><b>African Proverb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*</b></font><br><font size=3>&nbsp;</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>