<br><br><div class="gmail_quote">On Wed, Sep 28, 2011 at 1:29 PM, Rafanoharana Serge Claudio <span dir="ltr">&lt;<a href="mailto:rafanoharana@gmail.com">rafanoharana@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear all,<br><br>How to get the mean of a specific time. I mean I have monthly data of 10 years. I need to obtain the mean of each month. I used &#39;cdo -r ymeanmonth <a href="http://input.nc" target="_blank">input.nc</a> <a href="http://output.nc" target="_blank">output.nc</a>&#39; but my computer says cannot allocate memory since the file is pretty big in size (20 Gb)<br>

<br>Then I tried to use GrADS but cannot find the appropriate command.<br>I will take one by one the mean of each month, so for example for october<br><br>if I do define oct=mean (var, t=1, t=12) it will give me the mean of 12 month but I do not need that but I need the mean of all october of 10 years of the monthly data of 10 years.<br>

<br>How to get each october?<br>Something like  &#39;define oct=mean(var,t=10,t=22,t=34,t=46,t=58,t=71,t=83,t=95,t=107,t=119)<br><br></blockquote><div><br></div><div>Did you consult the documentation for <a href="http://grads.iges.org/grads/gadoc/gradfuncave.html">ave()</a>? It explicitly says that you can specify a time increment when time averaging,</div>
<div><br></div><div>  oct = ave(var,t=10,t=119,12)</div><div><br></div><div>The time increment is 12 in this case.</div><div><br></div><div>   Arlindo</div><div><br></div></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>