<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">All,<br>
<br>
I finally have what I need. Thank you Jeff. You had almost exactly what I needed (minus the orange state boundaries but hey I'll live with it at this point). The only thing wrong was that when using &quot;set display color white&quot; it seems to reverse the behavior
 of the black white color indices. As you can see in your attached image that you provided me after doing the fixes you suggest, geopotential height has labels but lines do not show up. Ccolor was set at 0, which should be black, but comes out white when using
 in tandem with display color white. If you change it to 1 (ordinarily white), it gives me my black contour. How strange.<br>
<br>
Mason <br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF605492"><font color="#000000" size="2" face="Tahoma"><b>From:</b> gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] on behalf of Jeff Duda [jeffduda319@gmail.com]<br>
<b>Sent:</b> Wednesday, November 09, 2011 4:43 PM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Background options failing<br>
</font><br>
</div>
<div></div>
<div>Did you get an image that wasn't just white?<br>
<br>
<div class="gmail_quote">On Wed, Nov 9, 2011 at 4:11 PM, Rowell, Mason D. <span dir="ltr">
&lt;<a href="mailto:Mason.D.Rowell-1@ou.edu" target="_blank">Mason.D.Rowell-1@ou.edu</a>&gt;</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>
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt;">
Jeff,<br>
<br>
I don't know if I have tried this placement yet so I'll give it a whirl. Unless I am going crazy though, I don't see the geopoten. lines, despite the fact ccolor is at 0, which should be black. If I can't see them, I assume it is making them white, and I don't
 know why.<br>
<br>
Mason <br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr>
<div style="direction: ltr;"><font color="#000000" size="2" face="Tahoma"><b>From:</b>
<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] on behalf of Jeffrey Duda [<a href="mailto:jdduda@iastate.edu" target="_blank">jdduda@iastate.edu</a>]<br>
<b>Sent:</b> Wednesday, November 09, 2011 3:14 PM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Background options failing<br>
</font><br>
</div>
<div></div>
<div>Mason,<br>
Okay, I put your script to work on a different computer system and got the results you're looking for (I think, see attached image).&nbsp; Here's the code that got those results:<br>
<br>
'open narr-a_221_19981218_0000_000.ctl'<br>
hgt = 850<br>
'set lev 'hgt<br>
'set lat 34 46'<br>
'set lon -114 -97'<br>
'set mpdset hires'<br>
'set display color white'<br>
'clear'<br>
tt = 1<br>
while (tt &lt;= 8)<br>
&nbsp;'set t 'tt<br>
&nbsp;'set cint 10'<br>
&nbsp;'set ccolor 0'<br>
&nbsp;'d HGTprs'<br>
&nbsp;'set clab %.0f`3.`1C'<br>
&nbsp;'set cint 2'<br>
&nbsp;'set cstyle 2'<br>
&nbsp;'set ccolor 2'<br>
&nbsp;'d (TMPprs - 273)'<br>
&nbsp;'set gxout barb'<br>
&nbsp;'d skip(UGRDprs,3,3);VGRDprs;mag(UGRDprs,VGRDprs)'<br>
&nbsp;'printim example_'tt'_'hgt'.png x800 y600'<br>
&nbsp;'clear'<br>
&nbsp;tt = tt &#43; 1<br>
endwhile<br>
<br>
You'll notice the only things I changed (other than the path to the files) is where I put some of the setup commands, and that I removed the &quot;set background&quot; command.&nbsp; You don't need to use both &quot;set background&quot; and &quot;set display&quot; to get what you want.&nbsp; In fact,
 I think those two commands sort of canceled each other out.&nbsp; I would suggest always going with the &quot;set display color white&quot; ; &quot;clear&quot; sequence.&nbsp; Changing either the background or display color messes with the color that represents the &quot;foreground&quot; and &quot;background&quot;.&nbsp;
 When you did &quot;set background 1&quot;, you told Grads to set the color index 1 to black and 0 to white instead of the other way around, which is the default behavior.&nbsp; I don't know if it matters to get much deeper than that, but just use the suggestion I provided
 and you'll be fine.<br>
<br>
Jeff<br>
<br>
<div class="gmail_quote">On Wed, Nov 9, 2011 at 2:20 PM, Rowell, Mason D. <span dir="ltr">
&lt;<a href="mailto:Mason.D.Rowell-1@ou.edu" target="_blank">Mason.D.Rowell-1@ou.edu</a>&gt;</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;">
All,<br>
<br>
I reduced the iterations to one, and I still cannot get these commands in the script to do the same thing when typing them one by one on the command line with a refresh load of grads. Has anyone had this happen before? Could someone run my script and tell me
 if you still only get a black background, despite the command?<br>
<br>
Mason<br>
________________________________________<br>
From: <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] on behalf of Rowell, Mason D. [<a href="mailto:Mason.D.Rowell-1@ou.edu" target="_blank">Mason.D.Rowell-1@ou.edu</a>]<br>
Sent: Wednesday, November 09, 2011 1:31 PM<br>
<div>
<div>To: GrADS Users Forum<br>
Subject: Re: [gradsusr] Background options failing<br>
<br>
All,<br>
<br>
Absolutely nothing will work. Even if I use white in printim the image is STILL black. This is such a huge waste of time at this point. Should it be so hard to get a script to work right?<br>
<br>
Mason<br>
________________________________________<br>
From: <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] on behalf of Nick Heath [<a href="mailto:nkh09@fsu.edu" target="_blank">nkh09@fsu.edu</a>]<br>
Sent: Wednesday, November 09, 2011 12:51 PM<br>
To: GrADS Users Forum<br>
Subject: Re: [gradsusr] Background options failing<br>
<br>
Try moving your 'clear' command to the line after you 'set display color white', e.g.,<br>
<br>
'set background 1'<br>
'set display color white'<br>
'clear'<br>
<br>
That might work.<br>
<br>
-Nick<br>
<br>
----- Original Message -----<br>
From: &quot;Rowell, Mason D.&quot; &lt;<a href="mailto:Mason.D.Rowell-1@ou.edu" target="_blank">Mason.D.Rowell-1@ou.edu</a>&gt;<br>
Date: Wednesday, November 9, 2011 6:17 pm<br>
Subject: [gradsusr] Background options failing<br>
To: &quot;<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>&quot; &lt;<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>&gt;<br>
<br>
&gt; All,<br>
&gt;<br>
&gt; See the below. I cannot get the script to do the same as the<br>
&gt; command line operations, even when they are the same.<br>
&gt;<br>
&gt; Mason<br>
&gt; ________________________________________<br>
&gt; From: Rowell, Mason D.<br>
&gt; Sent: Tuesday, November 08, 2011 4:17 PM<br>
&gt; To: <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
&gt; Subject:<br>
&gt;<br>
&gt; All,<br>
&gt;<br>
&gt; Running the above, command by command, gives me white background,<br>
&gt; with grey political boundaries and a black frame, but running the<br>
&gt; script, gives me orange boundaries and black background (with white<br>
&gt; frame). This is a complete mystery to me. In fact, I often have to<br>
&gt; completely close out of grads and reopen from scratch in order to<br>
&gt; get 'set background 1' to work from the command line (which only<br>
&gt; shows after using clear). So I would expect at least the first<br>
&gt; image from the script to look right but it doesn't. Anyone know why<br>
&gt; grads is needing a fresh start to change this, ALONG with a clear,<br>
&gt; then never to work properly again unless I reboot it? This can't be<br>
&gt; the only problem with the script since it won't even work right for<br>
&gt; the first image running the script with a fresh grads<br>
&gt; session....Again I am using an older 2.0 version 6.<br>
&gt;<br>
&gt; Mason<br>
&gt;<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Nick Heath<br>
Graduate Student<br>
Florida State University<br>
Department of Earth, Ocean, and Atmospheric Science<br>
Love Bldg. Rm 311<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</div>
</div>
</blockquote>
</div>
<font color="#888888"><br>
<br clear="all">
<br>
-- <br>
Jeff Duda<br>
Iowa State University<br>
Meteorology Graduate Student<br>
<a href="http://www.meteor.iastate.edu/%7Ejdduda" target="_blank">www.meteor.iastate.edu/~jdduda</a><br>
</font></div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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>
Grad student - PhD, Meteorology<br>
University of Oklahoma School of Meteorology - Center for Analysis and Prediction of Storms<br>
<br>
</div>
</div>
</div>
</body>
</html>