hydromt_sfincs.workflows.get_rivbank_dz#
- hydromt_sfincs.workflows.get_rivbank_dz(gdf_riv: GeoDataFrame, da_msk: DataArray, da_hnd: DataArray, nmin: int = 20, q: float = 25.0) ndarray [source]#
Return river bank height estimated as from height above nearest drainage (HAND) values adjecent to river cells. For each feature in gdf_riv the nearest river bank cells are identified and the bank heigth is estimated based on a quantile value q.
- Parameters:
gdf_riv (gpd.GeoDataFrame) – River segments
da_msk (xr.DataArray of bool) – River mask
da_hnd (xr.DataArray of float) – Height above nearest drain (HAND) map
nmin (int, optional) – Minimum threshold for valid river bank cells, by default 20
q (float, optional) – quantile [0-100] for river bank estimate, by default 25.0
- Returns:
rivbank_dz (np.ndarray) – riverbank elevations for each segment in gdf_riv
da_riv_mask, da_bnk_mask (xr.DataArray:) – River and river-bank masks