xarray.DataArray.monet.is_ocean
- DataArray.monet.is_ocean(return_xarray=False)
Check the mask of land and ocean, returning corresponding boolean mask.
- Parameters
return_xarray (bool) – If True, return the data array with the land values set to NaN. If False, return a numpy boolean array of the ocean (True).
- Return type
xarray.DataArray or numpy.array