Remark that this function is specifically to extract the precipitation (RH) data, coordinates are extracted from the header of the KNMI data file

read_knmi_data(filename, n_max = Inf)

Arguments

filename

path/filename of the KNMI datafile

n_max

integer; shortcut for testing, loading just a section of the data

Value

data.frame with the headers location_name, datetime (UTC), value, unit, variable_name, latitude, longitude and source_filename

Examples

if (FALSE) {
# see vignettes for more examples
file_path <- "knmi_file.txt"
knmi_data <- read_knmi_data(file_path)
}