Description Usage Arguments Details Value Author(s) Examples
This function pulls the list of stations (and related metadata), falling within a given bounding box, from the CEH National River Flow Archive website.
1 2 3 4 5 6 7 |
bbox |
this is a geographical bounding box (e.g. list(lon_min = -3.82, lon_max = -3.63, lat_min = 52.43, lat_max = 52.52)) |
column_name |
name of column to filter |
column_value |
string to search in column_name |
min_rec |
minimum number of recording years |
all |
if TRUE it returns all the available metadata. If FALSE, it returns only the following columns: id, name, river, hydrometricArea, operator, haName, catchmentArea, altitude, lat, lon. |
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.
tibble table containing the list of stations and related metadata
Claudia Vitolo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
# Retrieve all the stations in the network
x <- catalogue()
# Define a bounding box:
bbox <- list(lon_min=-3.82, lon_max=-3.63, lat_min=52.43, lat_max=52.52)
# Get stations within the bounding box
x <- catalogue(bbox)
# Get stations based on minimum catchment area
x <- catalogue(column_name = "catchment-area", column_value = 2000)
# Get stations based on minimum number of recording years
x <- catalogue(min_rec=30)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.