Conversation
lib/iris/fileformats/um_cf_map.py
Outdated
There was a problem hiding this comment.
Units of kg/kg, m3/m3? Really? Is there a reason for not having units of '1'?
There was a problem hiding this comment.
yes, this is significantly preferred by the user community
e.g.: kg/kg and mol/mol are interpreted quite differently from certain scientific perspectives. Although both have units of '1' from a mathematical perspective, the scientific interpretation is different and our user community is keen to preserve this information.
There was a problem hiding this comment.
I've certainly seen a lot of opinion that prefers "kg/kg", so I'm OK with this.
I've yet to be convinced "the scientific interpretation is different" - rather that some people use the unit as an alternative/adjunct to the standard name. But that's a different battle... 😑
There was a problem hiding this comment.
Interesting given the units of '1' listed in the cf standard name table. I won't lose any sleep over it, but don't expect such units to be preserved if performing calculations e.g.:
>>> iris.unit.Unit('kg/kg') * 'm'
Unit('meter')|
Ok, looks fine now |
updates to field code management; translations moved from rules into metarelate
All changes reviewed and committed to metarelate's metocean information store
this pull request incorporates all changes from #965 and #989, which is supercedes
this pull request also includes translations from #1145 and #1154 and may be better merged after these