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

Improve timestamp adjustment function in Glorys obc generation workflow #137

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

yichengt900
Copy link
Contributor

@yichengt900 yichengt900 commented Jan 24, 2025

Several users have reported that the timestamp adjustment function in the current OBC workflow disrupts the original time variables and attributes, and will eventually mess up model run. This PR aims to address the issue by using decode_times=False when reading the files. Additionally, we have modified several boundary generation codes to further preserve the original time attributes and encoding.

UPDATES
I tested the updated workflow with the ARCTIC physics-only case shared by @theresa-morrison, and the new OBC files generated from it ran successfully through the year 1993.

The example obc generation workflow for Arctic can be found on ppan:
/work/ynt/develop/20250124/new/CEFI-regional-MOM6/tools/boundary/glorys_obc_workflow/mom6_obc_workflow_arctic.sh

The Arctic 1-month test case can be found here:
/gpfs/f6/ira-cefi/proj-shared/ARC12_nofk_nsrwsp_newobcs__1.o207690353

@yichengt900 yichengt900 marked this pull request as ready for review January 24, 2025 20:00
Copy link
Contributor

@theresa-cordero theresa-cordero left a comment

Choose a reason for hiding this comment

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

Approved, Thanks for these changes!

@yichengt900 yichengt900 merged commit 4e61d86 into main Jan 30, 2025
3 checks passed
@yichengt900 yichengt900 deleted the fix/obc-time-adjust branch January 31, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants