hydromt_delft3dfm.workflows.mesh1d_network1d_from_branches#

hydromt_delft3dfm.workflows.mesh1d_network1d_from_branches(opensystem: GeoDataFrame, closedsystem: GeoDataFrame, openwater_computation_node_distance: float = 40.0) Tuple[UgridDataset, UgridDataset][source]#

Return xugrid mesh1d and network1d UgridDataset from branches.

Uses hydrolib-core network object and add_branch methods to build the network and then converts back to xugrid.

Parameters:
  • opensystem (gpd.GeoDataFrame) – GeoDataFrame containing open system branches.

  • closedsystem (gpd.GeoDataFrame) – GeoDataFrame containing closed system branches.

  • openwater_computation_node_distance (float, optional) – Node distance for open water computation, by default 40.0.

Returns:

  • uds_mesh1d (xu.UgridDataset) – Mesh1d UgridDataset.

  • uds_network1d (xu.UgridDataset) – Network1d UgridDataset. Note that it is part of the Deltares-0.11 conventions. These newly proposed conventions should currently be seen as an extension on top of the regular CF-conventions (≥1.8) and, in particular, on top of the UGRID (1.0) conventions.