Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

whatWQPdata

Data Available from Water Quality Portal


Description

Returns a list of sites from the Water Quality Portal web service. This function gets the data from: https://www.waterqualitydata.us. Arguments to the function should be based on https://www.waterqualitydata.us/webservices_documentation. The information returned from this function describes the available data at the WQP sites, and some metadata on the sites themselves.

Usage

whatWQPdata(..., saveFile = tempfile())

Arguments

...

see https://www.waterqualitydata.us/webservices_documentation for a complete list of options. A list of arguments can also be supplied.

saveFile

path to save the incoming geojson output.

Value

A data frame with at least the following columns:

Name Type Description
"type_a" character Geojson type
"features.type" character Geojson feature type
"type1" character Geojson spatial type
"coordinates" list List of longitude/latitude
"ProviderName" character The name of the database that provided the data to the Water Qaulity portal (E.G. STORET, NWIS, STEWARDS)
"OrganizationIdentifier" character A designator used to uniquely identify a unique business establishment within a context.
"OrganizationFormalName" character The legal designator (i.e. formal name) of an organization.
"MonitoringLocationIdentifier" character A designator used to describe the unique name, number, or code assigned to identify the monitoring location.
"MonitoringLocationName" character The designator specified by the sampling organization for the site at which sampling or other activities are conducted.
"MonitoringLocationTypeName" character The descriptive name for a type of monitoring location.
"ResolvedMonitoringLocationTypeName" character
"HUCEightDigitCode" character The 8 digit federal code used to identify the hydrologic unit of the monitoring location to the cataloging unit level of precision.
"siteUrl" character URL to site information
"activityCount" numeric
"resultCount" numeric
"StateName" character State name
"CountyName" character County name

See Also

whatNWISsites

Examples

site1 <- whatWQPdata(siteid="USGS-01594440")

type <- "Stream"
sites <- whatWQPdata(countycode="US:55:025",siteType=type)

lakeSites <- whatWQPdata(siteType = "Lake, Reservoir, Impoundment", statecode = "US:55")

dataRetrieval

Retrieval Functions for USGS and EPA Hydrologic and Water Quality Data

v2.7.10
CC0
Authors
Laura DeCicco [aut, cre] (<https://orcid.org/0000-0002-3915-9487>), Robert Hirsch [aut] (<https://orcid.org/0000-0002-4534-075X>), David Lorenz [aut], Jordan Read [ctb], Jordan Walker [ctb], Lindsay Carr [ctb], David Watkins [aut] (<https://orcid.org/0000-0002-7544-0700>), David Blodgett [ctb], Mike Johnson [aut] (<https://orcid.org/0000-0002-5288-8350>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.