Skip to content

ESMF to & from grid options.#92

Open
manishvenu wants to merge 6 commits into
mainfrom
expand_esmf_mesh_methods
Open

ESMF to & from grid options.#92
manishvenu wants to merge 6 commits into
mainfrom
expand_esmf_mesh_methods

Conversation

@manishvenu
Copy link
Copy Markdown
Collaborator

Changes:
Move the ESMF writing to grid with an optional mask method

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

📄 Preview your docs here:
👉 https://NCAR.github.io/mom6_forge/pr-92/index.html

- Remove dev testing notebook with hardcoded local path
- Rename SupergridBase.from_esmf_mesh -> reconstruct_from_esmf_mesh to
  signal the round-trip is approximate (u/v-points interpolated, not stored)
- Update docstring with warning that only q/t-points recover exactly
- Add tripolar ESMF mesh tests using tx2_3v3 supergrid on GLADE
- Restore self.mesh_path = file_path in Topo.write_esmf_mesh
- Fix mask docstring: MOM6 and ESMF share the same convention
- Fix cyclic wrap-column in reconstruct_from_esmf_mesh to use
  qlon_inner[:, :1] + 360 instead of hardcoded scalar 360.0
@manishvenu manishvenu marked this pull request as ready for review May 27, 2026 22:04
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 27, 2026

Codecov Report

❌ Patch coverage is 75.88652% with 34 lines in your changes missing coverage. Please review.
✅ Project coverage is 41.61%. Comparing base (4103083) to head (9b53cff).

Files with missing lines Patch % Lines
mom6_forge/_supergrid.py 76.25% 26 Missing and 7 partials ⚠️
mom6_forge/grid.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #92      +/-   ##
==========================================
+ Coverage   40.11%   41.61%   +1.50%     
==========================================
  Files          15       15              
  Lines        3231     3309      +78     
  Branches      346      354       +8     
==========================================
+ Hits         1296     1377      +81     
+ Misses       1883     1878       -5     
- Partials       52       54       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@manishvenu manishvenu requested a review from alperaltuntas May 29, 2026 16:33
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