The function reads .AM files once these are in a local folder: these files contain information on annual maxima (AMAX) records extracted from the instantaneous river flow measurements. The function checks for the presence of any [AM Rejected] information and includes it in the output.
read_amax(station, loc_WinFapFiles = getwd())
NRFA station number(s) for which the .AM file (named station.AM
) should be read.
the file.path of the WINFAP files, i.e. the location in which the
station.AM
file can be found. Default is the working directory
a data.frame with information on the annual maxima for the station with the following columns
NRFA station number (can be a vector of station numbers)
the correct water year for the peak flow
date of maximum flow
the maximum flow in m3/s
the stage (height) reached by the river - this information is used to derive the flow via a rating curve
logical, if TRUE the water year has been flagged as rejected by the NRFA
Information on the .AM files and river flow gauging in the UK can be found at the National River Flow Archive website https://nrfa.ceh.ac.uk