Description Usage Arguments Details Value Author(s) Examples
get_station_list
queries Water Data Online and returns station details.
Queries can be input with the desired parameter_type
to find all the
stations on record. If you already have a vector of station numbers, you can
pass the vector to station_number
and return the details of those
stations.
return_fields
can be customised to return various data about the stations.
1 | get_station_list(parameter_type, station_number, bbox, return_fields)
|
parameter_type |
The parameter for the station request (e.g. Water Course Discharge, Storage Level) |
station_number |
Optional: a single or multiple vector of AWRC station numbers. |
bbox |
Optional: a bounding box to get stations in a region of interest. Takes a vector ordered xmin, ymin, xmax, ymax. |
return_fields |
Station details to be returned. By default the columns returned are station name, number, ID, latitude and longitude. Can be customised with a vector of parameters. |
Possible return fields for get_station_list()
are:
station_name
station_longname
station_no
station_id
station_latitude
station_longitude
station_carteasting
station_cartnorthing
stationparameter_name
station_georefsystem
catchment_no
catchment_id
catchment_name
site_no
site_id
site_name
parametertype_id
parametertype_name
object_type
custom_attributes
With the default return fields, a tibble with columns station_name, station_no, station_id, station_latitude, station_longitude.
Alexander Buzacott
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | # Get all Water Course Discharge Stations
## Not run:
get_station_list()
## End(Not run)
# Just the details for Cotter River at Gingera
## Not run:
get_station_list(station_number = "410730")
## End(Not run)
# Rainfall stations
## Not run:
get_station_list(parameter_type = "Rainfall")
## End(Not run)
# Vector of return_fields
return_fields <- c(
"station_name",
"station_longname",
"station_no",
"station_id",
"station_latitude",
"station_longitude",
"station_carteasting",
"station_cartnorthing",
"stationparameter_name",
"station_georefsystem",
"catchment_no",
"catchment_id",
"catchment_name",
"site_no",
"site_id",
"site_name",
"parametertype_id",
"parametertype_name",
"object_type",
"custom_attributes"
)
# Get all attributes for one station
## Not run:
get_station_list("Water Course Discharge", "410730", return_fields)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.