[gradsusr] Time Steps

Jeff Duda jeffduda319 at gmail.com
Tue Aug 7 15:12:28 EDT 2018


i = 1
while (i < maps)
 'define precipclim = ave(precip, t+'i', t=600-'i', 12)'
 ...
 ...
 ...
 i = i + 1
endwhile

Does that not suit your purpose?

On Tue, Aug 7, 2018 at 1:04 PM CW Weather <weatherstu at chorleyweather.com>
wrote:

> Hi Jeff,
>
> I was thinking something along those lines. I currently use the loop
> function for forecast data:
>
> i = 1
> while ( i<maps )
>
> i = i+1
> endwhile
>
> However I'm not entirely sure how to integrate that in the climatology
> code:
>
> 'set t 1 12'
> 'define precipclim = ave(precip, t+0, t=600, 12)'
> 'modify precipclim seasonal'
> 'set t 1 last'
> 'define anom = precip - precipclim'
> 'set time 1JUN2018'
>
> Any help would be greatly appreciated.
>
>
> On 07-08-2018 19:11, Jeff Duda wrote:
>
> Can you not use a loop to handle this?
>
> On Tue, Aug 7, 2018 at 6:34 AM CW Weather <weatherstu at chorleyweather.com>
> wrote:
>
>> Hi all,
>>
>> Im using climatology for re-analysis and i was wondering if there is a
>> way to run consecutive months one after the other without having to change
>> the set time function every time. My code is simple which defines monthly
>> steps from 50 years data but i want to run a few months worth of data one
>> after the other, is this possible rather that having to change time step
>> for every image?
>>
>> 'set t 1 12'
>> 'define precipclim = ave(precip, t+0, t=600, 12)'
>> 'modify precipclim seasonal'
>> 'set t 1 last'
>> 'define anom = precip - precipclim'
>> 'set time 1JUN2018'
>> --
>>
>> Kind regards,
>>
>> *Stuart Markham*
>>
>> *Founder of CW Weather*
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> --
> Jeff Duda, Research Scientist
>
> University of Colorado Boulder
>
> Cooperative Institute for Research in Environmental Sciences
>
> NOAA/OAR/ESRL/Global Systems Division
> Boulder, CO
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> --
>
> Kind regards,
>
> *Stuart Markham*
>
> *Founder of CW Weather*
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>


-- 
Jeff Duda, Research Scientist

University of Colorado Boulder

Cooperative Institute for Research in Environmental Sciences

NOAA/OAR/ESRL/Global Systems Division
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180807/f1330390/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9e849405.png
Type: image/png
Size: 22440 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180807/f1330390/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9e849405.png
Type: image/png
Size: 22440 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180807/f1330390/attachment-0003.png>


More information about the gradsusr mailing list