I'm running Grads v2.0.a9 on a Linux Red Hat system and I get an error when I try to define a new field that has an underscore (_) in the name. Perhaps that is what is happening in your case as well.<br><br>Jeff Duda<br>
<br><div class="gmail_quote">On Wed, Dec 1, 2010 at 7:59 AM, Tatiana.Gonzalez <span dir="ltr"><<a href="mailto:Tatiana.Gonzalez@noaa.gov">Tatiana.Gonzalez@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Wendell,<br>
Try declaring "a_rain" as a global variable: _a_rain<br>
<br>
Tatiana<br>
On 11/30/2010 1:10 PM, Wendell Farias wrote:
<blockquote type="cite">
<div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: rgb(0, 0, 0);">
<div>Dear John Huddleston,</div>
<div><br>
I did what you suggested me. Now the file was created, but is empty,
the file is completly white. Do <br>
you have any idea what is happening?<br>
<br>
Thank you,</div>
<div><br>
</div>
<div><br>
</div>
<div>Message: 5<br>
Date: Tue, 30 Nov 2010 08:18:13 -0800<br>
From: "Huddleston, John" <<a href="mailto:Huddleston@cira.colostate.edu" target="_blank">Huddleston@cira.colostate.edu</a>><br>
Subject: Re: [gradsusr] PRINTIM error<br>
To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>><br>
Message-ID:<br>
<br>
<<a href="mailto:F367071F539DC64FB75E7D7690B8160D010D7A5C55C7@EXVMBX003-2.exch003intermedia.net" target="_blank">F367071F539DC64FB75E7D7690B8160D010D7A5C55C7@EXVMBX003-2.exch003intermedia.net</a>><br>
<br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Wendell<br>
<br>
You are trying to write to the root directory. Take out the starting
?/? slash <br>
character.<br>
<br>
John Huddleston, PhD<br>
Cooperative Institute for Research in the Atmosphere<br>
<br>
From: <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>]
On <br>
Behalf Of Wendell Farias<br>
Sent: Tuesday, November 30, 2010 9:13 AM<br>
To: GRADS<br>
Subject: [gradsusr] PRINTIM error<br>
<br>
Hi everybody,<br>
<br>
<br>
I'm trying to calculate the accumulated rain to six hours. The result
is showed <br>
on the screen, but not create the file (accumulated_rain.gif). When I
run the <br>
script shows the following message:<br>
<br>
"open error on /accumulated_rain.gif gif white"<br>
"PRINTIM error: open error"<br>
<br>
- part of script:<br>
<br>
'set gxout contour'<br>
ret=rain()<br>
'd a_rain'<br>
<br>
'draw xlab lon'<br>
'draw ylab lat'<br>
<br>
'draw title ACCUMULATED RAIN'<br>
<br>
'printim /accumulated_rain.gif gif white'<br>
<br>
function rain()<br>
<br>
'define rain=(RAINC+RAINNC)'<br>
'define
a_rain=rain(t=2)+rain(t=3)+rain(t=4)+rain(t=5)+rain(t=6)+rain(t=7)'<br>
<br>
return()<br>
<br>
Somebody can halp me?<br>
Thank you in advance,<br>
<br>
<br>
</div>
</div>
<br>
<pre><fieldset></fieldset>
_______________________________________________
gradsusr mailing list
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
<br>
<br>
<pre cols="72"></pre>
</div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/~jdduda">www.meteor.iastate.edu/~jdduda</a><br>