mesmer.mask_and_stack#
- mesmer.mask_and_stack(data, threshold)#
mask ocean, Antarctica and stack the gridpoints
helper function which combines
mask_ocean_fraction,mask_antarctica, andstack_lat_lon. Use the individual functions if your grid does not have the standard dimension and coordinate names.- Parameters:
data (xr.DataArray | xr.Dataset | xr.DataTree) – Data to mask and stack.
threshold (float) – Threshold above which land fraction to consider a grid point as a land grid point. Must be must be between 0 and 1 inclusive.
- Returns:
data (xr.DataArray | xr.Dataset | xr.DataTree) – Array converted to a regular lat-lon grid.