A package to access KNMI data within R.
Please, if there are any issues of any kind, file an issue here.
The data can be downloaded ususally in the following scheme Dataset(var, location, period, ...)
. The location
can have the following forms:
integer
identifying the station (in the case of station data)SpatialPoint
closest station (grid box) time series in the case of station (gridded) dataSpatialPolygon
(or bbox
) all stations (grid boxes, events in case of irregular data) in the given spatial extentThe period
is to follow the xts
form, e.g. "2010/2015"
for all data in the years 2010-2015.
To use this data please cite Buishand et al. (2013): Homogeneity of precipitation series in the Netherlands and their trends in the past century. At the moment the data are obtained via the KNMI climate explorer.
HomogenPrecip(550, "1910/2015")
obtains the homogenized preciptiation data for the station with stationId 550 for the period 1910 - 2015. The available stations are reported in the data.frame stationMetaData. From this we can see that stationId 550 belongs to De Bilt. With an object area
(extending SpatialPolygons
) we can get all precipitation data in the given area, using HomogenPrecip(area, "1910/2015")
.
Earthquakes("induced")
provides all induced earthquakes from the KNMI earthquake catalogue. Natural, i.e. tectonic
quakes, are also available. The data can be restricted to a specific area (extending SpatialPolygons
) and a specific period. For instance Earthquakes("induced", Groningen, "2015/2016")
obtaines all induced earthquakes for the Groningen reservoir (is shipped with the package) in the years 2015 and 2016. At the moment the earthquake data are obtained via KNMI Aardbevingscatalogus.