NCAR / icar

The Intermediate Complexity Atmospheric Research model (ICAR)
MIT License
72 stars 53 forks source link

added calendar attribute to output files #94

Closed gutmann closed 3 years ago

gutmann commented 3 years ago

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