Checking for non-preferred file/folder path names (may take a long time depending on the number of files/folders) ...

Using the dataretrieval Package to Retrieve USGS NWIS Discharge Data and Statistics


Authors:
Owners: This resource does not have an owner who is an active HydroShare user. Contact CUAHSI (help@cuahsi.org) for information on this resource.
Type: Resource
Storage: The size of this resource is 1.4 MB
Created: Apr 20, 2022 at 4:09 p.m.
Last updated: Apr 20, 2022 at 6:10 p.m. (Metadata update)
Published date: Apr 20, 2022 at 6:10 p.m.
DOI: 10.4211/hs.a33f0c48612749f98b2940366d363ce9
Citation: See how to cite this resource
Sharing Status: Published
Views: 905
Downloads: 36
+1 Votes: Be the first one to 
 this.
Comments: No comments (yet)

Abstract

The purpose of this resource is to provide a script that automates data retrieval from the USGS NWIS database. Included in this resource is a Jupyter Notebook script (dataretrieval_percentiles.ipynb), that contains detailed comments for data extraction automation using the dataretrieval library. The script uses USGS 10126000 Bear River near Corinne, UT as a case study, however, the inputs can easily be modified such that a similar analysis could be performed for any watershed in the United States as long as there is an active USGS gage station or a period of record for which the gage stations was active. In addition to the aforementioned script, this resource contains a readme.txt file with instruction for opening and executing the script using the HydroShare and CUAHSI JupyterHub interface.

Subject Keywords

Coverage

Spatial

Coordinate System/Geographic Projection:
WGS 84 EPSG:4326
Coordinate Units:
Decimal degrees
Place/Area Name:
USGS 10126000 Bear River near Corinne, UT
Longitude
-112.1000°
Latitude
41.5764°

Temporal

Start Date:
End Date:

Content

readme.txt

==============================================
Using the dataretrieval Package to Retrieve
USGS NWIS Discharge Data and Daily Percentiles
==============================================

# The purpose of the dataretrieval_percentiles script
# is to automate data extraction from the USGS NWIS 
# database. The two functions that are used to
# retrieve daily discharge data and daily statistics
# are get_stats() and get_dv(), respectively. The
# script could be used for other watersheds in the
# United States as long as they have an active gage
# station or a period of record for which the gage
# station was active. 

# To open the script from the HydroShare resource,
# scroll to the top of the resource and click the 
# "Open With" icon and select CUAHSI JupyterHub.
# CUAHSI JupyterHub is a web application that
# allows users to execute code from Jupyter
# Notebooks in the cloud. Then, navigate to the 
# dataretrieval_percentiles.ipynb and execute the
# code.

How to Cite

White, S. (2022). Using the dataretrieval Package to Retrieve USGS NWIS Discharge Data and Statistics, HydroShare, https://doi.org/10.4211/hs.a33f0c48612749f98b2940366d363ce9

This resource is shared under the Creative Commons Attribution CC BY.

http://creativecommons.org/licenses/by/4.0/
CC-BY

Comments

There are currently no comments

New Comment

required