eradiate.pipelines.AggregateCKDQuad#
- class eradiate.pipelines.AggregateCKDQuad(measure, var='img')[source]#
Bases:
PipelineStep
Compute CKD quadrature.
In CKD modes, this pipeline step aggregates spectral data and computes evaluates the selected quadrature rule. The following updates to the input data are expected:
the
index
dimension is dropped;the
bin
dimension is renamedw
;the
bin
coordinate persists and is indexed byw
;a
w
coordinate is created and contains the central wavelength of each bin;a
bin_wmin
(resp.bin_wmax
) coordinate is created and contains the lower (resp. upper) spectral bound of each bin;the dataset is reordered by ascending
w
values.
- Parameters:
- Fields:
Notes
The
spp
variable is averaged on theindex
dimension.In non-CKD modes, this step is a no-op.