hydromt_sfincs.SfincsModel.setup_drainage_structures#

SfincsModel.setup_drainage_structures(structures: str | Path | GeoDataFrame, stype: str = 'pump', discharge: float = 0.0, merge: bool = True, **kwargs)[source]#

Setup drainage structures.

Adds model layer: * drn geom: drainage pump or culvert

Parameters:
  • structures (str, Path) – Path, data source name, or geopandas object to structure line geometry file. The line should consist of only 2 points (else first and last points are used), ordered from up to downstream. The “type” (1 for pump and 2 for culvert), “par1” (“discharge” also accepted) variables are optional. If “type” or “par1” are not provided, they are based on stype or discharge arguments.

  • stype ({'pump', 'culvert'}, optional) – Structure type, by default “pump”. stype is converted to integer “type” to match with SFINCS expectations.

  • discharge (float, optional) – Discharge of the structure, by default 0.0. For culverts, this is the maximum discharge, since actual discharge depends on waterlevel gradient

  • merge (bool, optional) – If True, merge with existing drainage structures, by default True.