generated from IMMM-SFA/metarepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.Rmd
74 lines (51 loc) · 2.87 KB
/
index.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
---
title: "Meta-repository for Turner et al., 2021 / 'Comparison of potential drinking water source contamination across one hundred U.S. cities'"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
**Comparison of potential drinking water source contamination across one hundred U.S. cities**
Sean W. D. Turner<sup>1\*</sup>, Jennie S. Rice<sup>1\*</sup>, Kristian D. Nelson<sup>1\*</sup>, Chris R. Vernon<sup>1\*</sup>, Ryan McManamay<sup>2\*</sup>, Kerim Dickson<sup>3\*</sup>, Landon Marston<sup>4\*</sup>
<sup>1 </sup> PNNL
<sup>2 </sup> Baylor
<sup>3 </sup> Kansas State
<sup>4 </sup> Virginia Tech
\* corresponding author: sean.turner@pnnl.gov
### Article
Turner, S.W.D., Rice, J., Nelson, K., Vernon, C., McManamay, R., Dickson, K., and Marston, L. (2021). Comparison of potential drinking water contamination across one hundred U.S. cities, *Nature Communications* **12**, 7254. https://doi.org/10.1038/s41467-021-27509-9
### Contributing modeling software
| model | Version | Repository Link | DOI |
|:------|:--------|:----------------|:----|
| `gamut` | 0.1.0 | immm-sfa.github.io/gamut/ | [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5590217.svg)](https://doi.org/10.5281/zenodo.5590217) |
### Input data
| Dataset | Version | DOI |
|:------|:--------|:----------------|
| UWSCatCH | 1.0 | [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4315195.svg)](https://doi.org/10.5281/zenodo.4315195)|
| Geospatial Input Datasets for Urban Teleconnections Analysis | 1.0 | [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4662993.svg)](https://doi.org/10.5281/zenodo.4662993)|
### Results: PPCS metrics and water supply contributions for 116 cities
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5813878.svg)](https://doi.org/10.5281/zenodo.5813878)
## Example: use `gamut` to compute PPCS and other metrics
To download the `gamut` tool, use:
```{r, eval=FALSE}
devtools::install_github('IMMM-SFA/gamut')
```
If you have any trouble installing, please the instructions here: https://github.com/IMMM-SFA/gamut. Still no luck? Open an [issue](https://github.com/IMMM-SFA/gamut/issues).
Next download the input data linked above ("Geospatial Input Datasets for Urban Teleconnections Analysis") and save to a local directory of your choice.
```{r}
my_gamut_data_dir <- "my_directory/Geospatial_Input_Datasets"
```
```{r, show = FALSE, echo = FALSE}
my_gamut_data_dir <- "../../../../Large data files/Geospatial_Input_Datasets/"
```
Here's an example for two cities:
(Due to the high resolution of some of the geospatial data used in `gamut`, this may take several minutes!)
```{r, warning = FALSE}
library(gamut)
count_watershed_teleconnections(
data_dir = my_gamut_data_dir,
cities = c("Portland | OR", "New York | NY")
) -> city_metrics
head(city_metrics)
```
Check [here](https://github.com/IMMM-SFA/gamut) for definitions of each metric.