hydromt_sfincs.utils.get_bounds_vector#

hydromt_sfincs.utils.get_bounds_vector(da_msk: DataArray) GeoDataFrame[source]#

Get bounds of vectorized mask as GeoDataFrame.

Parameters:

da_msk (xr.DataArray) – Mask as DataArray with values 0 (inactive), 1 (active), and boundary cells 2 (waterlevels) and 3 (outflow).

Returns:

gdf_msk – GeoDataFrame with line geometries of mask boundaries.

Return type:

gpd.GeoDataFrame