View source: R/read_waterdata.R
read_waterdata | R Documentation |
Function that allows complex CQL queries. See https://api.waterdata.usgs.gov/docs/ogcapi/complex-queries/ for more information.
read_waterdata(service, CQL, ..., convertType = TRUE)
service |
character, can be any existing collection such as "daily", "monitoring-locations", "time-series-metadata" |
CQL |
A string in a Common Query Language format. |
... |
Additional arguments to send to the request. |
convertType |
logical, defaults to |
cql <- '{
"op": "and",
"args": [
{
"op": "in",
"args": [
{ "property": "parameter_code" },
[ "00060", "00065" ]
]
},
{
"op": "in",
"args": [
{ "property": "monitoring_location_id" },
[ "USGS-07367300", "USGS-03277200" ]
]
}
]
}'
dv_data <- read_waterdata(service = "daily",
CQL = cql,
time = c("2023-01-01", "2024-01-01"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.