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

Use cube chunks for weights in aggregations with smart weights #6285

Open
schlunma opened this issue Jan 15, 2025 · 0 comments · May be fixed by #6288
Open

Use cube chunks for weights in aggregations with smart weights #6285

schlunma opened this issue Jan 15, 2025 · 0 comments · May be fixed by #6288

Comments

@schlunma
Copy link
Contributor

✨ Feature Request

In weighted aggregations (Cube.collapsed, Cube.aggregated_by, etc.), it is possible to use smart weights (cubes, coordinates, cell measures, or ancillary variables), see #5084. Currently, if those weights need to be broadcasted to the cube's shape, the chunks of the resulting weights may not necessarily be aligned with those of the cube. It should be fairly straightforward to align them (see #5620).

Motivation

Aligned chunks of different arrays in a computation improves computational performance.

I'll try to implement a PR for this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant