-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change calendar attr from THIRTY_DAY_MONTHS to 360_DAY #574
Change calendar attr from THIRTY_DAY_MONTHS to 360_DAY #574
Conversation
- The calendar attribute in netcdf files is not CF compliant when set to THIRTY_DAY_MONTHS. The attribute value should be 360_DAY.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I am okay with the change, I need to hear from the workflow team whether PP will be affected by this change in the calendar type attribute before approving.
@ceblanton do you have a comment on how PP might be affected if we change a calendar type attribute from THIRTY_DAY_MONTHS to 360_DAY? |
Hi @bensenr, thanks for the check. FRE post-processing should not be affected by this change. frepp gets its calendar type specification from the coupler namelist. It would probably be better to get it from the NetCDF file itself, but is lucky for this change! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the comment from @ceblanton, I will approve this PR.
@adcroft please check all of the boxes, even if they aren't applicable to your PR. What version of the code did you fork to make this change? Was it 2019.01.03? |
@adcroft if you are using 2019.01.03 (or 2019.01.02) for your model runs, we can patch that and make 2019.01.04. If you want to just put this on the main development branch, we are about to release 2020.03 (assuming there are no bugs found) on Thursday or Friday. Your update then would either be a part of 2020.04, and/or a patch 2020.03.01. If we patch 2019.01.03, then we will put this in 2020.04. If this is unclear, then you can send me a chat message to discuss it in person and clear up and confusion. |
@thomas-robinson I made this on top of master. Our plan is to catch MOM6 up to 2020 once NCAR has the change for 2019.01.03. Since we have a work around for now I suggest we minimize divergence and leave this in the normal development pipe to appear whenever you next tag. |
Thanks for the clarification @adcroft . I'll merge it in for our next round of testing. |
Description
Changed the result of valid_calendar_types() from 'THIRTY_DAY_MONTHS' to '360_DAY' which has the desired effect of correcting the netcdf attribute without any other input or code changes. The new value is CF compliant: https://cfconventions.org/Data/cf-conventions/cf-conventions-1.8/cf-conventions.html#calendar
Fixes #573
How Has This Been Tested?
Passes Travis-CI tests and submitted branch resolves the NOAA-GFDL/MOM6#1203 when MOM6 is run in NeverWorld2 configuration.
Checklist:
make distcheck
passes