mpas_tools.mesh.conversion.mask¶
-
mpas_tools.mesh.conversion.
mask
(dsMesh, fcMask=None, fcSeed=None, positiveLon=False, logger=None)[source]¶ Use
MpasMaskCreator.x
to create a set of region masks either from mask feature collecitons or from seed points to be used to flood fill- Parameters
dsMesh (
xarray.Dataset
, optional) – An MPAS mesh on which the masks should be createdfcMask (
geometric_features.FeatureCollection
, optional) – A feature collection containing features to use to create the maskfcSeed (
geometric_features.FeatureCollection
, optional) – A feature collection with points to use a seeds for a flood fill that will create a mask of all cells connected to the seed pointslogger (
logging.Logger
, optional) – A logger for the output if not stdout
- Returns
dsMask (
xarray.Dataset
) – The masks