Skip to content

A data pipeline used to analyze time series data from the National Water Information System (NWIS).

Notifications You must be signed in to change notification settings

abnerbog/data-pipeline-nwis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

data-pipeline-nwis

A data pipeline used to retrieve, process and visualize time series data from the National Water Information System (NWIS).

How to use

This data analysis workflow uses Snakemake (installation instructions here) as a pipelining tool to retrieve, process and visualize environmenal time series data from NWIS. The project files are organized following the conventions outlined in the USGS data science branch.

First, create a Conda environment with all the required packages by running the following command: conda env create -f environment.yaml

Once in the new environment, we can execute the snakemake pipeline with this command: snakemake --cores 1 -s Snakefile.txt

When the jobs are done, a choropleth plot displaying processed timeseries data and associated metadata will be in a newly created out folder in 3_plot/.

Modifications to the data query can be made via the Snakefile by changing the params key values in the get_data rule, and by changing the hydrologic unit code (huc) inputs found in 1_fetch/src/in.

About

A data pipeline used to analyze time series data from the National Water Information System (NWIS).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages