compass.ocean.tests.isomip_plus.geom.interpolate_ocean_mask

compass.ocean.tests.isomip_plus.geom.interpolate_ocean_mask(ds_mesh, ds_geom, min_ocean_fraction, thin_film_present)[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:

ds_mask (xarray.Dataset) – A dataset containing regionCellMasks, a field with the ocean mask that can be used to cull land cells from the mesh