cf.Data.sum_of_weights2

Data.sum_of_weights2(axes=None, squeeze=False, mtol=1, weights=None, i=False)[source]

Missing data array elements are omitted from the calculation.

Parameters:

axes : (sequence of) int, optional

squeeze : bool, optional

i : bool, optional

If True then update the data array in place. By default a new data array is created.

Returns:
out : cf.Data

The collapsed array.

Examples: