[gradsusr] the commands with variables change in a while loop online

Yi-Chih Huang dscpln at gmail.com
Sat Nov 26 10:12:25 EST 2011


Hello,

    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.

########################
"set t 1 57"
"set x 1 138"
"set lat 23.46"
"set parea 1.5  9.7 1 8.3"
"set gxout shaded"
i=2
while (i<58)
   "set t "i
   "d rainnc(t="i") - rainnc(t="i-1")"
   i=i+1
endwhile
#######################

    Thanks much for your help,

                Yi-Chih
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20111126/f06a3ae0/attachment-0003.html 


More information about the gradsusr mailing list