scipp.nanmax#

scipp.nanmax(x, dim=None)#

Maximum of elements in the input ignoring NaN’s.

Parameters
  • x (scipp.typing.VariableLike) – Input data.

  • dim (Optional[str], default: None) – Optional dimension along which to calculate the max. If not given, the max over all dimensions is calculated.

Returns

TypeVar(VariableLikeType, Variable, DataArray, Dataset) – The maximum of the input values.

See also

scipp.max

Element-wise maximum without special handling for NaN.

scipp.min

Element-wise minimum without special handling for NaN.

scipp.nanmin

Same as min but ignoring NaN’s.