Learn R Programming

dataRetrieval (version 2.7.11)

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

Run this code
# NOT RUN {
site1 <- whatWQPdata(siteid="USGS-01594440")

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

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

Run the code above in your browser using DataLab