Explicitly set coords in nimrod load to have units "1"#3736
Explicitly set coords in nimrod load to have units "1"#3736pp-mo merged 1 commit intoSciTools:masterfrom
Conversation
|
It may still be worth checking if units are always explicitly set on lines: iris/lib/iris/fileformats/nimrod_load_rules.py Lines 571 to 573 in a07800c and iris/lib/iris/fileformats/nimrod_load_rules.py Lines 821 to 823 in a07800c |
Undestood. |
|
@pp-mo Yeah, I think this should be |
|
After looking through the code a bit more, I believe the two cases I mentioned before should always set explicit units. In the first case because the dictionary set here contains units for every value: iris/lib/iris/fileformats/nimrod_load_rules.py Lines 488 to 493 in a07800c and in the seond case because this logic ensures that a unit is always present in the arguments: iris/lib/iris/fileformats/nimrod_load_rules.py Lines 765 to 768 in a07800c |
Dead right, I had just come to the conclusion myself. I also checked all the ".add_xxx_coord(" throughout, and I believe they all check out. |
This should fix one of the failing tests in #3731 which would change the behaviour of nimrod loading due to a change in default units upon coord creation.