mpas_tools.ocean.coastline_alteration.add_land_locked_cells_to_mask¶
- mpas_tools.ocean.coastline_alteration.add_land_locked_cells_to_mask(dsMask, dsMesh, latitude_threshold=43.0, nSweeps=10)[source]¶
Find ocean cells that are land-locked, and alter the cell mask so that they are counted as land cells.
- Parameters:
dsMask (xarray.Dataset) – A land-mask data set
dsMesh (xarray.Dataset) – MPAS Mesh data set
latitude_threshold (float, optional) – Minimum latitude, in degrees, for transect widening
nSweeps (int, optional) – Maximum number of sweeps to search for land-locked cells
- Returns:
dsMask (xarray.Dataset) – A copy of the land-mask data set with land-locked cells added to the mask for the first region