cf.Data.mid_rangeΒΆ

Data.mid_range(axes=None, squeeze=True, mtol=1, i=False, _preserve_partitions=False)[source]ΒΆ

Collapse axes with the unweighted average of their maximum and minimum values.

Missing data array elements are omitted from the calculation.

See also

max, min, mean, range, sum, sd, var

Parameters:

axes: (sequence of) int, optional

squeeze: bool, optional

inplace: bool, optional

If True then do the operation in-place and return None.

i: deprecated at version 3.0.0

Use inplace parameter instead.

Returns:
Data

The collapsed array.

Examples: