compass.ocean.tests.isomip_plus.geom.interpolate_ocean_mask¶
- compass.ocean.tests.isomip_plus.geom.interpolate_ocean_mask(dsMesh, dsGeom, min_ocean_fraction)[source]¶
Interpolate the ocean mask from the original BISICLES grid to the MPAS mesh. This is handled separately from other fields because the ocean mask is needed to cull land cells from the MPAS mesh before interpolating the remaining fields.
- Parameters
dsMesh (xarray.Dataset) – An MPAS-Ocean mesh
dsGeom (xarray.Dataset) – Ice-sheet topography produced by
compass.ocean.tests.isomip_plus.geom.process_input_geometry()
min_ocean_fraction (float) – The minimum ocean fraction after interpolation, below which the cell is masked as land (which is not distinguished from grounded ice)
- Returns
dsMask (xarray.Dataset) – A dataset containing
regionCellMasks
, a field with the ocean mask that can be used to cull land cells from the mesh