Subcatchment#

class Subcatchment(model, subcatchmentid)[source]#

Subcatchment Methods.

Parameters:
  • model (object) – Open Model Instance

  • subcatchmentid (str) – Subcatchment ID

Examples:

>>> from pyswm import Simulation, Subcatchments
>>>
>>> with Simulation('tests/data/model_weir_setting.inp') as sim:
...     s1 = Subcatchments(sim)["S1"]
...     print(s1.rainfall)
...     for step in sim:
...         print(s1.rainfall)
0.04

Methods

Attributes

area

Get/set subcatchment area.

buildup

Get Pollutant Results for Surface Buildup on a Subcatchment.

conc_ponded

Get Pollutant Results for Current Concentration of Pollutant in Ponded Water on a Subcatchment.

connection

Get Subcatchment Outlet Connection.

curb_length

Get/set subcatchment curb length.

evaporation_loss

Get Subcatchment Results for evaporation loss.

infiltration_loss

Get Subcatchment Results for Infiltration Loss.

percent_impervious

Get/set subcatchment percent impervious.

pollut_quality

Get Current Pollutant Water Quality Results from Subcatchment Runoff.

rainfall

Get Subcatchment Results for Rainfall.

runoff

Get Subcatchment Results for Run Off Rate.

runoff_total_loading

Get Total Pollutant Loading from Subcatchment Runoff.

runon

Get Subcatchment Results for Run On.

slope

Get/set subcatchment slope.

snow_depth

Get Subcatchment Results for Snow Depth.

statistics

Subcatchment Flow Stats.

subcatchmentid

Get Subcatchment ID.

width

Get/set subcatchment width.