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