sum

function of dascore.proc.aggregate source

sum(
    patch: Patch ,
    dim: str | None[str, None] = None,
)-> ‘PatchType’

Sum the values along one or more dimensions.

Parameters

Parameter Description
patch The input Patch.
dim The dimension along which aggregations are to be performed.
If None, apply aggregation to all dimensions sequentially.
If a sequence, apply sequentially in order provided.
Note

See Patch.aggregate for examples and more details.