[gradsusr] Mean of specific time
Rafanoharana Serge Claudio
rafanoharana at gmail.com
Fri Sep 30 08:16:18 EDT 2011
Dear Arlindo,
Thank you for your answer.
Serge
On Wed, Sep 28, 2011 at 4:37 PM, Arlindo da Silva <dasilva at alum.mit.edu>wrote:
>
>
> On Wed, Sep 28, 2011 at 1:29 PM, Rafanoharana Serge Claudio <
> rafanoharana at gmail.com> wrote:
>
>> Dear all,
>>
>> 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 'cdo -r ymeanmonth
>> input.nc output.nc' but my computer says cannot allocate memory since the
>> file is pretty big in size (20 Gb)
>>
>> Then I tried to use GrADS but cannot find the appropriate command.
>> I will take one by one the mean of each month, so for example for october
>>
>> 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.
>>
>> How to get each october?
>> Something like 'define
>> oct=mean(var,t=10,t=22,t=34,t=46,t=58,t=71,t=83,t=95,t=107,t=119)
>>
>>
> Did you consult the documentation for ave()<http://grads.iges.org/grads/gadoc/gradfuncave.html>?
> It explicitly says that you can specify a time increment when time
> averaging,
>
> oct = ave(var,t=10,t=119,12)
>
> The time increment is 12 in this case.
>
> Arlindo
>
> --
> Arlindo da Silva
> dasilva at alum.mit.edu
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Serge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110930/08af963a/attachment-0003.html
More information about the gradsusr
mailing list