Setup pipes for bathtub inundation modeling

setup_pipes(
  pipes,
  type = "depth",
  up_invert,
  dn_invert,
  null_value = 99,
  invert_units = "ft",
  up_elev = NA,
  dn_elev = NA,
  elev_units = "ft",
  vdatum = "NAVD88",
  diam,
  diam_units,
  other_cols = NULL,
  workspace
)

Arguments

pipes

A sf object denoting stormwater pipes

type

Type of invert survey data. 'depth', 'elevation', or 'none'

up_invert

Name of column denoting upstream invert survey data

dn_invert

Name of column denoting downstream invert survey data

null_value

Invert survey data value indicating missing data

up_elev

Name of column denoting surface elevation of upstream pipe ends

dn_elev

Name of column denoting surface elevation of downstream pipe ends

elev_units

Units of up/dn_invert and up/dn_elev

vdatum

Vertical datum of elevation data (only NAVD88 supported)

diam

Name of column denoting pipe diameter

diam_units

Units of diam

other_cols

Other columns to preserve

workspace

Path to bathtub folder

Value

An sf object denoting pipes formatted with units

Examples

# pipes_n <- # setup_pipes(pipes, # type = "none", # diam = "DIAMETER", # diam_units = "in")