library(tidyverse)library(sf) # vector manipulationlibrary(raster) # raster manipulationlibrary(fasterize) # "faster" rasterlibrary(whitebox) # terrain analysislibrary(AOI)# Data librarieslibrary(osmdata) # OSM APIlibrary(elevatr) # Elevation Web Tiles# USGS Mission Creek, Santa Barbara gage databasin =read_sf("https://labs.waterdata.usgs.gov/api/nldi/linked-data/nwissite/USGS-11119750/basin/")write_sf(basin, dsn ="../data/USGS-11119750.gpkg")
Background
Mission Creek begins at Rattle Snake Canyon, runs through Santa Barbara, and drains into the ocean. The basin has flooded on several occasions causing damage to structures situated along the basin. Data is sourced from a USGS gage using the USGS Network Linked Data Index.
Estimated Impacts of flooding on structures along Mission Creek