Skip to content

Fix Earth area weight computation for reduced Gaussian grids - #127

Merged
valentinaschueller merged 5 commits into
masterfrom
126-fix-gaussian-grid-weights
Mar 31, 2026
Merged

Fix Earth area weight computation for reduced Gaussian grids#127
valentinaschueller merged 5 commits into
masterfrom
126-fix-gaussian-grid-weights

Conversation

@valentinaschueller

Copy link
Copy Markdown
Collaborator

closes #126

This took a bit longer since I noticed that the areas computed from the two methods do not exactly match.
I wanted to verify that they do not differ significantly, and they do not (I checked with two datasets containing only 1s: They differ by about 0.1%).
So I think this is ready to go?

@valentinaschueller

Copy link
Copy Markdown
Collaborator Author

The failing test is unrelated to this commit (see Unidata/netcdf4-python#1439) and addressed in #128

This is expected behavior and we can catch it

@uwefladrich uwefladrich left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Very good! Only a very small and trivial comment.

Comment thread helpers/cubes.py Outdated
Co-authored-by: Uwe Fladrich <49554848+uwefladrich@users.noreply.github.com>
@valentinaschueller valentinaschueller changed the title Add test to reproduce bug observed by Vladimir Fix Earth area weight computation for reduced Gaussian grids Mar 31, 2026
@valentinaschueller
valentinaschueller merged commit 4229dc8 into master Mar 31, 2026
10 of 11 checks passed
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.

Area weights for reduced Gaussian grid are computed in the wrong unit

2 participants