[gradsusr] Mean of specific time

Arlindo da Silva dasilva at alum.mit.edu
Wed Sep 28 19:37:06 EDT 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110928/1a21757b/attachment-0003.html 


More information about the gradsusr mailing list