xarray.DataArray.to_masked_array¶
-
DataArray.
to_masked_array
(copy: bool = True) → numpy.ma.core.MaskedArray¶ Convert this array into a numpy.ma.MaskedArray
- Parameters
- copybool
If True (default) make a copy of the array in the result. If False, a MaskedArray view of DataArray.values is returned.
- Returns
- resultMaskedArray
Masked where invalid values (nan or inf) occur.