<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1476" name=GENERATOR></HEAD>
<BODY>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
size=2><SPAN class=453540715-11032005><FONT face=Arial color=#0000ff> The
simplest way to get ascii output from grads is using the gxout print
setup. You have to do this in a script or the output just scrolls off
the screen.</FONT></SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN
class=453540715-11032005></SPAN></FONT></FONT> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN class=453540715-11032005>'set gxout
print'</SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN class=453540715-11032005>'set prnopts
%10.3e 10 1'</SPAN></FONT></FONT><FONT face=Tahoma><FONT face=Arial
color=#0000ff size=2><SPAN
class=453540715-11032005></DIV></SPAN></FONT></FONT>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN class=453540715-11032005>'d
myvariable'</SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN
class=453540715-11032005>values=sublin(result,2)</SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN
class=453540715-11032005>write('myfile.txt',values)</SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN
class=453540715-11032005></SPAN></FONT></FONT> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN class=453540715-11032005>The first three
lines are grads commands and must have the ' ' around them in a
script. The last two lines are grads script commands and do not have
quotes around them.</SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN
class=453540715-11032005></SPAN></FONT></FONT> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN class=453540715-11032005>See the online
documentation, particularly <!--StartFragment --><FONT
face="Times New Roman" color=#000000 size=3> <FONT face=Arial color=#0000ff
size=2><A
href="http://grads.iges.org/grads/gadoc/gradcomdsetprnopts.html">http://grads.iges.org/grads/gadoc/gradcomdsetprnopts.html</A> for
information on how this works</FONT></FONT></SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN
class=453540715-11032005></SPAN></FONT></FONT> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN class=453540715-11032005>Depending on
how your data files are organized, you may need a loop in your script to
go through all the years or variables.</SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN
class=453540715-11032005></SPAN></FONT></FONT> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN class=453540715-11032005>Don't know why
you can't get into the archive, the above info is from a fairly recent
thread. In case you are trying to use some other password, you do have
to register and get a grads user list specific
password.</SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN
class=453540715-11032005></SPAN></FONT></FONT> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
face=Arial color=#0000ff size=2><SPAN class=453540715-11032005>Michael
Sestak</SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
size=2><SPAN class=453540715-11032005></SPAN></FONT></FONT> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma><FONT
size=2><SPAN class=453540715-11032005> </SPAN>-----Original
Message-----<BR><B>From:</B> Molly E. Hellmuth
[mailto:molly.hellmuth@RISOE.DK]<BR><B>Sent:</B> Friday, March 11, 2005 6:46
AM<BR><B>To:</B> GRADSUSR@LIST.CINECA.IT<BR><B>Subject:</B> Converting grads
binary dat to txt file<BR><BR></DIV></FONT></FONT>
<DIV><FONT face=Arial size=2><SPAN
class=910154114-11032005>Hi</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=910154114-11032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=910154114-11032005>I have 50
years of daily .1 degree gridded climate time series for a small river basin
in south africa. I want to write the information to a text file-- so i can
open it into excel. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=910154114-11032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=910154114-11032005>Can anyone help
with this?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=910154114-11032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=910154114-11032005>I'm sorry if this
is an obvious question, but I have never used grads before, and for some
reason I cannot search the archive (it won't accept my password). I assume I
will have to run a script?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=910154114-11032005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=910154114-11032005>Thanks,
Molly</SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>