A newer version of the software may be available. See https://github.com/DOI-USGS/what-is-drought/releases to view all releases.
This repo uses R and javascript to build a data visualization website about how USGS streamgages can be used to characterize streamflow drought.
The data visualization website can be viewed at https://water.usgs.gov/vizlab/what-is-drought.
Clone the repo. In the directory, run npm install
to install the required modules. Once the dependencies have been installed, run npm run dev
to run locally from your browser.
To build the website locally you'll need node.js
v22.14.0
and npm
v10.9.2
or higher installed. To manage multiple versions of npm
, you may try using nvm
.
Archer, A., Corson-Dosch, H., and Nell, C. June 1, 2023. What is streamflow drought? https://water.usgs.gov/vizlab/what-is-drought/
John Hammond and Caelan Simeone consulted on the development of this website as subject matter experts.
- We welcome contributions from the community. See the guidelines for contributing to this repository on GitHub.
- Disclaimer
- License
In order to download the data from ScienceBase, you will need to first set up local credentials by running the following chunk of code with your own ScienceBase username. You will be prompted for a password (this should be your AD password if you are a USGS employee) in a separate dialogue box. This only needs to be run once for as long as your username and password are valid. Re-run when you need to update your password.
library(secret);library(dplyr)
source("0_config/src/authentication_helpers.R")
set_up_auth("[email protected]")