<div dir="ltr">You need to change your set t line <div><br></div><div><span style="font-size:12.8000001907349px">&#39;set t &#39;1</span><br></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">change to</span></div><div><span style="font-size:12.8000001907349px">&#39;set t &#39; count</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Right now you are setting t to 1 for every plot you make.  Change that 1 to count and you should be good</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 9, 2015 at 1:08 PM,  <span dir="ltr">&lt;<a href="mailto:webmaster@solargrafix.com" target="_blank">webmaster@solargrafix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I almost have this working, but it does not advance through the timesteps.<br>
It loads the first timestep, saves the image, then clears the screen, and<br>
then loads the first timestep again, saves it, and so on.<br>
<br>
Below is the script I set up to test this, so perhaps you can see where I<br>
went wrong.  Thanks!<br>
<br>
<br>
<br>
<br>
&#39;set datawarn off&#39;<br>
&#39;sdfopen<br>
<a href="http://nomads.ncep.noaa.gov:80/dods/gfs_0p25/gfs20150209/gfs_0p25_12z" target="_blank">http://nomads.ncep.noaa.gov:80/dods/gfs_0p25/gfs20150209/gfs_0p25_12z</a>&#39;<br>
<br>
Count = 1<br>
while (count &gt; 80)<br>
<br>
&#39;set t &#39;1<br>
<br>
&#39;set lat 35 50&#39;<br>
&#39;set lon -95 -65&#39;<br>
&#39;set mproj scaled&#39;<br>
&#39;set display color white&#39;<br>
&#39;set map 1&#39;<br>
&#39;set mpdset hires&#39;<br>
&#39;set mpdraw on&#39;<br>
&#39;set timelab off&#39;<br>
&#39;set grid off&#39;<br>
&#39;set font 0&#39;<br>
&#39;set strsiz .1&#39;<br>
<br>
  &#39;q time&#39;<br>
    timestr=subwrd(result, 3)<br>
    weekday1=subwrd(result,6)<br>
    day=substr(result, 11, 9)<br>
    hr=substr(result, 8, 2)<br>
   &#39;draw string 9.1 0.2 &#39;day&#39; &#39;hr z<br>
   &#39;draw string 8.7 0.2 &#39;weekday1<br>
<br>
&#39;set csmooth on&#39;<br>
&#39;set cterp on&#39;<br>
&#39;set gxout contour&#39;<br>
&#39;set clopts -1 -1 0.06&#39;<br>
&#39;set cmin 900&#39;<br>
&#39;set cmax 1100&#39;<br>
&#39;color 900 1100 2 -gxout contour -kind<br>
purple-&gt;darkblue-&gt;darkgreen-&gt;orange-&gt;red-&gt;darkred&#39;<br>
&#39;set cthick 2&#39;<br>
&#39;d smth9(prmslmsl/100)&#39;<br>
<br>
&#39;printim test&#39;day&#39;-&#39;hr&#39;z.png x1280 y960&#39;<br>
<br>
Count = Count + 1<br>
&#39;c&#39;<br>
endwhile<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>]<br>
On Behalf Of Howard Staines<br>
Sent: Monday, February 09, 2015 1:44 PM<br>
To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
Subject: [gradsusr] Re image for each time step<br>
<br>
<br>
Print many variables for a time series (step through time series)<br>
<br>
Count = 1<br>
While (Count&gt; 120                       final time step<br>
<br>
&#39;set t &#39;count                           ie/ first time step<br>
<br>
&#39;set stuff lat lon maps etc<br>
<br>
&#39;d apcpsfc&#39;                             display variable<br>
&#39;d t2m&#39;                                 display another variable<br>
&#39;d mslp&#39;                                        etc<br>
<br>
Print image<br>
&#39;gxprint image_&#39;Count .png x1200 y800&#39;<br>
<br>
Count = Count + 1                               next time step<br>
&#39;c&#39;                                             clear display<br>
Endwhile                                        loops between While and<br>
endwhile to print individual time steps<br>
<br>
<br>
kind regards<br>
<br>
Howard Staines<br>
Metris New Zealand<br>
<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>
_______________________________________________<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Tom Robinson<br>Treasurer - Graduate Student Organization <br>Secretary - Student Athletic Fee Committee <br>Graduate Student - Department of Atmospheric Science <br></div></div></div></div>
</div>