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
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