cf.Data.mid_range

Data.mid_range(axes=None, squeeze=False, mtol=1, inplace=False, _preserve_partitions=False, i=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

maximum, minimum, 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 the inplace parameter instead.

Returns
Data or None

The collapsed array.

Examples: