gw-conditions
A visualization showing groundwater conditions as little peaks above or below their normal values.
https://github.com/doi-usgs/gw-conditions
Category: Natural Resources
Sub Category: Water Supply and Quality
Last synced: about 18 hours ago
JSON representation
Repository metadata
Similar to gage-conditions-gif but for groundwater!
- Host: GitHub
- URL: https://github.com/doi-usgs/gw-conditions
- Owner: DOI-USGS
- License: cc0-1.0
- Created: 2020-12-18T21:13:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-26T18:39:30.000Z (5 months ago)
- Last Synced: 2025-02-03T23:01:40.624Z (3 months ago)
- Language: R
- Size: 4.84 MB
- Stars: 7
- Watchers: 6
- Forks: 6
- Open Issues: 13
- Releases: 13
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
README.md
gw-conditions
A visualization showing groundwater conditions as little peaks above or below their normal values. The final website can be found here: https://labs.waterdata.usgs.gov/visualizations/gw-conditions/index.html#/
This visualization is built using an R-based pipeline for data processing, and Vue.js + D3.js to create an animated site. The R-based pipeline (1) calculates daily percentiles for each well based on the historic record at each site, and (2) writes an svg map for the base of the animation. The R-based pipeline also pushes the data up to a public S3 bucket. This pipeline leverages an internal package, library(scipiper)
to automate the workflow. You do not need to run the pipeline to be able to build the app locally, since the app points to data in the S3 bucket.
Build the visualization locally
The data (all CSVs and SVGs) needed for this visualization are already publicly available through labs.waterdata.usgs.gov/visualizations/data/[FILENAME]
. You should be able open this repo, run the following code chunk, and see the visualization locally (http://localhost:8080/) without needed to build the data pipeline:
npm install
npm run serve
Build the data behind the visualization and push to S3
This step is not needed to build the visualization locally since the data files are available through a public S3 bucket and can be accessed from labs.waterdata.usgs.gov/visualizations/data/[FILENAME]
. Run this code if you need to update the data or base SVG behind the visualization.
Generate the historic data
The historic data pipeline (0_historic.yml
) is decoupled from the rest of the pipeline. It will build only when you run scmake(remake_file = "0_historic.yml")
. Otherwise, the 1_fetch.yml
part of the pipeline will assume the historic data is on S3 ready to use and will download the data using the filepaths described in 0_config.yml
. The historic data is being stored on the developer VPC in the vizlab-data
bucket but should be moved for public access later if we do a data release.
Generate the data behind the viz
If you plan to be able to push the final data to S3, you need to have the appropriate S3 configs prepared. The file lib/cfg/s3_config_viz.yml
expects you to have credentials labeled [prod]
in your ~/.aws/credentials
file (rather than [default]
). Also note that any of the targets that call scipiper::s3_put()
will require you to be on the USGS Network (VPN). If you want to build the data pipeline but don't need to (or can't) push to S3, you can run options(scipiper.dry_put = TRUE)
and then the code listed below. This will skip the upload step.
Once your configurations are set up, run the following to generate the data needed by the visualization.
library(scipiper)
scmake()
In the end the following targets should have been built successfully (because they are what is pushed to S3 and used by the Vue code):
visualizations/data/gw-conditions-time-labels.csv.ind
visualizations/data/gw-conditions-peaks-map.svg
visualizations/data/gw-conditions-peaks-timeseries.csv.ind
visualizations/data/gw-conditions-site-coords.csv.ind
visualizations/data/gw-conditions-daily-proportions.csv.ind
Follow the two steps below in order to retain a copy of the current visualization's timeseries data, so that we can access it in the future without a data pipeline rebuild.
- Authenticate to AWS using the Dev VPC. Use
saml2aws login
in your regular command line, and then make sure you choose thegs-chs-wma-dev
account when prompted. If you are still authenticated to the Prod VPC, try runningsaml2aws login --force
in order to force a new login. - Then run
scmake('3_visualize/out/gw-conditions-peaks-timeseries-s3copy.ind')
to push a copy of the3_visualize/out/gw-conditions-peaks-timeseries.csv
file to thevizlab-data
bucket on the Dev VPC. The file will be automatically given a new name based on theviz_start_date
andviz_end_date
target values, using this pattern:gw-conditions/viz-previous-peak-data/gw-conditions-peaks-timeseries-[viz_start_date]_[viz_end_date].csv
.
Owner metadata
- Name: U.S. Geological Survey
- Login: DOI-USGS
- Email: [email protected]
- Kind: organization
- Description: By integrating our diverse scientific expertise, we understand complex natural science phenomena and provide scientific products that lead to solutions.
- Website: https://www.usgs.gov/
- Location: United States of America
- Twitter: USGS
- Company:
- Icon url: https://avatars.githubusercontent.com/u/65027635?v=4
- Repositories: 59
- Last ynced at: 2023-06-11T08:40:17.441Z
- Profile URL: https://github.com/DOI-USGS
GitHub Events
Total
- Release event: 1
- Watch event: 1
- Delete event: 1
- Issue comment event: 2
- Push event: 4
- Pull request review event: 1
- Pull request event: 2
- Create event: 3
Last Year
- Release event: 1
- Watch event: 1
- Delete event: 1
- Issue comment event: 2
- Push event: 4
- Pull request review event: 1
- Pull request event: 2
- Create event: 3
Committers metadata
Last synced: 7 days ago
Total Commits: 339
Total Committers: 7
Avg Commits per committer: 48.429
Development Distribution Score (DDS): 0.525
Commits in past year: 25
Committers in past year: 1
Avg Commits per committer in past year: 25.0
Development Distribution Score (DDS) in past year: 0.0
Name | Commits | |
---|---|---|
collnell | c****l@u****v | 161 |
Platt | l****t@u****v | 98 |
Corson-Dosch | h****h@u****v | 72 |
Althea A. Archer | a****r@u****v | 4 |
Cee Nell | c****d@g****m | 2 |
Joseph Zemmels | j****s@u****v | 1 |
Jesse Ross | j****s@u****v | 1 |
Committer domains:
- usgs.gov: 6
Issue and Pull Request metadata
Last synced: 2 days ago
Total issues: 58
Total pull requests: 79
Average time to close issues: 4 months
Average time to close pull requests: 6 days
Total issue authors: 4
Total pull request authors: 5
Average comments per issue: 2.29
Average comments per pull request: 1.11
Merged pull request: 79
Bot issues: 0
Bot pull requests: 0
Past year issues: 1
Past year pull requests: 4
Past year average time to close issues: N/A
Past year average time to close pull requests: 2 days
Past year issue authors: 1
Past year pull request authors: 1
Past year average comments per issue: 0.0
Past year average comments per pull request: 1.75
Past year merged pull request: 4
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- lindsayplatt (39)
- cnell-usgs (16)
- hcorson-dosch-usgs (2)
- jkreft-usgs (1)
Top Pull Request Authors
- cnell-usgs (34)
- lindsayplatt (28)
- hcorson-dosch-usgs (15)
- jesse-ross (1)
- jzemmels (1)
Top Issue Labels
- enhancement (6)
- bug (4)
- question (3)
Top Pull Request Labels
Dependencies
- 1332 dependencies
- @vue/cli-plugin-babel ^4.5.4 development
- @vue/cli-plugin-eslint ^4.5.4 development
- @vue/cli-service ^4.5.4 development
- babel-eslint ^10.1.0 development
- eslint ^7.7.0 development
- eslint-plugin-vue ^6.2.2 development
- node-sass ^4.14.1 development
- sass-loader ^9.0.3 development
- vue-svg-loader 0.16.0 development
- vue-template-compiler 2.6.12 development
- @fortawesome/fontawesome-svg-core ^1.2.30
- @fortawesome/free-brands-svg-icons ^5.14.0
- @fortawesome/free-solid-svg-icons ^5.14.0
- @fortawesome/vue-fontawesome ^0.1.10
- core-js ^3.6.5
- d3 ^5.16.0
- d3-transition ^3.0.1
- file-loader ^4.3.0
- html-loader ^2.0.0
- lint ^0.7.0
- mobile-device-detect ^0.4.3
- regenerator-runtime ^0.13.9
- vue 2.6.12
- vue-analytics ^5.22.1
- vue-browser-detect-plugin ^0.1.13
- vue-loader 14.2.2
- vue-mobile-detection ^1.0.0
- vue-router ^3.4.3
- vuex ^3.5.1
- webpack ^4.42.0
- artifactory.wma.chs.usgs.gov/docker-official-mirror/debian stretch build
Score: 4.941642422609304