Question about loops
Charles Seman
Charles.Seman at NOAA.GOV
Fri Jan 20 11:08:58 EST 2006
Aaron,
Have you found a way to do this yet?
Here is a section of GrADS script code that may be helpful (from Vaughan
Phillips):
---
'open /home/vtp/GCSS2_WRF/test/eh_squall2d_x/TOGA_NEW/ifamean.ctlt'
'set z 1'
'set x 1'
'set y 1'
'set t 1 960'
'define prec = prec'
'define pobs = tloop(sum(prec,t=393,t+0))'
'set t 393 441'
'define pob = pobs'
'd pob'
'draw xlab time (days)'
'draw ylab P (mm)'
'draw title \ ACCUMULATED PRECIPITATION'
'close 1'
'cbar_l -t "WRF" "LAN" "OBS" -p'
'print'
'disable print'
---
Chuck
Mr Aaron Pratt wrote:
>Hello everyone,
>
>I have a question about setting up a loop. I want to
>generate a 24 hour accumulated precipitation total
>forecast from the WRF model. For example, if I had a
>36 hour forecast starting at 00Z August 12, I want to
>look at the last 24 hours of that forecast (12Z August
>22 - 12Z August 23).
>
>I know that my loop should increment with the forecast
>interval (every 3 hours). Also, I know that, within
>this loop precipitation needs to be summed up. I've
>forgotten exactly how to set up such a loop. Thanks in
>advance for any help that anyone might be able to
>offer.
>
>Aaron
>
>
>
>
>
>__________________________________
>Yahoo! Mail - PC Magazine Editors' Choice 2005
>http://mail.yahoo.com
>
>
--
********************************************************************
Charles Seman charles.seman at noaa.gov
U.S. Department of Commerce / NOAA / OAR
Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547
201 Forrestal Road fax: (609) 987-5063
Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/
********************************************************************
"The contents of this message are mine personally and do not reflect
any position of the Government or NOAA."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20060120/4c15ea88/attachment.html
More information about the gradsusr
mailing list