Getting Started
User Guide
Help & reference
DataArray.
to_masked_array
Convert this array into a numpy.ma.MaskedArray
copy (bool, default: True) – If True make a copy of the array in the result. If False, a MaskedArray view of DataArray.values is returned.
bool
True
result – Masked where invalid values (nan or inf) occur.
MaskedArray