Skip to content

Conversation

@dougiesquire
Copy link
Collaborator

@dougiesquire dougiesquire commented Jun 17, 2025

This PR fixes errors in the calculation of u-grid widths, areas and corner locations. I've also added u[t]lat[lon]_bounds variables to the CICE grid write method if they are available.

Closes #24

@dougiesquire dougiesquire self-assigned this Jun 17, 2025
@dougiesquire
Copy link
Collaborator Author

@anton-seaice, probably worth holding off review until I've fixed up the tests

@dougiesquire
Copy link
Collaborator Author

Okay, ready for review @anton-seaice

@codecov
Copy link

codecov bot commented Jun 17, 2025

Codecov Report

Attention: Patch coverage is 97.87234% with 1 line in your changes missing coverage. Please review.

Project coverage is 23.16%. Comparing base (75f2d81) to head (76f53e5).

Files with missing lines Patch % Lines
esmgrids/cice_grid.py 96.87% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
+ Coverage   22.50%   23.16%   +0.66%     
==========================================
  Files          20       20              
  Lines        1244     1256      +12     
==========================================
+ Hits          280      291      +11     
- Misses        964      965       +1     

☔ 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.

Copy link
Contributor

@anton-seaice anton-seaice left a comment

Choose a reason for hiding this comment

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

Code review only - all looks correct

dougiesquire and others added 2 commits June 19, 2025 11:49
Co-authored-by: anton-seaice <anton.steketee@anu.edu.au>
test_cice_grid: Modify tests to allow lat/lon bounds

Co-authored-by: anton-seaice <anton.steketee@anu.edu.au>
Copy link
Contributor

@anton-seaice anton-seaice left a comment

Choose a reason for hiding this comment

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

Looks good :)

@dougiesquire dougiesquire merged commit 82357e0 into main Jun 19, 2025
4 checks passed
@dougiesquire
Copy link
Collaborator Author

Thanks @anton-seaice!

@dougiesquire dougiesquire deleted the mom-corners branch June 19, 2025 02:16
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.

Incorrect calculation of u corner points for MOM grid

2 participants