Project

General

Profile

cdo monmean timestamp creation

Added by Martin Bolliger over 4 years ago

Good day

I download hourly ERA5 grib data and convert it with cdo (version: 1.9.7.1) into a ncdf file.
Then I calculate monthly means:

cdo monmean input.nc output.nc

Looking at output.nc I see reasonable quantitative results BUT what confuses me are the timestamps per month:
2018-01-16 11:30:00 .....
2018-02-14 23:30:00 ......
2018-03-16 11:30:00 ......

A quick look at older files always gave me an identical monthly timestamp or each month, like: 2018-01-31 23:00:00 / 2018-02-28 23:00:00/ ...

Am I doing something wrong? Much appreciated, Martin


Replies (2)

RE: cdo monmean timestamp creation - Added by Uwe Schulzweida over 4 years ago

In older CDO version the output timestamp of monmean was the last contributing input timestamp.
We changed this some years ago to the mean of all contributing input timesteps.
You can change this default with the option "--timestat_date last":

cdo --timestat_date last monmean input.nc output.nc

    (1-2/2)