https://github.com/doi-usgs/drought-timeline
A history of hydrological drought in the U.S.
https://github.com/doi-usgs/drought-timeline
Last synced: 24 days ago
JSON representation
A history of hydrological drought in the U.S.
- Host: GitHub
- URL: https://github.com/doi-usgs/drought-timeline
- Owner: DOI-USGS
- License: cc0-1.0
- Created: 2022-08-17T16:07:41.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-29T16:22:04.000Z (about 2 months ago)
- Last Synced: 2025-03-29T16:28:00.565Z (about 2 months ago)
- Language: Vue
- Size: 86.8 MB
- Stars: 5
- Watchers: 4
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# 100 years of drought in the U.S.
## To build pipeline and reproduce figures
Clone the repo. In RStudio, run `library(targets)` and `tar_make()`. This will require ScienceBase credentials to run, see instructions below.## To run website build locally
Clone the repo. In the directory, run `npm install` to install the required modules. This repository requires `npm v20` to run. If you are using a later version of `npm`, you may [try using `nvm` to manage multiple versions of npm](https://betterprogramming.pub/how-to-change-node-js-version-between-projects-using-nvm-3ad2416bda7e).Once the dependencies have been installed, run `npm run serve` to run locally from your browser.
## Set up ScienceBase credentials
In order to download the data from ScienceBase while the data release remains unpublished, 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.
```r
library(secret);library(dplyr)
source("0_config/src/authentication_helpers.R")
set_up_auth("[email protected]")
```