Learn R Programming

rnrfa (version 0.1.0)

GetStationSummary: 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

GetStationSummary(lonMin = -10, lonMax = 10, latMin = 48, latMax = 62,
  metadataColumn = NULL, entryValue = NULL, minRec = NULL)

Arguments

lonMin
Minimum latitude of bounding box
lonMax
Maximum latitude of bounding box
latMin
Minimum longitude of bounding box
latMax
Maximum longitude of bounding box
metadataColumn
name of column to filter
entryValue
string to search in metadataColumn#'
minRec
minimum number of recording years

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
x <- GetStationSummary() # this returns all the stations in the network
x <- GetStationSummary(lonMin=-1, lonMax=1, latMin=49, latMax=51) # this returns 31 stations

Run the code above in your browser using DataLab