hydromt_delft3dfm.utils.read_crosssections#

hydromt_delft3dfm.utils.read_crosssections(gdf: GeoDataFrame, fm_model: FMModel) GeoDataFrame[source]#

Read crosssections from hydrolib-core crsloc and crsdef objects and add to branches.

Also returns crosssections geodataframe.

Parameters:
  • gdf (geopandas.GeoDataFrame) – gdf containing the branches

  • fm_model (hydrolib.core FMModel) – DflowFM model object from hydrolib

Returns:

gdf_crs – geodataframe copy of the cross-sections and data

Return type:

geopandas.GeoDataFrame