hydromt_delft3dfm.workflows.generate_manholes_on_branches#
- hydromt_delft3dfm.workflows.generate_manholes_on_branches(branches: ~geopandas.geodataframe.GeoDataFrame, use_branch_variables: list = ['diameter', 'width'], bedlevel_shift: float = 0.0, id_prefix: str = '', id_suffix: str = '', logger=<module 'logging' from '/usr/share/miniconda/envs/test/lib/python3.12/logging/__init__.py'>)[source]#
Generate manhole location and bedlevel from branches.
Manholes will be generated at locations upstream and downstream of each pipe. No manholes will be generated at pipe/tunnel outlets into the channels/rivers.
A new geom of manholes will be created. manholeid will be generated following the convension of id_prefix, id, and id_suffix. bedlevel will be generated from the lowest invert levels of the connecting pipes. Otehr attributes can be summersized from exisiting branch variables defined in ‘’use_branch_variables’’.
- Adds:
manholes geom: 1D manholes vector
- Updates:
branches geom: 1D branches vector
- Parameters:
branches (gpd.GeoDataFrame) – branches where manholes need to be generated. Use the entire network branches. Required columns: [‘branchid’, ‘branchtype’, ‘invlev_up’, ‘invlev_dn’] Optional columns: ones defined in use_branch_variables
use_branch_variables (list of str, Optional) – list of branch variables to include as attributes for manholes. If multiple branches connects to a single manhole, then the maximum will be taken. By default [‘diameter’, ‘width’].
bedlevel_shift (float, optional) – Shift applied to lowest pipe invert levels to derive manhole bedlevels [m] (bedlevel = pipe invert + bedlevel shift). By default 0.0 m, no shift is applied.
id_prefix (str, optional) – prefix to add to the id convention By default “”, no prefix are used.
id_suffix (str, optional) – suffix to add to the id convention By default “”, no suffix are used.