polaris.tasks.e3sm.init.topo.cull.CullMaskStep.refine_ocean_cull_mask
- CullMaskStep.refine_ocean_cull_mask(ds_base_mesh, ds_topo, cull_mask)[source]
Refine the mask for culling land and (optionally) grounded ice from the ocean. Subclasses can override this method to first refine the mask and then call the base class method to handle critical transects and land-locked cells.
- 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