Hello,<br><br>    Thanks much for the response.  After I removed &quot;set t &quot;i, the error messages are follows.  I am wondering why &quot;set lat 23.46&quot; was not working and what would be the right commands to display the time-longitude diagram?<br>
<br>################################<br>...........................<br>Data Request Error: Invalid dimension expression<br>  Attempt to set or modify varying dimension<br>  Variable = rainnc, Dimension = 3 <br>  Error ocurred at column 1<br>
DISPLAY error:  Invalid expression <br>  Expression = rainnc(t=55)-rainnc(t=54)<br>56<br>Data Request Error: Invalid dimension expression<br>  Attempt to set or modify varying dimension<br>  Variable = rainnc, Dimension = 3 <br>
  Error ocurred at column 1<br>DISPLAY error:  Invalid expression <br>  Expression = rainnc(t=56)-rainnc(t=55)<br>57<br>Data Request Error: Invalid dimension expression<br>  Attempt to set or modify varying dimension<br>  Variable = rainnc, Dimension = 3 <br>
  Error ocurred at column 1<br>DISPLAY error:  Invalid expression <br>  Expression = rainnc(t=57)-rainnc(t=56)<br>58<br>Cannot plot color bar: No shading information<br>###############################################<br><br>
    Thanks much for your help,<br><br>                        Yi-Chih<br><br><br><div class="gmail_quote">On Sat, Nov 26, 2011 at 11:53 AM, Rowell, Mason D. <span dir="ltr">&lt;<a href="mailto:Mason.D.Rowell-1@ou.edu">Mason.D.Rowell-1@ou.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt;">Hello there,<br>
<br>
I think if you remove the &quot;set t&quot;i, you will get what you want. That way you don&#39;t fix time to some number (which is why you are getting a one dimensional plot for all iterations), your loop will still run and produce the difference you need for each iteration,
 and the time variable will still be set for the variation in time you seek for all iterations. In other words, you don&#39;t need to set t to i before your next statement, the use of functional notation like in your difference statement should work independently
 of setting the time dimension. However, I&#39;ll qualify that by stating I just learned of this functional capability, so someone should probably back me up.<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" face="Tahoma" size="2"><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 Yi-Chih Huang [<a href="mailto:dscpln@gmail.com" target="_blank">dscpln@gmail.com</a>]<br>

<b>Sent:</b> Saturday, November 26, 2011 9:12 AM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] the commands with variables change in a while loop online<br>
</font><br>
</div><div><div></div><div class="h5">
<div></div>
<div>Hello,<br>
<br>
    I am trying to generate a diagram with time as y axis and longitude as x axis.  Without the calculation of time, it is easy to generate such a diagram.  When the calculations include time, what would the program looks like to generate the time-longitude
 diagram?  The following script only resulted in many one-dimensional diagrams.<br>
<br>
########################<br>
&quot;set t 1 57&quot;<br>
&quot;set x 1 138&quot;<br>
&quot;set lat 23.46&quot;<br>
&quot;set parea 1.5  9.7 1 8.3&quot;<br>
&quot;set gxout shaded&quot;<br>
i=2<br>
while (i&lt;58)<br>
   &quot;set t &quot;i<br>
   &quot;d rainnc(t=&quot;i&quot;) - rainnc(t=&quot;i-1&quot;)&quot;<br>
   i=i+1<br>
endwhile<br>
#######################<br>
<br>
    Thanks much for your help,<br>
<br>
                Yi-Chih<br>
</div>
</div></div></div>
</div>
</div>

<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></blockquote></div><br>