Collection of functions to help retrieve U.S. Geological Survey (USGS) and U.S. Environmental Protection Agency (EPA) water quality and hydrology data from web services. USGS web services are discovered from National Water Information System (NWIS) < https://waterservices.usgs.gov/> and < https://waterdata.usgs.gov/nwis>. Both EPA and USGS water quality data are obtained from the Water Quality Portal < https://www.waterqualitydata.us/>.
Retrieval functions for USGS and EPA hydrologic and water quality data. For tutorial information, see:
usgs-r.github.io/dataRetrieval To install the dataRetrieval package, you must be using R 3.0 or greater and run the following command:
To get inter-CRAN release updates, use the command:
To get cutting-edge changes, install from GitHub using the
Please consider reporting bugs and asking questions on the Issues page:
@USGS-R on Twitter for updates on all USGS R packages:
|Version||Monthly Downloads||Total Downloads|
##Disclaimer This software is in the public domain because it contains materials that originally came from the U.S. Geological Survey, an agency of the United States Department of Interior. For more information, see the official USGS copyright policy
Although this software program has been used by the U.S. Geological Survey (USGS), no warranty, expressed or implied, is made by the USGS or the U.S. Government as to the accuracy and functioning of the program and related program material nor shall the fact of distribution constitute any such warranty, and no responsibility is assumed by the USGS in connection therewith.
This software is provided "AS IS."
Added getNWISDataAvailability function to find measured parameters and period of record information for a requested station.
Added constructNWISURL function to get the URL that is used to retrieve the data.
Added getSampleSTORET function to get STORET data directly in Sample dataframe form.
Fixed a small leap year bug by changing day of year by making Feb. 29 always 59, and March 1st always 60 (even in non-leap years).
Improved documentation, especially example functions.
Improved vignette for a more complete walk-through.
Expanded the capabilities to retrieve raw data from the web services.
Added Storet data retrievals in readWQPdata function