Skip to content
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

Bug-fix: Mom6 time #514

Merged
merged 7 commits into from
Jul 27, 2023
Merged

Bug-fix: Mom6 time #514

merged 7 commits into from
Jul 27, 2023

Conversation

hkershaw-brown
Copy link
Member

Description:

This pull request fixes read_model_time MOM6:

  • MOM6 time is in days from year 1. DART time is from 1601. This pull request converts MOM6 time to DART time in read_model_time.

  • Documentation updated to show how to turn on leap years for CESM (the default is no leap year). Added an example in the docs to illustrate Time in days vs. YYYY-MM-DD when you do not have leap years.

  • The write_model_time is not converted back to MOM6 time. See MOM6 time  #494 for discussion on this. DART created files have dart time to match the observation times.

Fixes issue

fixes #494

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Documentation changes needed?

  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.

Tests

Please describe any tests you ran to verify your changes.

Checklist for merging

  • Updated changelog entry
  • Documentation updated
  • Update conf.py

Checklist for release

  • Merge into main
  • Create release from the main branch with appropriate tag
  • Delete feature-branch

Testing Datasets

  • Dataset needed for testing available upon request
  • Dataset download instructions included
  • No dataset needed

@@ -9,6 +9,48 @@ Instructions for using MOM6 in CESM are available on the `MOM_interface GitHub W

This DART-MOM6 interface was developed for `MOM6 <https://github.com/NCAR/MOM6>`_ within the CESM framework.

MOM6 time
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation is good! Are there other models in CESM that need this info added to their documentation pages? For example, I looked through the CLM documentation, and it doesn't talk about the calendar.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dart shell scripts for CLM, POP, CAM set the CALENDAR.

./xmlchange CALENDAR=GREGORIAN

MOM6 with dart is fairly new (e.g. Robin developing the MOM6-Marble, Alper adding MOM6 multi-instance capability) so I figured it is worth noting in the docs about the calendar.

Maybe it is worth noting about the calendar in the CESM page? @kdraeder what do you think? https://docs.dart.ucar.edu/en/latest/models/CESM/readme.html

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hkershaw-brown we could move this discussion to email so that we can get this PR approved and released. Especially since the doc changes proposed above could be done in a separate PR. What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mjs2369 sounds like a plan, lets get this one out.

@hkershaw-brown hkershaw-brown added the release! bundle with next release label Jul 27, 2023
@hkershaw-brown hkershaw-brown merged commit f996f26 into main Jul 27, 2023
2 checks passed
@hkershaw-brown hkershaw-brown deleted the mom6-time branch July 27, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release! bundle with next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MOM6 time
3 participants