Project

General

Profile

5day Average (Pentads) in cdo

Added by Lyndon Mark Olaguera about 8 years ago

Hi all,

I have daily data of rainfall from 1981-2007 in netcdf format. I want to compute for the pentads of each year and the pentad of the daily climatology (ydaymean from 1981-2007).
I found one forum in cdo about this using the following commands:

cdo timselmean,5 ifile ofile

But this can only be used for years with 365 days. For years with 366 days (such 1984, 1988, 1992, 1996, 2000, 2004), February 29 should be included in the last pentad of february.

Can you suggest any simple methods to loop this in cdo?

I hope you can help me.

Many thanks,

Lyndz


Replies (1)

RE: 5day Average (Pentads) in cdo - Added by Lyndon Mark Olaguera about 8 years ago

Lyndon Mark Olaguera wrote:

Hi all,

I have daily data of rainfall from 1981-2007 in netcdf format. I want to compute for the pentads of each year and the pentad of the daily climatology (ydaymean from 1981-2007).
I found one forum in cdo about this using the following commands:

cdo timselmean,5 ifile ofile

But this can only be used for years with 365 days. For years with 366 days (such 1984, 1988, 1992, 1996, 2000, 2004), February 29 should be included in the last pentad of february.

Can you suggest any simple methods to loop this in cdo?

I hope you can help me.

Many thanks,

Lyndz

    (1-1/1)