Project

General

Profile

CDO copy inserts 29/02 although not a leap year

Added by Rafael Menendez about 10 years ago

CDO copy inserts 29/02 although not a leap year. I have 8 files with hourly data 28/02 00:00, 28/02 06:00, 28/02 12:00, 28/02 18:00, 01/03 00:00, 01/03 06:00, 01/03 12:00, 01/03 18:00.

cdo info file01.grb
-1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID
1 : 1997-02-28 00:00:00 0 10530 0 : 256.72 275.26 294.62 : 167.128
cdo info: Processed 10530 values from 1 variable over 1 timestep

cdo info file02.grb
-1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID
1 : 1997-02-28 06:00:00 0 10530 0 : 256.52 274.51 293.33 : 167.128
cdo info: Processed 10530 values from 1 variable over 1 timestep

cdo info file03.grb
-1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID
1 : 1997-02-28 12:00:00 0 10530 0 : 258.21 278.82 298.67 : 167.128
cdo info: Processed 10530 values from 1 variable over 1 timestep

cdo info file04.grb
-1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID
1 : 1997-02-28 18:00:00 0 10530 0 : 257.12 277.27 297.36 : 167.128
cdo info: Processed 10530 values from 1 variable over 1 timestep

cdo info file05.grb
-1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID
1 : 1997-03-01 00:00:00 0 10530 0 : 256.69 275.25 294.56 : 167.128
cdo info: Processed 10530 values from 1 variable over 1 timestep

cdo info file06.grb
-1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID
1 : 1997-03-01 06:00:00 0 10530 0 : 256.29 274.53 293.22 : 167.128
cdo info: Processed 10530 values from 1 variable over 1 timestep

cdo info file07.grb
-1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID
1 : 1997-02-29 12:00:00 0 10530 0 : 258.17 278.89 298.42 : 167.128
cdo info: Processed 10530 values from 1 variable over 1 timestep

cdo info file08.grb
-1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID
1 : 1997-03-01 18:00:00 0 10530 0 : 257.33 277.33 297.35 : 167.128
cdo info: Processed 10530 values from 1 variable over 1 timestep

Making the copy

cdo copy file01.grb file02.grb file03.grb file04.grb file05.grb file06.grb file07.grb file08.grb copy.grb

And the output is

cdo info copy.grb
-1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID
1 : 1997-02-28 00:00:00 0 10530 0 : 256.72 275.26 294.62 : 167.128
2 : 1997-02-28 06:00:00 0 10530 0 : 256.52 274.51 293.33 : 167.128
3 : 1997-02-28 12:00:00 0 10530 0 : 258.21 278.82 298.67 : 167.128
4 : 1997-02-28 18:00:00 0 10530 0 : 257.12 277.27 297.36 : 167.128
5 : 1997-03-01 00:00:00 0 10530 0 : 256.69 275.25 294.56 : 167.128
6 : 1997-03-01 06:00:00 0 10530 0 : 256.29 274.53 293.22 : 167.128
7 : 1997-02-29 12:00:00 0 10530 0 : 258.17 278.89 298.42 : 167.128
8 : 1997-03-01 18:00:00 0 10530 0 : 257.33 277.33 297.35 : 167.128
cdo info: Processed 84240 values from 1 variable over 8 timesteps

Is this a bug or is there anything wrong?

This my CDO version information

Climate Data Operators version 1.6.2 (http://code.zmaw.de/projects/cdo)
Compiler: gcc -std=gnu99 -g -O2 -pthread
version: gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Compiled: by root on mm54 (x86_64-unknown-linux-gnu) Nov 28 2013 09:08:07
Features: PTHREADS Z
Libraries:
Filetypes: srv ext ieg grb grb2
CDI library version : 1.6.2 of Nov 28 2013 09:08:00
CGRIBEX library version : 1.6.2 of Oct 9 2013 11:03:55
GRIB_API library version : 1.9.9
SERVICE library version : 1.3.1 of Nov 28 2013 09:07:50
EXTRA library version : 1.3.1 of Nov 28 2013 09:07:44
IEG library version : 1.3.1 of Nov 28 2013 09:07:47
FILE library version : 1.8.2 of Nov 28 2013 09:07:44

CDO.zip (120 KB) CDO.zip

Replies (1)

RE: CDO copy inserts 29/02 although not a leap year - Added by Rafael Menendez about 10 years ago

In fact I was doing somethin wrong.

Thanks

    (1-1/1)