hydromt_sfincs.utils.mask2gdf#

hydromt_sfincs.utils.mask2gdf(da_mask: DataArray, option: str = 'all') GeoDataFrame[source]#

Convert a boolean mask to a GeoDataFrame of polygons.

Parameters:
  • da_mask (xr.DataArray) – Mask with integer values.

  • option ({"all", "active", "wlev", "outflow"}) –

Returns:

gdf – GeoDataFrame of Points.

Return type:

geopandas.GeoDataFrame