Skip to content

apply_*: pass in scalar dimension labels via context #554

Description

@jdries

Process ID: apply/apply_dimension/reduce_dimension/ ...

Describe the issue:
These processes invoke a callback along a 1D slice (labeled-array).
Some algorithms require to know the scalar labels along the other dimensions

For instance bands_time_cube.apply_dimension(dimension='bands',...) only passes down an array of values for bands, with band labels, but the label along time dimension is not available in callback.

Proposed solution:
Use the context parameter to provide a map where the key is dimension name and the value is the label for the slice being processed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions