xarray.DataArray.cf.isin#

DataArray.cf.isin(test_elements)#

Test each value in the array for whether it is in test_elements.

Parameters
test_elementsarray_like, 1D

The values against which to test each value of element. These must be in “flag_meanings” attribute, and are mapped to the corresponding value in “flag_values” before passing that on to DataArray.isin.

Returns
isinDataArray

Has the same type and shape as this object, but with a bool dtype.