eradiate.pipelines.AggregateSampleCount#

class eradiate.pipelines.AggregateSampleCount[source]#

Bases: eradiate.pipelines._core.PipelineStep

Aggregate sample count.

This post-processing pipeline step aggregates sample counts:

  • it computes the average of sensor values weighted by the sample count;

  • it sums the spp dimension.

The spp_index dimension is dropped during this step and the spp variable ends up with no dimension.

transform(x)[source]#

Apply the pipeline step to a given data.

Parameters

x – Data to process.

Returns

xt – Processed data.