-
Notifications
You must be signed in to change notification settings - Fork 24
Update Bathymetry.jl #702
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
base: main
Are you sure you want to change the base?
Update Bathymetry.jl #702
Conversation
Fix regrid_bathymetry for other types of grid
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #702 +/- ##
==========================================
- Coverage 40.67% 33.43% -7.24%
==========================================
Files 51 51
Lines 3152 3149 -3
==========================================
- Hits 1282 1053 -229
- Misses 1870 2096 +226 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
glwagner
left a comment
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.
We want to keep the error, and extend support to any OrthogonalSphericalShellGrid probably.
|
@glwagner Thanks for the review! |
|
hmm actually I think I misunderstood the code. This is purely getting the name of the grid... I take it back, this is ok to merge. However, I would move where we define |
glwagner
left a comment
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.
I suggest moving gridtype = string(nameof(typeof(target_grid))) to line 229.
|
@glwagner Thanks a lot for reviewing and approving! 🚀 |
Problem
regrid_bathymetryfails when used withRotatedLatitudeLongitudeGriddue to a strict grid type check ininterpolate_bathymetry_in_passes.Solution
Remove the unnecessary grid type validation as suggested in the discussion. The
interpolate!function only depends on the source grid type, not the destination grid type.Changes
string(nameof(typeof(target_grid)))to support any grid type while preserving logging functionality.Closes #666