Learn R Programming

rnrfa (version 0.4.3)

catalogue: List of stations from UK NRFA

Description

This function pulls the list of stations (and related metadata), falling within a given bounding box, from the CEH National River Flow Archive website.

Usage

catalogue(bbox = NULL, metadataColumn = NULL, entryValue = NULL,
  minRec = NULL, verbose = FALSE)

Arguments

bbox
this is a geographical bounding box (e.g. list(lonMin=-3.82, lonMax=-3.63, latMin=52.43, latMax=52.52))
metadataColumn
name of column to filter
entryValue
string to search in metadataColumn#'
minRec
minimum number of recording years
verbose
if TRUE prints warning messages

Value

  • data.frame with list of stations and related metadata

Details

coordinates of bounding box are required in WGS84 (EPSG: 4326). If BB coordinates are missing, the function returns the list corresponding to the maximum extent of the network.

Offline you can browse the cached version running the command data(stationSummary)

Examples

Run this code
# Retrieve all the stations in the network
# x <- catalogue()

# Define a bounding box:
bbox <- list(lonMin=-3.82, lonMax=-3.63, latMin=52.43, latMax=52.52)
# Get stations within the bounding box
x <- catalogue(bbox)

# Get stations based on minimum number of recording years
# x <- catalogue(minRec=30)

Run the code above in your browser using DataLab