-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
time units in CORDEX-CMIP6 archiving specs #5
Comments
In CMIP6, they just skip the time of the day in the time units examples, e.g. |
I cannot comment on CMOR or the archiving specification, but on a more general level there is a subtle distinction to be aware of. According to ISO-8601 (From Wikipedia) omission of the time part indicates reduced precision:
However, CF states in Section 4.4:
Regarding the specific formatting of the DATE and CLOCK part, in CF there is preference to omit leading zeroes and use instead of "T" as separator between the DATE part and CLOCK part. UDUNITS-2, however, accepts both these according to the unit grammar. From my own perspective I think that it is better to be explicit than implicit and include the CLOCK part, in particular as there is this discrepancy between CF and ISO. And as UDUNITS-2 accepts the ISO format I see no harm in following that, especially as a test file passes two different cf-checkers. |
Thank you, @larsbarring
you mean:
right? Regarding the omission of leading zeros, this is also a discrepancy with the ISO, as the ISO does not allow to omit leading zeros:
@larsbuntemeyer, could you confirm whether the CMOR library has a specific format hardcoded for the time units origin? |
Yes, indeed
it is. Thanks for spotting this. |
just checking this issue I noted that the global attribute |
The specs currently state that:
This unit formatting as a timestamp (instead of e.g.
days since 1950-01-01 00:00:00
) is inherited from the previous CORDEX (-CMIP5) specifications.While CF delegates the interpretation of the time units to the udunits2 library, the examples given in the CF conventions for these units use the
days since DATE CLOCK
formatting. Also, I couldn't find any file from CMIP6 or CORDEX(-CMIP5) formatted using thedays since TIMESTAMP
format suggested in the archiving specifications. I wonder whether the CMOR library is automatically writing the time units in a DATE CLOCK format.So, even though udunits2 seems to accept the timestamp formatting, we might consider updating the CORDEX-CMIP6 archive specs to the actual use of these units in the output files.
ping @gnikulin @larsbarring
The text was updated successfully, but these errors were encountered: