How to load/save a CMIP netcdf file and not have Iris change the time coordinate calendar? #6707
-
After Iris 3.11.1 it appears that while loading a netcdf as a cube, Iris changes the time coordinate calendar settings of "Gregorian" to "Standard". I understand the motivation, but I need to see/use the calendar designation that exists in the netcdf file and be able to write a new netcdf with the same calendar setting. How can I stop the calendar being ``silently changed to “standard”'' on load/save in Iris > 3.11.1? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This is controlled by the import cf_units
cf_units.CALENDAR_ALIASES.pop('gregorian') |
Beta Was this translation helpful? Give feedback.
-
It looks like the code changes in #4847 largely affect non-netcdf loading. As such the behaviour of netcdf loading/saving ought to be controled, as @rcomer suggests, via |
Beta Was this translation helpful? Give feedback.
This is controlled by the
CALENDAR_ALIASES
dictionary incf_units
. I think it should be enough to just remove "gregorian" from that dictionary. E.g.