<div>Yi-Chih,</div><div>It appears you wish to plot accumulated precip over 1-hr/3-hr/6-hr periods (whatever a one-unit increment in your TDEF is). Try the modified code below:</div><div> </div><div>########################<br>
"set t 1 57"<br>"set x 1 138"<br>"set lat 23.46"<br>"set parea 1.5 9.7 1 8.3"<br>"set gxout shaded"<br>"d tloop(rainnc - rainnc(t-1))"<br>#######################<br>
</div><div>I think that last line should give you what you want. I have used that command multiple times myself with success.</div><div> </div><div>Jeff<br></div><div class="gmail_quote">On Sat, Nov 26, 2011 at 2:31 PM, Yi-Chih Huang <span dir="ltr"><<a href="mailto:dscpln@gmail.com">dscpln@gmail.com</a>></span> wrote:<br>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">Hello,<br><br> The command tloop needs data prepared as the description below. However, the variable I have is an accumulated variable. I have to calculate the increment with time. Then what would be the right commands to display time-longitude diagrams?<br>
<br>################<br>The <code>tloop</code> function loops through time based on the time
increment of the default file; it is thus important to have the default
file set appropriately. <br><div class="im"><br> Thanks much for your help,<br><br> Yi-Chih<br><br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Sat, Nov 26, 2011 at 2:53 PM, Jeff <span dir="ltr"><<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>></span> wrote:<br>
<blockquote style="margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">Look up the Grads command tloop. It is probably the answer to your question.<br>
<br>
Jeff Duda<br>
<br>
Sent from my Verizon Wireless BlackBerry<br>
<br>
-----Original Message-----<br>
From: Yi-Chih Huang <<a href="mailto:dscpln@gmail.com" target="_blank">dscpln@gmail.com</a>><br>
Sender: <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a><br>
Date: Sat, 26 Nov 2011 14:42:23<br>
To: GrADS Users Forum<<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>><br>
Reply-To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>><br>
<div>Subject: Re: [gradsusr] the commands with variables change in a while loop<br>
online<br>
<br>
</div><div><div></div><div>_______________________________________________<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>
_______________________________________________<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><br>
</div></div></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>