xarray.DataArray.monet.is_land

DataArray.monet.is_land(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 ocean values set to NaN. If False, return a numpy boolean array of the land (True).

Return type

xarray.DataArray or numpy.array