cdo setreftime change the format of time units
Added by Colombe Siegenthaler-Le Drian over 6 years ago
Hi all,
With cdo 1.8.2, cdo 1.9.2 and cdo 1.9.3, using setreftime change the format of the time attribute "units" by using only one digit in the day and month numbers (i.e time:units = "days since YYYY-M-D 00:00:00", instead of time:units = "days since YYYY-MM-DD 00:00:00").
With an example, when using the following cdo command
-setreftime,'1850-01-01','00:00:00'
The time unit in the new file is:
time:units = "days since 1850-1-1 00:00:00" ;
while in cdo 1.6.8, the time unit in the new file was:
time:units = "days since 1850-01-01 00:00:00" ;
This can cause models crash if they rely on the time unit for time reading. Would it possible to always write out "days since YYYY-DM-DD 00:00:00" (as in cdo 1.6.8) ?
Thank you very much in advance,
Colombe
Replies (1)
RE: cdo setreftime change the format of time units - Added by Ralf Mueller over 6 years ago
Hi Colombe!
This is a CF-compliant time unit string. if you have software that reads that string, you have to have a propper parser. I doubt, that we will change it back to 1.6.9 release.
sry
-ralf