Project

General

Profile

bug in -r option?

Added by Geert Jan van Oldenborgh about 6 years ago

Hi,

after upgrading cdo to .9.3 I suddenly get wrong output files:

wget ftp://ftp-anon.dwd.de/pub/data/gpcc/monitoring_v5/1982/monitoring_v5_10_1982_01.nc.gz
gunzip monitoring_v5_10_1982_01.nc.gz
ncdump -c monitoring_v5_10_1982_01.nc | tail
cdo -r copy monitoring_v5_10_1982_01.nc aap.nc
ncdump -c aap.nc | fgrep time

gives

time = 19820101 ;
}

in the original file, but

double time(time) ;
time:standard_name = "time" ;
time:units = "days since 1-1-1 00:00:00" ;
time:calendar = "proleptic_gregorian" ;
time:axis = "T" ;
...
:time_coverage_start = "1982-01" ;
:time_coverage_end = "1982-01" ;
:time_coverage_resolution = "month" ;
time = 0 ;

in the converted one, ie, time start sat 01jan0001 instead of 01jan1982.

cdo --version
Climate Data Operators version 1.9.3 (http://mpimet.mpg.de/cdo)
Compiled: by gj on bima (x86_64-apple-darwin17.4.0) Feb 21 2018 14:09:56
CXX Compiler: g++ -std=gnu++11 -g -O2 -fopenmp -D_THREAD_SAFE -pthread
CXX version : g++ (GCC) 4.9.2 20141029 (prerelease)
C Compiler: gcc -std=gnu99 -g -O2 -fopenmp -D_THREAD_SAFE -pthread
C version : gcc (GCC) 4.9.2 20141029 (prerelease)
F77 Compiler: pgf90 -g -O2
F77 version : unknown
Features: 12GB C++11 Fortran DATA PTHREADS OpenMP4 HDF5 NC4/HDF5 OPeNDAP UDUNITS2 SSE3
Libraries: HDF5/1.8.14
Filetypes: srv ext ieg grb1 grb2 nc1 nc2 nc4 nc4c
CDI library version : 1.9.3 of Feb 21 2018 14:07:24
CGRIBEX library version : 1.9.0 of Jan 22 2018 09:24:03
GRIB_API library version : 2.6.0
NetCDF library version : 4.3.3.1 of Sep 24 2016 06:31:43 $
HDF5 library version : 1.8.14
EXSE library version : 1.4.0 of Feb 21 2018 14:07:07
FILE library version : 1.8.3 of Feb 21 2018 14:06:59

The same bug occurs in the cdo 1.9.2 that is in fink (macOS).
I am trying to revert to the old version...

Greetings,
Geert Jan van Oldenborgh


Replies (1)

RE: bug in -r option? - Added by Uwe Schulzweida about 6 years ago

Hi Geert Jan,

thanks for this report! We will fix this bug in the next CDO release. This bug was introduced in release 1.9.1.

Cheers,
Uwe

    (1-1/1)