<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Tahoma,Arial,Helvetica,sans-serif'>
<p>Hi Jeff, </p>
<p>I was thinking something along those lines. I currently use the loop function for forecast data:</p>
<p>i = 1<br /> while ( i<maps )</p>
<p>i = i+1<br />endwhile</p>
<p>However I'm not entirely sure how to integrate that in the climatology code:</p>
<p><span>'set t 1 12'</span><br /><span>'define precipclim = ave(precip, t+0, t=600, 12)'</span><br /><span>'modify precipclim seasonal'</span><br /><span>'set t 1 last'</span><br /><span>'define anom = precip - precipclim'</span><br /><span>'set time 1JUN2018'</span></p>
<p><span>Any help would be greatly appreciated.</span></p>
<p><br /></p>
<p>On 07-08-2018 19:11, Jeff Duda wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">Can you not use a loop to handle this?</div>
<br />
<div class="gmail_quote">
<div dir="ltr">On Tue, Aug 7, 2018 at 6:34 AM CW Weather <<a href="mailto:weatherstu@chorleyweather.com">weatherstu@chorleyweather.com</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">
<div style="font-size: 10pt; font-family: Tahoma,Arial,Helvetica,sans-serif;">
<p>Hi all, </p>
<p>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? </p>
<p>'set t 1 12'<br />'define precipclim = ave(precip, t+0, t=600, 12)'<br />'modify precipclim seasonal'<br />'set t 1 last'<br />'define anom = precip - precipclim'<br />'set time 1JUN2018'</p>
<div>-- <br />
<p>Kind regards,</p>
<p><strong>Stuart Markham</strong></p>
<p><em>Founder of CW Weather</em></p>
<p><img width="147" height="65" /></p>
</div>
</div>
_______________________________________________<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" rel="noopener noreferrer">http://gradsusr.org/mailman/listinfo/gradsusr</a></blockquote>
</div>
<br clear="all" />
<div> </div>
-- <br />
<div class="gmail_signature" dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div><span style="font-size: small;"><span>Jeff Duda, Research Scientist<br /></span></span>
<p style="margin-bottom: 0.0001pt;"><span style="font-size: small;"><span><span>University of Colorado Boulder</span></span></span></p>
<span style="font-size: small;"><span> </span></span>
<p style="margin-bottom: 0.0001pt;"><span style="font-size: small;"><span><span>Cooperative Institute for Research in Environmental Sciences</span></span></span></p>
<span style="font-size: small;"><span> </span></span>
<p style="margin-bottom: 0.0001pt;"><span style="font-size: small;"><span><span>NOAA/OAR/ESRL/Global Systems Division</span></span></span></p>
<span style="font-size: small;"><span> <span>Boulder, CO</span></span></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<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" rel="noopener noreferrer">http://gradsusr.org/mailman/listinfo/gradsusr</a></div>
</blockquote>
<p><br /></p>
<div>-- <br />
<p>Kind regards,</p>
<p><strong>Stuart Markham</strong></p>
<p><em>Founder of CW Weather</em></p>
<p><img src="cid:9e849405edb0a79e162c211a585f3245@chorleyweather.com" alt="" width="147" height="65" /></p>
</div>
</body></html>