<br><font size=2 face="sans-serif">Herbert,</font><br><font size=2 face="sans-serif">You could also try using the &quot;skip&quot;
command. Perhaps something like this will also work for you:</font><br><br><font size=2 face="sans-serif">set time 00z01jun2007 00z01jul2007</font><br><font size=2 face="sans-serif">set missconn on &nbsp; (if connecting
lines desired, as Mike suggested)</font><br><font size=2 face="sans-serif">d skip(air,4)</font><br><br><font size=2 face="sans-serif">Above should display data only at 00z
timesteps (assuming 4x daily as in your sample).</font><br><br><font size=2 face="sans-serif">Stephen McMillan</font><br><br><br><table width=100%><tr valign=top><td width=40%><font size=1 face="sans-serif"><b>Mike Bosilovich &lt;mike.bosilovich@GMAIL.COM&gt;</b></font><br><font size=1 face="sans-serif">Sent by: GRADSUSR@LIST.CINECA.IT</font><p><font size=1 face="sans-serif">07/03/2008 11:24 AM</font><table border><tr valign=top><td bgcolor=white><div align=center><font size=1 face="sans-serif">Please respond to<br>GRADSUSR@LIST.CINECA.IT</font></div></table><br><td width=59%><table width=100%><tr valign=top><td><div align=right><font size=1 face="sans-serif">To</font></div><td><font size=1 face="sans-serif">GRADSUSR@LIST.CINECA.IT</font><tr valign=top><td><div align=right><font size=1 face="sans-serif">cc</font></div><td><tr valign=top><td><div align=right><font size=1 face="sans-serif">Subject</font></div><td><font size=1 face="sans-serif">Re: skipping time</font></table><br><table><tr valign=top><td><td></table><br></table><br><br><br><font size=3>I came up with a way to do this. It is not elegant, but
works, and I would be happy to see another option. The idea is to maskout
all other times except the one you want to plot. However, grads won't let
you take a single time variable, and expand that into a time series so
that it can mask the other times. So, here goes, for 00Z:</font><br><br><font size=3>set time 18Z1Jul2004 00Z2Jul2004</font><br><font size=3>define m1=1</font><br><font size=3>set time 00Z2Jul2004 06Z2Jul2004</font><br><font size=3>define m2=1</font><br><font size=3>set time 00Z2Jul2004 18Z2jul2004</font><br><font size=3>define m3=m2*m1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*m3=1 at 00Z2Jul, undef all others</font><br><font size=3>modify m3 diurnal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
* now m3=1 for all 00Z</font><br><br><font size=3>set time 00Z1Jul2004 18Z31jul2004</font><br><font size=3>display var*m3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</font><br><br><font size=3>The display should have a time series of 00Z points. If
you want those points connected then prior to display, set missconn on.</font><br><br><font size=3>Hope it helps,</font><br><br><font size=3>Mike</font><br><br><font size=3>On Thu, Jul 3, 2008 at 3:28 AM, Maat, Herbert ter &lt;</font><a href=mailto:Herbert.termaat@wur.nl><font size=3 color=blue><u>Herbert.termaat@wur.nl</u></font></a><font size=3>&gt;
wrote:</font><br><font size=2 face="Arial">Dear GrADS-users,</font><br><font size=3>&nbsp;</font><br><font size=2 face="Arial">I have a very simple question which is probably
easy to answer as well. </font><br><font size=3>&nbsp;</font><br><font size=2 face="Arial">I have temperature data in a timeseries of,
let's say, 120 timesteps (30 days times 4 points per day; 00z 06z 12z and
18z). Using GrADS I want to display a selection of this data, namely only
temperature at 00Z and skipping the other timesteps, thus display times
1, 4, 9, and so on. Is there a simple statement to do this in GrADS or
do I need to end up writing a script for this?</font><br><font size=3>&nbsp;</font><br><font size=2 face="Arial">Kind regards,</font><br><font size=2 face="Arial">Herbert ter Maat</font><br><br><br><BR>
<BR>
***************************************************<BR>
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary.  If you are not the intended recipient, you may not review, copy or distribute this message.  If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.<BR>
***************************************************<BR>