You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I need to insert a series of weirs using the shp_to_inp function. To do this I created the following test shapefile according to the wording of the manual:
At this point, the function creates the correct .inp file, but it is not possible to enter the height and length of the weirs (they are set to 1) and the CrestHt field is inserted as Inlet Offset as you can see in the following image:
I then manually entered the values through SWMM and realized that the dimensions of the weirs are entered by SWMM inside the [XSECTIONS] section as for the other linear elements, and therefore inside the Link, Shape, Geom1 and Geom2 fields:
However it is not possible to insert these parameters inside the shapefile, so how can I do? where am I wrong? I also tried using the example 8 provided with the SWMM manual and from this example I created the shapefiles using the inp_to_files function but also in this case the parameters referring to the height and length of the weirs do not appear inside the shapes as happens instead for the shapefile relating to the pipes. Consequently, converting it back to the .inp file using the shp_to_inp function, these parameters will not be loaded. Could you kindly help me in this operation? I attach the Example 8.inp and my code, thank you very much.
Here is a quick diagram of the quantities necessary for the correct representation of a weir on SWMM: The height of the crest (CrestHt from the Shapefile) is correctly entered by the function shp_to_inp in the "Inlet Offset" item, while the shape and the two dimensions Height (Geom1) and Length (Geom2) must be contained in the [XSECTIONS] section of the .inp file. Thanks again for your availability in helping me.
Thanks for your reply, hope you can solve the problem. However, I also wanted to ask if by chance you had been able to take a look also at the problem related to the insertion of the pump curves (issues # 41) which was also open by me. thanks for your help!
Enrico
Hello, I need to insert a series of weirs using the
shp_to_inp
function. To do this I created the following test shapefile according to the wording of the manual:At this point, the function creates the correct .inp file, but it is not possible to enter the height and length of the weirs (they are set to 1) and the CrestHt field is inserted as Inlet Offset as you can see in the following image:
I then manually entered the values through SWMM and realized that the dimensions of the weirs are entered by SWMM inside the [XSECTIONS] section as for the other linear elements, and therefore inside the Link, Shape, Geom1 and Geom2 fields:
However it is not possible to insert these parameters inside the shapefile, so how can I do? where am I wrong? I also tried using the example 8 provided with the SWMM manual and from this example I created the shapefiles using the
inp_to_files
function but also in this case the parameters referring to the height and length of the weirs do not appear inside the shapes as happens instead for the shapefile relating to the pipes. Consequently, converting it back to the .inp file using theshp_to_inp
function, these parameters will not be loaded. Could you kindly help me in this operation? I attach the Example 8.inp and my code, thank you very much.Example8.txt
While this is the code I used to get the shapefiles from the .inp file of Example 8
The text was updated successfully, but these errors were encountered: