<div dir="ltr">You need to change your set t line <div><br></div><div><span style="font-size:12.8000001907349px">'set t '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">'set t ' 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"><<a href="mailto:webmaster@solargrafix.com" target="_blank">webmaster@solargrafix.com</a>></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>
'set datawarn off'<br>
'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>'<br>
<br>
Count = 1<br>
while (count > 80)<br>
<br>
'set t '1<br>
<br>
'set lat 35 50'<br>
'set lon -95 -65'<br>
'set mproj scaled'<br>
'set display color white'<br>
'set map 1'<br>
'set mpdset hires'<br>
'set mpdraw on'<br>
'set timelab off'<br>
'set grid off'<br>
'set font 0'<br>
'set strsiz .1'<br>
<br>
'q time'<br>
timestr=subwrd(result, 3)<br>
weekday1=subwrd(result,6)<br>
day=substr(result, 11, 9)<br>
hr=substr(result, 8, 2)<br>
'draw string 9.1 0.2 'day' 'hr z<br>
'draw string 8.7 0.2 'weekday1<br>
<br>
'set csmooth on'<br>
'set cterp on'<br>
'set gxout contour'<br>
'set clopts -1 -1 0.06'<br>
'set cmin 900'<br>
'set cmax 1100'<br>
'color 900 1100 2 -gxout contour -kind<br>
purple->darkblue->darkgreen->orange->red->darkred'<br>
'set cthick 2'<br>
'd smth9(prmslmsl/100)'<br>
<br>
'printim test'day'-'hr'z.png x1280 y960'<br>
<br>
Count = Count + 1<br>
'c'<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> 120 final time step<br>
<br>
'set t 'count ie/ first time step<br>
<br>
'set stuff lat lon maps etc<br>
<br>
'd apcpsfc' display variable<br>
'd t2m' display another variable<br>
'd mslp' etc<br>
<br>
Print image<br>
'gxprint image_'Count .png x1200 y800'<br>
<br>
Count = Count + 1 next time step<br>
'c' 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>