Update the output_obj.f90 object to write a "calendar" attribute to the netcdf time variable to store the calendar being used.
TYPE:
bugfix
KEYWORDS:
time, climate model, calendar
SOURCE:
Ethan Gutmann, NCAR
DESCRIPTION OF CHANGES:
Modified time objects setup_time_variable routine to test for the value of the time objects calendar attribute. Use that attribute to set a calendar attribute in the resulting netcdf time variable.
ISSUE:
Previously calendar would not be specified, when using GCMs with a noleap or 360-day calendar, this would result in incorrect date stamps (as they would by default be interpreted in a gregorian calendar).
Checklist
[X] Backwards compatible
[X] CI action completes
[X] testing confirms that the update works (calendar attribute is now saved in output files)
Update the output_obj.f90 object to write a "calendar" attribute to the netcdf time variable to store the calendar being used.
TYPE: bugfix
KEYWORDS: time, climate model, calendar
SOURCE: Ethan Gutmann, NCAR
DESCRIPTION OF CHANGES: Modified time objects setup_time_variable routine to test for the value of the time objects calendar attribute. Use that attribute to set a calendar attribute in the resulting netcdf time variable.
ISSUE: Previously calendar would not be specified, when using GCMs with a noleap or 360-day calendar, this would result in incorrect date stamps (as they would by default be interpreted in a gregorian calendar).
Checklist