Libraries used for this project:

library(tidyverse)
library(sf)       
library(raster)   
library(fasterize) 
library(whitebox)  
library(gifski)
library(knitr)

# Data libraries
library(osmdata)   
library(elevatr) 

Question 1: Collecting Data

Background: Mission Creek runs from Rattle Snake Canyon, through Santa Barbara, and drains into the water front near Stearns Wharf. In the past two decades this basin has flooded on numerous occasions causing damage along State Street and the surrounding neighborhoods. It has flooded during 1995, 1998, and 2017.

I got the boundaries for the Mission Creek basin from the NLDI using read_sf() and the URL containing the specific USGS gauge: USGS-11119750. I then loaded the basin into my working session in R and took the elevation of the basin. I cropped and masked the elevation data to the basin boundary and finally used OSM to query building and stream data.


Question 2: Terrain Analysis

In this part of the project, I created a hillshade and plotted it along with the basin boundary and the river flowlines on top of it. I then created a HAND (“Height Above Nearest Drainage”) raster in preparation for the next question.


Question 3: 2017 Mission Creek Flood Impact Assessment

The map above looks accurate as it displays the flooding that occured on February 17th, 2017, which reached a maximum height of 10.02 feet. It also appears that the railway station (green point) was affected by the flooding on this day.

With this map, I determined the number of buildings that were impacted by this flood. The buildings in red were affected by the flood while the black buildings were not impacted. In total, as the title states, there were 768 buildings impacted by the Mission Creek flood on this day.


Question 4: Flood Inundation Map Library

Flood Inundation Map libraries help communities apply real-time stream data and National Weather Service flood forecasts to form a two-dimensional flood warning system. These 2D warning systems help estimate the extent of a flood and identify at-risk areas and resources in advance of floodwaters arriving.

The gif below is in essence, a flood inundation map library for Mission Creek for stage values ranging from 0 to 20 feet. It also displays the number of buildings impacted at each foot stage.

At stage 0, we are capturing impacted buildings due to the fact that we set a stream buffer to 10 meters. While these homes are not yet impacted by the flood, they are considered “inundated” because they are within the 10 meter buffer of the river.