View source: R/knmi_historic_data.R
| knmi_historic_data | R Documentation |
This function retrieves historic hourly weather data collected by official
KNMI weather stations. See knmi_stations for the station
metadata included in this package.
knmi_historic_data(
startyear,
endyear,
stations = NULL,
progress = interactive()
)
startyear, endyear |
Start and end year for the historic weather data. Both must be single whole years. KNMI hourly data is available from 1951. |
stations |
Optional station IDs to download. The default,
|
progress |
Should a progress bar be shown? Defaults to
|
The returned data frame contains the following columns:
station = ID of measurement station;
date = Date;
FH = Hourly mean wind speed (in 0.1 m/s);
FX = Maximum wind gust (in 0.1 m/s) during the hourly division;
DR = Precipitation duration (in 0.1 hour) during the hourly division;
RH = Hourly precipitation amount (in 0.1 mm) (-1 for <0.05 mm);
city = City where the measurement station is located;
lon = Longitude of station (EPSG:4326);
lat = Latitude of station (EPSG:4326).
The data is downloaded from KNMI when the function is called. This requires an internet connection and may take some time when many stations or years are requested.
Data frame containing weather data and metadata for weather station locations.
Martin Haringa
## Not run:
knmi_historic_data(2015, 2019, stations = c(260, 280))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.