Project

General

Profile

Different string date format with different CDO versions

Added by Alessandro Ceppi almost 7 years ago

Dear all,

I'd like to report this bug in the string date format while I'm doing this operation with different versions of CDO:

cdo sellonlatbox,6,14,43,48 input.nc output.nc

It is fine with cdo version 1.6.4 (YYYY-MM-DD) but not with cdo version 1.7.2

Details are:

CDO version 1.6.4:

double time(time=72);
:standard_name = "time";
:long_name = "verification time generated by wgrib2 function verftime()";
:units = "seconds since 1970-01-01 00:00:00";
:calendar = "standard";

CDO version 1.7.0 and 1.7.2

double time(time=72);
:standard_name = "time";
:long_name = "verification time generated by wgrib2 function verftime()";
:units = "seconds since 1970-1-1 00:00:00";
:calendar = "standard";
:axis = "T";

This create lots of problem in the string date format to be easily read by models.

Please, can you help me to solve this problem?

Kind regrads
Alessandro Ceppi


Replies (4)

RE: Different string date format with different CDO versions - Added by Ralf Mueller almost 7 years ago

Hi Alessandro!

this unit description follows the "CF convention"http://cfconventions.org/cf-conventions/v1.6.0/cf-conventions.html#time-coordinate

Have you checked the latest release 1.8.1?

cheers
ralf

RE: Different string date format with different CDO versions - Added by Alessandro Ceppi almost 7 years ago

Dear Ralf,

thanks for your answer. Last available CDO version on Ubuntu (via sudo apt-get) is 1.7.2, hence I did not tried the 1.8.1 yet.
However, with this command:
ncap2 -O -s "time@units=\"seconds since 1970-01-01 00:00:00\"" file.nc the bug is fixed.

Cheers
Alessandro

RE: Different string date format with different CDO versions - Added by Ralf Mueller almost 7 years ago

please note, that you can have the latest version with Anaconda without root access.

hth
ralf

    (1-4/4)