RainGage#

class RainGage(model, raingageid)[source]#

Raingage Methods.

Parameters:
  • model (object) – Open Model Instance

  • raingageid (str) – Raingage ID

Examples:

>>> from pyswmm import Simulation, Raingages
>>>
>>> with Simulation('tests/data/TestModel1_weirSetting.inp') as sim:
...     rg1 = Raingages(sim)["Gage1"]
...     print(rg1.raingageid)
...     for step in sim:
...         print(rg1.total_precip)
... Gage1
... 0
... 10

Methods

Attributes

rainfall

Get raingage total rainfall rate (like in/hr or mm/hr).

raingageid

Get Rain Gage ID.

snowfall

Get raingage total snowfall rate (like in/hr or mm/hr).

total_precip

Get/set raingage total precipitation rate (like in/hr or mm/hr).