[gradsusr] the commands with variables change in a while loop online
Jeff Duda
jeffduda319 at gmail.com
Sat Nov 26 17:16:18 EST 2011
Yi-Chih,
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:
########################
"set t 1 57"
"set x 1 138"
"set lat 23.46"
"set parea 1.5 9.7 1 8.3"
"set gxout shaded"
"d tloop(rainnc - rainnc(t-1))"
#######################
I think that last line should give you what you want. I have used that
command multiple times myself with success.
Jeff
On Sat, Nov 26, 2011 at 2:31 PM, Yi-Chih Huang <dscpln at gmail.com> wrote:
> Hello,
>
> 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?
>
> ################
> The tloop function loops through time based on the time increment of the
> default file; it is thus important to have the default file set
> appropriately.
>
> Thanks much for your help,
>
> Yi-Chih
>
>
> On Sat, Nov 26, 2011 at 2:53 PM, Jeff <jeffduda319 at gmail.com> wrote:
>
>> Look up the Grads command tloop. It is probably the answer to your
>> question.
>>
>> Jeff Duda
>>
>> Sent from my Verizon Wireless BlackBerry
>>
>> -----Original Message-----
>> From: Yi-Chih Huang <dscpln at gmail.com>
>> Sender: gradsusr-bounces at gradsusr.org
>> Date: Sat, 26 Nov 2011 14:42:23
>> To: GrADS Users Forum<gradsusr at gradsusr.org>
>> Reply-To: GrADS Users Forum <gradsusr at gradsusr.org>
>> Subject: Re: [gradsusr] the commands with variables change in a while loop
>> online
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>
>
--
Jeff Duda
Grad student - PhD, Meteorology
University of Oklahoma School of Meteorology - Center for Analysis and
Prediction of Storms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20111126/34245442/attachment-0003.html
More information about the gradsusr
mailing list