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

Aggregate all dims simultaneously in conservative #51

Merged
merged 6 commits into from
Sep 26, 2024

Conversation

slevang
Copy link
Collaborator

@slevang slevang commented Sep 25, 2024

I was looking at weatherbench's conservative regridding implementation here and realized we could also einsum over all dimensions simultaneously. This simplifies the code and also makes the NaN tracking implementation way more efficient.

I added a benchmarking notebook following from the example in #42 and I think the results look quite good now.

Copy link
Contributor

@BSchilperoort BSchilperoort left a comment

Choose a reason for hiding this comment

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

I added a benchmarking notebook following from the example in #42 and I think the results look quite good now.

The benchmark looks good! It even is quite generous to xesmf, as the ESMF weight generation is left out of the comparison 😉

Can you add the benchmark to the docs index though (index.rst), so it will show up there?

@BSchilperoort BSchilperoort merged commit 8f78e0b into main Sep 26, 2024
11 checks passed
@BSchilperoort BSchilperoort deleted the faster-conservative branch September 26, 2024 12:48
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.

3 participants