polaris.tasks.e3sm.init.topo.cull.CullMaskStep.refine_land_cull_mask
- CullMaskStep.refine_land_cull_mask(ds_base_mesh, ds_topo, cull_mask)[source]
Refine the mask for culling ocean from the land. Subclasses can override this method to first refine the mask and then call the base class method to make sure that 1) ocean critical transects are excluded from the land and 2) all cells that are not part of the ocean (without ice-shelf cavities) are excluded from the land cull mask (someone is supposed to own every cell on the globe).
- Parameters:
ds_base_mesh (xarray.Dataset) – The dataset containing the base mesh
ds_topo (xarray.Dataset) – The dataset containing the unsmoothed topography
cull_mask (xarray.DataArray) – The current cull mask to refine
- Returns:
cull_mask (xarray.DataArray) – The refined cull mask