hydromt_sfincs.workflows.river_centerline_from_hydrography#
- hydromt_sfincs.workflows.river_centerline_from_hydrography(da_flwdir: DataArray, da_uparea: DataArray, river_upa: float = 10, river_len: float = 1000.0, gdf_mask: GeoDataFrame = None) GeoDataFrame [source]#
Returns the centerline of rivers based on a flow direction raster data (da_flwdir).
- Parameters:
da_flwdir (xarray.DataArray) – D8 flow direction raster data.
da_uparea (xarray.DataArray, optional) – River mask raster data. Used to mask da_flwdir, by default None.
river_upa (float, optional) – Minimum upstream area threshold for rivers [km2], by default 10.0
river_len (float, optional) – Mimimum river length [m] within the model domain to define river cells, by default 1000 m.
gdf_mask (geopandas.GeoDataFrame, optional) – Polygon to clip river center lines before calculating the river length, by default None.
- Returns:
gdf_riv – River line vector data.
- Return type: