Extracts NRFA data using the API.
GetNRFA(ID, Type = "Q")
A data.frame with date in the first columns and variable/s of interest in the remaining column/s.
ID number of the gauge of interest.
Type of data required. One of "Q", "P", "PQ", "Gaugings", "AMAX", "POT", or "Catalogue".
Anthony Hammond
The function can be used to get daily catchment rainfall or mean flow, or both together (concurrent). It can also be used to get gaugings, AMAX, and POT data. Note that the AMAX has rejected years included (check the gauge on the associated NRFA web page for details). Lastly if Type = "Catalogue" it will return a dataframe of all the NRFA gauges associated details and descriptors.
#Get the concurrent rainfall and mean flow series for the Tay at Ballathie (site 15006).
if (FALSE) BallathiePQ <- GetNRFA(15006, "PQ")
#Now we'll get the gaugings
if (FALSE) BallathieGaugings <- GetNRFA(15006, "Gaugings")
Run the code above in your browser using DataLab