From 6bf26381ba844292ad6792ca01bc70056d996dff Mon Sep 17 00:00:00 2001 From: Dobson Date: Tue, 23 Jan 2024 11:00:34 +0000 Subject: [PATCH] Add data to run tests --- swmmanywhere/defs/storm.dat | 144 ++++++++++++++++++++++++++ swmmanywhere/defs/swmm_conversion.yml | 54 ++++++++++ 2 files changed, 198 insertions(+) create mode 100644 swmmanywhere/defs/storm.dat create mode 100644 swmmanywhere/defs/swmm_conversion.yml diff --git a/swmmanywhere/defs/storm.dat b/swmmanywhere/defs/storm.dat new file mode 100644 index 00000000..4b450941 --- /dev/null +++ b/swmmanywhere/defs/storm.dat @@ -0,0 +1,144 @@ +1 2020 10 03 00 00 0.06383868499999999 +1 2020 10 03 01 00 0.041554296 +1 2020 10 03 02 00 0.05283641 +1 2020 10 03 03 00 0.06305583499999999 +1 2020 10 03 04 00 0.0631444 +1 2020 10 03 05 00 0.025762885 +1 2020 10 03 06 00 0.015543459999999999 +1 2020 10 03 07 00 0.002143075 +1 2020 10 03 08 00 0.0005809343000000001 +1 2020 10 03 09 00 0.00029047078 +1 2020 10 03 10 00 7.275957999999999e-09 +1 2020 10 03 11 00 7.275957999999999e-09 +1 2020 10 03 12 00 7.275957999999999e-09 +1 2020 10 03 13 00 7.275957999999999e-09 +1 2020 10 03 14 00 7.275957999999999e-09 +1 2020 10 03 15 00 7.275957999999999e-09 +1 2020 10 03 16 00 7.275957999999999e-09 +1 2020 10 03 17 00 7.275957999999999e-09 +1 2020 10 03 18 00 0.013442892 +1 2020 10 03 19 00 0.05766097 +1 2020 10 03 20 00 0.040084262 +1 2020 10 03 21 00 0.0140769625 +1 2020 10 03 22 00 0.012433353 +1 2020 10 03 23 00 0.0035387275 +1 2020 10 04 00 00 0.006939299 +1 2020 10 04 01 00 0.004810397500000001 +1 2020 10 04 02 00 0.0047572685 +1 2020 10 04 03 00 0.007219139699999999 +1 2020 10 04 04 00 0.0034714249 +1 2020 10 04 05 00 0.0043428226 +1 2020 10 04 06 00 0.006737391200000001 +1 2020 10 04 07 00 7.275957999999999e-09 +1 2020 10 04 08 00 7.275957999999999e-09 +1 2020 10 04 09 00 7.275957999999999e-09 +1 2020 10 04 10 00 0.0031667878 +1 2020 10 04 11 00 0.011328164 +1 2020 10 04 12 00 0.024292849999999998 +1 2020 10 04 13 00 0.020297179 +1 2020 10 04 14 00 0.022971587999999998 +1 2020 10 04 15 00 0.023254965000000002 +1 2020 10 04 16 00 0.026450084999999998 +1 2020 10 04 17 00 0.02760841 +1 2020 10 04 18 00 0.03214959 +1 2020 10 04 19 00 0.13477959 +1 2020 10 04 20 00 0.08938194000000001 +1 2020 10 04 21 00 0.09367871 +1 2020 10 04 22 00 0.07757912 +1 2020 10 04 23 00 0.038086422 +1 2020 10 05 00 00 0.0710649 +1 2020 10 05 01 00 0.025242174 +1 2020 10 05 02 00 0.019326595 +1 2020 10 05 03 00 0.055535613 +1 2020 10 05 04 00 0.025847905 +1 2020 10 05 05 00 0.012900928 +1 2020 10 05 06 00 0.0010201766 +1 2020 10 05 07 00 0.00010981603 +1 2020 10 05 08 00 7.275957999999999e-09 +1 2020 10 05 09 00 7.275957999999999e-09 +1 2020 10 05 10 00 7.275957999999999e-09 +1 2020 10 05 11 00 0.0005809343000000001 +1 2020 10 05 12 00 0.0005809343000000001 +1 2020 10 05 13 00 0.0026885828 +1 2020 10 05 14 00 0.009766023 +1 2020 10 05 15 00 0.03863193 +1 2020 10 05 16 00 0.018175357 +1 2020 10 05 17 00 0.0071270406 +1 2020 10 05 18 00 0.00036840356 +1 2020 10 05 19 00 0.06358718399999999 +1 2020 10 05 20 00 0.035277407999999996 +1 2020 10 05 21 00 0.057979774 +1 2020 10 05 22 00 0.06011222 +1 2020 10 05 23 00 0.06900684 +1 2020 10 06 00 00 0.07822027 +1 2020 10 06 01 00 0.15135737999999999 +1 2020 10 06 02 00 0.107465195 +1 2020 10 06 03 00 0.08602388 +1 2020 10 06 04 00 0.06740928 +1 2020 10 06 05 00 0.0111085465 +1 2020 10 06 06 00 0.0130497065 +1 2020 10 06 07 00 0.0067621877 +1 2020 10 06 08 00 0.0020120133 +1 2020 10 06 09 00 0.0049308364 +1 2020 10 06 10 00 0.008625414999999999 +1 2020 10 06 11 00 0.010024611000000001 +1 2020 10 06 12 00 0.019184903000000003 +1 2020 10 06 13 00 0.015600133 +1 2020 10 06 14 00 0.014664976 +1 2020 10 06 15 00 0.028685259999999997 +1 2020 10 06 16 00 0.099735975 +1 2020 10 06 17 00 0.05485196 +1 2020 10 06 18 00 0.06388118999999999 +1 2020 10 06 19 00 0.08494349 +1 2020 10 06 20 00 0.23213516 +1 2020 10 06 21 00 0.09611933 +1 2020 10 06 22 00 0.14322790000000002 +1 2020 10 06 23 00 0.03817852 +1 2020 10 07 00 00 0.014767706 +1 2020 10 07 01 00 0.017080797999999998 +1 2020 10 07 02 00 0.012560871 +1 2020 10 07 03 00 0.020651401 +1 2020 10 07 04 00 0.02854711 +1 2020 10 07 05 00 0.028164540000000002 +1 2020 10 07 06 00 0.020105894 +1 2020 10 07 07 00 0.00052780524 +1 2020 10 07 08 00 0.0014239921999999999 +1 2020 10 07 09 00 0.0008253555 +1 2020 10 07 10 00 0.007109331 +1 2020 10 07 11 00 0.06388118999999999 +1 2020 10 07 12 00 0.039464365 +1 2020 10 07 13 00 0.025624737 +1 2020 10 07 14 00 0.06524496 +1 2020 10 07 15 00 0.08188297 +1 2020 10 07 16 00 0.0747276 +1 2020 10 07 17 00 0.04946063 +1 2020 10 07 18 00 0.08798275 +1 2020 10 07 19 00 0.019656029 +1 2020 10 07 20 00 0.005929752700000001 +1 2020 10 07 21 00 0.0019057406 +1 2020 10 07 22 00 0.0037654318000000003 +1 2020 10 07 23 00 0.0055011405 +1 2020 10 08 00 00 0.010166303 +1 2020 10 08 01 00 0.010956223999999999 +1 2020 10 08 02 00 0.0071553804 +1 2020 10 08 03 00 0.0034112018 +1 2020 10 08 04 00 0.00032943353 +1 2020 10 08 05 00 7.275957999999999e-09 +1 2020 10 08 06 00 7.275957999999999e-09 +1 2020 10 08 07 00 7.275957999999999e-09 +1 2020 10 08 08 00 7.275957999999999e-09 +1 2020 10 08 09 00 7.275957999999999e-09 +1 2020 10 08 10 00 7.275957999999999e-09 +1 2020 10 08 11 00 7.275957999999999e-09 +1 2020 10 08 12 00 7.275957999999999e-09 +1 2020 10 08 13 00 7.275957999999999e-09 +1 2020 10 08 14 00 0.0019942962999999997 +1 2020 10 08 15 00 0.017066632 +1 2020 10 08 16 00 0.1024281 +1 2020 10 08 17 00 0.09838992 +1 2020 10 08 18 00 0.04274804 +1 2020 10 08 19 00 0.013393306 +1 2020 10 08 20 00 0.005975802 +1 2020 10 08 21 00 0.0024016626 +1 2020 10 08 22 00 0.01663802 +1 2020 10 08 23 00 0.048688416 diff --git a/swmmanywhere/defs/swmm_conversion.yml b/swmmanywhere/defs/swmm_conversion.yml new file mode 100644 index 00000000..eddd4fbc --- /dev/null +++ b/swmmanywhere/defs/swmm_conversion.yml @@ -0,0 +1,54 @@ +# Adapted from SWMMIO: https://github.com/pyswmm/swmmio/tree/master +# 'columns' gives the names and order of input of data that SWMM expects +# 'iwcolumns' gives that names of columns in our dataframes that match with the +# corresponding values in 'columns' +# / in 'iwcolumns' sets a default value for that column +CONDUITS: + columns: [Name, InletNode, OutletNode, Length, Roughness, InOffset, OutOffset, InitFlow, MaxFlow] + iwcolumns: [id, u, v, length, roughness, /0, /0, /0, capacity] +INFILTRATION: + columns: [Subcatchment, Suction, HydCon, IMDmax, ] + iwcolumns: [subcatchment, /0, /0, /0, /0, /0] +JUNCTIONS: + columns: [Name, InvertElev, MaxDepth, InitDepth, SurchargeDepth, PondedArea] + iwcolumns: [id, chamber_floor_elevation, max_depth, /0, surcharge_depth, flooded_area] +OUTFALLS: + columns: [Name, InvertElev, OutfallType, StageOrTimeseries, TideGate, RouteTo] + iwcolumns: [id, chamber_floor_elevation, /FREE, / , /NO, /*] +STORAGE: + columns: [Name, InvertElev, MaxD, InitDepth, StorageCurve, Coefficient, Exponent, + Constant, EvapFrac, SuctionHead, Conductivity, InitialDeficit] + iwcolumns: [id, chamber_floor_elevation, max_depth, /0, /FUNCTIONAL, /0, /0, + manhole_area, /0, /0, /0, /0] +SUBCATCHMENTS: + columns: [Name, Raingage, Outlet, Area, PercImperv, Width, PercSlope, + CurbLength, SnowPack] + iwcolumns: [subcatchment, rain_gage, id, area, rc, width, slope, + /0, /empty] +SUBAREAS: + columns: [Name, N-Imperv, N-Perv, S-Imperv, S-Perv, PctZero, RouteTo, PctRouted] + iwcolumns: [subcatchment, /1, /0, /0, /0, /0, /OUTLET, /0] +XSECTIONS: + columns: [Link, Shape, Geom1, Geom2, Geom3, Geom4, Barrels, XX] + iwcolumns: [id, /CIRCULAR, diameter, /0, /0, /0, /1, /*] +COORDINATES: + columns: [Name, X, Y] + iwcolumns: [id, x, y] +VERTICES: + columns: [Name, X, Y] + columns: [id, x, y] +Polygons: + columns: [Name, X, Y] + iwcolumns: [subcatchment, x, y] +POLYGONS: + columns: [Name, X, Y] + iwcolumns: [subcatchment, x, y] +MAP: + columns: [Param, x1, y1, x2, y2] + iwcolumns: [/DIMENSIONS, x1, y1, x2, y2] +RAINGAGES: + columns: [Name,Format,Interval,SCF,Source,Filename,StationID,Unit] + iwcolumns: [name,/INTENSITY,interval,/1,/FILE,fid,/1,unit] +SYMBOLS: + columns: [Gage, X, Y] + iwcolumns: [name, x, y] \ No newline at end of file