Using the dataretrieval Package to Retrieve USGS NWIS Discharge Data and Statistics
Authors: | |
---|---|
Owners: | Steven WhiteCUAHSI Hydroshare Publisher |
Type: | Resource |
Storage: | The size of this resource is 1.4 MB |
Created: | Apr 20, 2022 at 4:09 p.m. (UTC) |
Last updated: | Apr 20, 2022 at 6:10 p.m. (UTC) (Metadata update) |
Published date: | Apr 20, 2022 at 6:10 p.m. (UTC) |
DOI: | 10.4211/hs.a33f0c48612749f98b2940366d363ce9 |
Citation: | See how to cite this resource |
Sharing Status: | Published |
---|---|
Views: | 1639 |
Downloads: | 40 |
+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
Temporal
Start Date: | 01/01/1971 |
---|---|
End Date: | 12/31/2021 |














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
This resource is shared under the Creative Commons Attribution CC BY.
http://creativecommons.org/licenses/by/4.0/
Comments
There are currently no comments
New Comment