shp_to_inp: Convert *.shp files to SWMM's *.inp file

Description Usage Arguments Value

View source: R/shp_to_inp.R

Description

Reads *.shp files and other information needed for SWMM's *.inp file and returns a list of class inp. If paths are not specified default values are taken.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
shp_to_inp(
  path_options = NULL,
  path_polygon = NULL,
  subcatchment_typologies = NULL,
  path_point = NULL,
  junction_parameters = NULL,
  path_outfall = NULL,
  path_line = NULL,
  conduit_material = NULL,
  path_timeseries = NULL,
  infiltration = NULL,
  path_pumps = NULL,
  path_pump_curve = NULL,
  path_weirs = NULL,
  path_storage = NULL,
  path_storage_curve = NULL
)

Arguments

path_options

Name (incl. path) to a .txt file with SWMM sections. Write section name in lower case and in squared brackets. The following sections are allowed: options, report, raingages, evaporation, pollutant, landuse, buildup, washoff, coverages.

path_polygon

Name (incl. path) to a .shp file with polygons features. At least the following subcatchment related columns must be specified: Name, Outlet, Area, RouteTo.

subcatchment_typologies

R data.frame or tibble with further subcatchment related parameters. If subcatchment_typologies is given, polygon feature has to include a column named Type. Parameters defined in subcatchment_typologies parameters are merged to subcatchments by Type.

path_point

Name (incl. path) to a .shp file with point features. At least the following junction related columns must be specified: Name, Bottom and Top or Ymax.

junction_parameters

R data.frame or tibble with further junction related parameters (e.g. Surcharge depth).

path_outfall

Name (incl. path) to a .shp file with point features. At least the following outfall related columns must be specified: Name, Bottom, Type, Gated.

path_line

Name (incl. path) to a .shp file with line features. At least the following conduit related coulumns must be specified: Name, Length, Type, FromNode, ToNode, OutOffset, Geom1.

conduit_material

R data.frame or tibble with further conduit related parameters (e.g. roughness). If conduit_material is given, line feature has to include a column named Material. Parameters defined in conduit_material parameters are merged to conduits by Material.

path_timeseries

Name (incl. path) to a .dat file with a timeseries in SWMM format.

infiltration

R data.frame or tibble with infiltration parameters related to soil properties. If infiltration is given, polygon feature has to include a column named soil. Infiltration parameters are merged to subcatchments by soil name.

path_pumps

Name (incl. path) to a .shp file with line features. All parameters must be given: Name, FromNode, ToNode, Pcurve, status, Startup, Shutoff.

path_pump_curve

Name (incl. path) to a .txt file with pump curve information. Having the following structure: "Name of pump" "PUMP1-4" "x" "y", without header.

path_weirs

Name (incl. path) to a .shp file with line features. All parameters must be given: Name, FromNode, ToNode, Type, CrestHt, Cd, Gated, EC, Cd2, Sur.

path_storage

Name (incl. path) to a .txt file with storage curve information. Having the following structure: "Name of storage" "Storage" "x" "y", without header.

path_storage_curve

Name (incl. path) to a .txt file with storage curve information. Having the following structure: "Name of storage unit" "Storage" "x" "y", without header.

Value

A list of class inp.


swmmr documentation built on March 2, 2020, 5:09 p.m.