Learn R Programming

hddtools (version 0.3.0)

catalogueSEPA: Interface for the SEPA database catalogue

Description

This function provides an unofficial SEPA database catalogue of river level data (available from http://pennine.ddns.me.uk/riverlevels/ConciseList.html) containing info for 1752 stations. Some are NRFA stations.

Usage

catalogueSEPA(bbox = NULL, metadataColumn = NULL, entryValue = NULL, verbose = FALSE)

Arguments

bbox
bounding box, a list made of 4 elements: minimum longitude (lonMin), minimum latitude (latMin), maximum longitude (lonMax), maximum latitude (latMax)
metadataColumn
name of the column to filter
entryValue
value to look for in the column named metadataColumn
verbose
if TRUE it returns whether the data is coming from live or cached data sources

Value

This function returns a data frame made of 9 columns: "idNRFA","aspxpage" , "stationId", "River", "Location", "GridRef", "Operator", "CatchmentArea(km2)" and "note". Column idNRFA shows the National River Flow Archive station id. Column "aspxpage" returns the Environment Agency gauges id. The column "stationId" is the id number used by SEPA. Use these id numbers to retrieve the time series of water levels.

Examples

Run this code
## Not run: 
#   # Retrieve the whole catalogue
#   x <- catalogueSEPA()
# ## End(Not run)

Run the code above in your browser using DataLab