SubcatchSeries#

class SubcatchSeries(out_handle)[source]#

Get a subcatchment time series. New to PySWMM-v2!

Note: you can use pandas to convert dict to a pandas Series object with dict keys as index

Returns:

dict of attribute values with between start_index and end_index with reporting timesteps as keys

Return type:

dict {datetime : value}

Examples:

from pyswmm import Output, SubcatchSeries

with Output('tests/data/model_full_features.out') as out:
    ts1 = SubcatchSeries(out)['S1'].rainfall
    ts2 = SubcatchSeries(out)['S1'].snow_depth
    ts3 = SubcatchSeries(out)['S1'].evap_loss
    ts4 = SubcatchSeries(out)['S1'].infil_loss
    ts5 = SubcatchSeries(out)['S1'].runoff_rate
    ts6 = SubcatchSeries(out)['S1'].gw_outflow_rate
    ts7 = SubcatchSeries(out)['S1'].gw_table_elev
    ts8 = SubcatchSeries(out)['S1'].soil_moisture
    ts9 = SubcatchSeries(out)['S1'].pollut_conc_0

Methods

Attributes

rainfall

snow_depth

evap_loss

infil_loss

runoff_rate

gw_outflow_rate

gw_table_elev

soil_moisture

pollut_conc_0