-
Notifications
You must be signed in to change notification settings - Fork 49
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
CF valid units that are not in UDUNITS #30
Comments
Thanks for reporting this @mhidas.
|
FYI, @hasselldc ships a modified UDUNITS database in cf-python. |
Thanks @rhattersley! I will take a look and, if possible, push it upstream to UDUNITS-2. |
|
Note to self: Unidata/UDUNITS-2#42 |
Has there been any progress on this issue? I don't think any of these units will make it into UDUNITS any time soon, if the (lack of) activity in those issue threads (Unidata/UDUNITS-2#33, Unidata/UDUNITS-2#42) is anything to go by. |
It doesn't appear so. Unidata/UDUNITS-2#42 does look promising. Adding custom udunits definitions is also an option. Given the relevance of the CF documentation, if you have a proposal for moving this forwards without adding significant complexity to |
Thanks @pelson . I've commented on that UDUNITS PR to see if there's a chance of getting it merged. If there's no response I'll look into proposing a solution here. |
@ocefpaf sorry for gravedigging but Unidata/UDUNITS-2#42 was finally merged last year. Any thoughts on this issue? |
We can backport it as a patch but I'd rather ask upstream for a new release. The latest one is https://github.com/Unidata/UDUNITS-2/releases/tag/v2.2.27.27 from Nov 20, 2020 and that PR (from 2016!) was merged on Mar 17, 2021. |
It looks like the last release was Feb 1st 2022 but this was not tagged Unidata/UDUNITS-2#104. So it looks like this ought to be in a released version. |
Please note that the CF FAQ text referred to in the opening comment is not up to date. |
From @SciTools/peloton, can this be: A: closed? |
I had no idea it was assigned to me :-) |
The CF FAQ page says:
Looks like "sverdrup" is already in UDUNITS-2. "decibel" and "dB" are not. There is an open request to add it (Unidata/UDUNITS-2#33), but the discussion there suggests this may not be possible in a generic way, i.e. without specifying a reference value.
Would it be possible to get cf_units to recognise "dB" and "decibel" (as effectively dimensionless units), independently of UDUNITS?
The text was updated successfully, but these errors were encountered: