-
Notifications
You must be signed in to change notification settings - Fork 11
/
README.Rmd
83 lines (54 loc) · 3.44 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%")
```
# FloodMapping <img src="man/figures/logo.png" width=160 height = 120 align="right"/>
<!-- badges: start -->
[![Build Status](https://travis-ci.org/mikejohnson51/FloodMapping.svg?branch=master)](https://travis-ci.org/mikejohnson51/FloodMapping)
[![R-CMD-check](https://github.com/mikejohnson51/FloodMapping/workflows/R-CMD-check/badge.svg)](https://github.com/mikejohnson51/FloodMapping/actions)
[![Coverage Status](https://coveralls.io/repos/github/mikejohnson51/FloodMapping/badge.svg?branch=master)](https://coveralls.io/github/mikejohnson51/FloodMapping?branch=master)
[![DOI](https://zenodo.org/badge/130427796.svg)](https://zenodo.org/badge/latestdoi/130427796)
<!-- badges: end -->
The advent of the National Water Model and the development of the Height Above Nearest Drainage products (HAND) offer the ability to map flood extents for anywhere in the lower 48 United States. The challenges with this methodology stem from the acquisition, management and application of large scale data sets.
FloodMapper is designed to help users get the data they need, archive it on their local machines, and then process flood extents. In executing the steps in this process the first time the process in run the data is collected and formatted - meaning it is slow. After the intital pass, users can quickly generate flood maps for their region from real-time National Water Model output and historic data (nwmTools), and can adjust forecasted values to build pre-stages maps (adjust).
### Installation:
```{r, eval = FALSE}
remotes::install_github("mikejohnson51/FloodMapping")
```
### Use case for Kansas
```{r, warning=FALSE, message=FALSE}
library(AOI)
library(leaflet)
library(stars)
library(leafem)
library(nwmTools)
library(FloodMapping)
raw.dir <-'/Users/mikejohnson/Desktop/test_nomads.tmp/'
AOI <- aoi_get("Lawrence, KS")
project.name <- "KU"
files <- getRawData(AOI, dir = raw.dir, project.name)
files$flows.path <- nwmTools::create_nwm_nc(type = "analysis_assim", num = 1,
dstfile = paste0(raw.dir, project.name, '/flows.nc'))
maps = map_flood(
hand.path = files$hand.path,
catchment.path = files$catch.path,
flows.path = files$flows.path,
threshold = .1
)
leaflet() %>%
addProviderTiles(providers$CartoDB.DarkMatter) %>%
addStarsImage(st_as_stars(maps[[1]]), colors = blues9)
```
______
The HAND datasets are a product of:
Liu, Yan Y., David R. Maidment, David G. Tarboton, Xing Zheng, and Shaowen Wang. 2018. A CyberGIS Integration and Computation Framework for High-Resolution Continental-Scale Flood Inundation Mapping. Journal of the American Water Resources Association (JAWRA). Accepted.
Liu, Yan Y., David R. Maidment, David G. Tarboton, Xing Zheng, Ahmet Yildirim, Nazmus S. Sazib and Shaowen Wang. 2016. A CyberGIS Approach to Generating High-resolution Height Above Nearest Drainage (HAND) Raster for National Flood Mapping. The Third International Conference on CyberGIS and Geospatial Data Science. July 26–28, 2016, Urbana, Illinois. http://dx.doi.org/10.13140/RG.2.2.24234.41925/1
### Support:
Development is supported with funds from the UCAR COMET program; the NOAA National Water Center; and the University of California, Santa Barbara and is available under the MIT license