[ncl-talk] Running average

Dennis Shea shea at ucar.edu
Mon Dec 3 14:58:12 MST 2018


re: "Cdo will do it easily"

Command line operators [CDO, NCO] are easy to implement.
In NCL Workshops we suggest that users use CDO/NCO because no programming
is needed.

They work especially well if you use the correct option

%> *cdo **-runavg*,5  infile  outfile

See:  *https://duncanjg.files.wordpress.com/2008/02/cdo_refcard.pdf*
<https://duncanjg.files.wordpress.com/2008/02/cdo_refcard.pdf>

*===*
 re: ".. and better"

Huh?  What do you mean?

*http://www.ncl.ucar.edu/Document/Functions/Built-in/runave_n.shtml*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/runave_n.shtml>

has  an option to tell NCL how to treat beginning and end points.

For meta data use:

*http://www.ncl.ucar.edu/Document/Functions/Contributed/runave_n_Wrap.shtml*
<http://www.ncl.ucar.edu/Document/Functions/Contributed/runave_n_Wrap.shtml>


On Mon, Dec 3, 2018 at 2:44 AM Oluwaseun Ilori <wilseun at gmail.com> wrote:

> Cdo will do it easily and better
>
> cdo -timselmean,5 infile outfile
>
>
> On Mon, Dec 3, 2018, 10:36 AM Soma Roy <somaroy892 at gmail.com wrote:
>
>> Hello,
>>
>> I am using daily gridded rainfall datasets.
>> I want to compute 5 days and 7 days running avg. of rainfall from the
>> datasets over each grid points.
>>
>> Structure of the input file is like below;
>>
>> Rain (730, 129, 135)  ; (time (365*2), lat, lon)
>>
>> Please kindly inform me which function should I use in this case.
>>
>> Thanking you,
>> Soma
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181203/4b30194b/attachment.html>


More information about the ncl-talk mailing list