bathtub
is an R package that estimates the impacts of downstream flooding on stormwater networks using a simple bathtub model, a 1-dimensional infrastructure network, and a minimal amount of data.
The package bathtub
:
bathtub
was designed to be practical and can:
Download and process elevation data from NOAA and USGS within R (DEMs & lidar)
Interpolate missing invert elevations within the stormwater network
Automatically take care of unit conversions and spatial data projections
Easily visualize, save, & share results
Install bathtub
from GitHub using devtools
:
library(devtools)
install_github("acgold/bathtub")
bathtub
combines spatial representations of the stormwater network and landscape with a 1-dimensional model of the stormwater network. bathtub
uses the sf
, stars
, and raster
packages to provide quick and tidy results.
The model works by:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.