assemble_net_model.RdAssemble bathtub inundation model
assemble_net_model( pipes, structures, type = "elevation", use_raster_elevation = T, elev, elev_units = "m", min_elev_cutoff = -5, buffer = 0.5, interp_rnds = 5, guess_connectivity = T, up_condition = NULL, dn_condition = NULL, structure_condition = NULL, obstruction_keywords = NULL, obstruction_percent = F, overwrite = T, workspace )
| pipes | A |
|---|---|
| structures | A |
| type | Type of invert survey data. 'depth', 'elevation', or 'none' |
| use_raster_elevation | Extract elevation and use as surface elevations? |
| elev |
|
| elev_units | Units of |
| min_elev_cutoff | Minimum cutoff for elevation values |
| buffer | Size of buffer for connecting structures to pipes |
| interp_rnds | Rounds of interpolation for missing invert elevations |
| guess_connectivity | Assume connectivity of pipes that overlap without nodes? |
| up_condition | Column name of upstream pipe condition. Either text of condition to be
searched with |
| dn_condition | Column name of downstream pipe condition. Either text of condition to be
searched with |
| structure_condition | Column name of structure condition. Either text of condition to be
searched with |
| obstruction_keywords | Vector of keywords (in quotes) denoting obstruction to evaluate in
|
| obstruction_percent | Should |
| overwrite | Overwrite existing model files in the workspace? Default is TRUE. If set to FALSE, model will not be saved in output folder and will exist in memory (see load_model to load existing model). |
| workspace | bathtub workspace path |
An list of three sf objects denoting Pipes, Nodes, and Structures. Files are saved in '/model/'
folder in workspace and by default overwrite existing model files
# bft_model <- assemble_net_model( # pipes = pipes_n, # structures = structures_n, # type = "none", # elev = bft_elev, # elev_units = "m", # use_raster_elevation = F, # buffer = 1, # guess_connectivity = T # )