Learn R Programming

rnrfa (version 0.3.0)

NRFA_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

NRFA_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.

Examples

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

# Define a bounding box:
# bbox <- list(lonMin=-3.82, lonMax=-3.63, latMin=52.43, latMax=52.52)
# x <- NRFA_Catalogue(bbox) # this returns 9 stations
# x <- NRFA_Catalogue(minRec=30) # this returns 1048 stations

Run the code above in your browser using DataLab