Skip to content

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

@schlunma

Description

@schlunma

✨ 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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions