<p>Hi lopez, </p>
<p>Thanks for your input but I don't want runing mean average based on 10 years, instead I want decadal average such that after getting averaged value for first 10 years (average of 1 to 120 months) it should give value for next 10 years (average of 121 to 240th time) and so on.</p>
<p>Thanks,</p>
<p>Mubashar</p>
<div class="gmail_quote">On Sep 4, 2013 9:45 PM, "Hosmay Lopez" <<a href="mailto:hlopez@rsmas.miami.edu">hlopez@rsmas.miami.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Mubashar,<br>
<br>
You can use the tloop function in conjunction with the ave function as follows:<br>
<br>
set t 61 2340<br>
d tloop(ave(temperature,t-60,t+60))<br>
<br>
This will create an average for decadal timescales.<br>
Note, the time start at month 61 = beginning of year 6 and ends at month 2340 = 5 years prior to year 200 of your data.<br>
<br>
At the end you should have a monthly time series of decadal averaged quantity.<br>
<br>
Best,<br>
<br>
Hosmay Lopez<br>
Rosenstiel School of Marine and Atmospheric Science<br>
University of Miami<br>
4600 Rickenbacker Causeway Miami, FL 33149<br>
Office: MSC337<br>
Phone: (305) 298-8006<br>
<br>
________________________________________<br>
From: <a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>] on behalf of Mubashar Ahmad [<a href="mailto:mubashardogar@gmail.com">mubashardogar@gmail.com</a>]<br>
Sent: Wednesday, September 04, 2013 2:12 PM<br>
To: gradsusr<br>
Subject: [gradsusr] Decadal average plot<br>
<br>
Dear Grads Users,<br>
<br>
I have monthly time series data (let say surface temperature) and<br>
wanted to plot it on decadal average basis. I mean first value of plot<br>
will be average of first 120 months and the next value of my plot will<br>
be average of next 120 months and so on. In total for 200 years I<br>
should get 20 value in plot. How can I do that? Y axis will be decadal<br>
average temperature values and x axis can be labelled 1, 2, 3 up 20<br>
instead of months or years.<br>
<br>
Thanks,<br>
<br>
Mubashar<br>
_______________________________________________<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">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
_______________________________________________<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">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div>