Overview of swmmio
masterswmmio is a Python library designed for the programmatic pre- and post-processing of EPA Stormwater Management Model (SWMM) files. It allows engineers and hydrologists to automate the modification and analysis of SWMM models and results using a Pandas-based interface.
Key capabilities include:
- High-level analysis: Using the
swmmio.Modelobject to access model elements (like subcatchments) as Pandas DataFrames or GeoDataFrames. These objects automatically join data from the.inpfile (e.g.,[SUBCATCHMENTS]and[SUBAREAS]tables) with results from the.rptfile (e.g.,Subcatchment Runoff Summary). - Low-level manipulation: A lower-level API for reading and writing nearly all sections of the
.inpfile, enabling programmatic model modification.