xdas.all#

xdas.all(da, dim=None, **kwargs)[source]#

Test whether all elements along a given dimension evaluate to True.

Parameters:
  • da (DataArray) – Input data.

  • dim (str, optional) – Dimension along which the test is performed. If None, the test is applied to the flattened array. Default is None.

  • **kwargs – Additional keyword arguments passed to the NumPy function.

Returns:

True if all elements along the specified dimension evaluate to True, False otherwise. If dim is None, a single boolean value is returned; if dim is specified, the result has the same shape as the input data.

Return type:

bool or DataArray