Jannik-Schilling / generate_swmm_inp

a QGIS plugin for the import and export of SWMM input files (conversion of geodata, e.g. shapefiles or geopackage into SWMM models and vice versa)
GNU General Public License v2.0
35 stars 10 forks source link

Feature Request, Generate "Time Series Table" of every Variable for a SWMM Layer #91

Open Crones8 opened 3 months ago

Crones8 commented 3 months ago

Hello Again,

So, Plugin works great, and I see there is a relatively new feature which implements the results from the .rpt file into a SWMM Layer (super useful).

I'm wondering if it's too dificult to take it a step further (with maybe a new tool or a Qgis action) and generate Tables with the detailed timestep results of the variables for an specific layer.

In SWMM, through the "Create Time Series Table", one can query the results of every report time (configured in options as every 5 mins, every 1 min, etc), for specific elements of SWMM (nodes, links, subcatchments, etc), however, it is severely limited, since no more than 11 elements can be solicitated at a time from the SWMM Software, so having this function would be extremely useful.

image

To my knowledge, this results are in the .out file, created when one runs a simulation in SWMM of an inp file, I imagine it requires the use of libraries (not sure if these exist, I'm sure there are libraries in C++ wich execute this task), to read this .out file.

Anyways, this would be immensely helpful and time saving.

Cheers, and thank you for all your work.

Jannik-Schilling commented 2 months ago

Hey, sorry for not responding in time... this is something I've been thinking about quite a long time. The .out file can be extremely large, so a procedure is needed to prevent QGIS from freezing when the .out file is loaded.