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

Grid cell average bug fixes #673

Merged
merged 2 commits into from
Feb 11, 2025
Merged

Grid cell average bug fixes #673

merged 2 commits into from
Feb 11, 2025

Conversation

milankl
Copy link
Member

@milankl milankl commented Feb 11, 2025

fixes #644 and therefore provides a temporary bypass of #648 by fixing bugs in RingGrids.grid_cell_average!. Eventually we want to do solve #648 via JuliaGeo/GeometryOps.jl#246 i.e. by calculating area intersections but for now let's just do it the hacky way.

This seems to work

image

and added some tests too

@milankl milankl added the grid 🌐 Points on a sphere label Feb 11, 2025
@milankl milankl added the bug 🐞 Something isn't working label Feb 11, 2025
@milankl
Copy link
Member Author

milankl commented Feb 11, 2025

Testing this for a bunch of resolutions and grids, they all looks good

image

@milankl
Copy link
Member Author

milankl commented Feb 11, 2025

image

@milankl
Copy link
Member Author

milankl commented Feb 11, 2025

image

@milankl
Copy link
Member Author

milankl commented Feb 11, 2025

Okay something weird happens with Gaussian latitudes at very high resolution but that's irrelevant for now I guess

image

@milankl
Copy link
Member Author

milankl commented Feb 11, 2025

Similar with HEALPix grids

image

@milankl milankl merged commit e43d3a7 into main Feb 11, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working grid 🌐 Points on a sphere
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with Model Execution When trunc is Greater Than or Equal to 600
1 participant