This code is a part of the quality control work of physical structure elevation values in the hydrological groundwater monitoring network of the Finnish Environment Institute. Thoroughly verifying and updating the existing elevation values is required to set a reliable standard to the data produced by the network. The code utilises precise field measurements of the structures, as well as national elevation datasets to verify the current coordinate and elevation values of the structures in the database. The national elevation datasets are KM2 and lidar 5p/m2, both provided by the National Land Survey of Finland. Confidence intervals of the elevation sources are also evaluated based on the precise field measurements. New elevation values are proposed to replace database values if multiple sources suggest a new value, with the database value outside of the confidence intervals of the other sources.
The code has been developed by Pietari Pöykkö for his Master's thesis for the University of Oulu, while employed at the Finnish Environment Institute. The Finnish Environment Institute holds the copyright to this software project. See LICENSE for more.
The funding for this project has come from Maa- ja vesitekniikan tuki ry, through the POVEMU project of the Finnish Environment Institute.
The core of the script is in 00-base.Rmd
, which can be run using RStudio. Supporting functions and sub-tasks of the script are located in the folder /R/
.
For optimal functionality, the code requires internet access, access to the groundwater database of the Finnish Environment Institute, as well as access to the full lidar dataset. Most of the source data used for this project cannot be provided due to restricted access, but some of it is openly available from the respective sources. The dependencies of the project are listed at the start of the code, as well as in DESCRIPTION. The required missing CRAN packages should get installed automatically if the script is run.
The language used in this code project changes between Finnish and English. Originally, the thesis and the project was planned to be entirely in Finnish, but the thesis was decided to be written in English. The code has not been fully translated due to time constraints.
The code has been created for data-analysis, where the results will be primarily utilised once, by uploading the proposed new elevations to the database. Thus, streamlining and optimising the code has not been the priority, although some performance re-writes were required to speed up the process of creating DTMs from the lidar data.