xray.DataArray.argmin

DataArray.argmin(dimension=None, axis=None, **kwargs)

Reduce this DataArray’s data’ by applying numpy.argmin along some dimension(s).

Parameters:

dimension : str or sequence of str, optional

Dimension(s) over which to apply numpy.argmin.

axis : int or sequence of int, optional

Axis(es) over which to apply numpy.argmin. Only one of the ‘dimension’ and ‘axis’ arguments can be supplied. If neither are supplied, then numpy.argmin is calculated over the flattened array (by calling numpy.argmin(x) without an axis argument).

**kwargs : dict

Additional keyword arguments passed on to numpy.argmin.

Returns:

reduced : DataArray

New DataArray object with numpy.argmin applied to its data and the indicated dimension(s) removed.