Tutorial Interpolation in QGIS
Tutorial Interpolation in QGIS
Tutorial Interpolation in QGIS
MICHELETTI Álvaro
How to do it:
- Click on Interpolation
- Choose the variable that is to be interpolated
- Choose P (not applicable for TIN)
- Set “extension” to be equal to the layer that contains the variable being interpolated
- Determine the size of the pixels present in the data
- Run
To calculate the RMSE (quality indicator of the predictions of the interpolation) you take the
square root of sum of the squares of the differences of the observations and the interpolations,
divided by N. That is:
You can do this in QGIS by creating a new variable in the layer with the observations used
for testing (obs.: the interpolation is created using a dataset, and then other observations not
used for fitting the interpolation are used to check the error between them and the
interpolated values. These are called the training values and the test values).
You do this in the field calculator, by creating a new variable defined by the squared
difference of the test observations and the interpolated values (the variables are in the “Fields
and Values” field in the menu on the bottom right, and you input the formula in the prompt in
the bottom left).
Afterwards, you can use the menu on the right of QGIS to ask for the statistics of the layer,
get the average of the variable you just created and get its square root to obtain the RMSE.
The smaller it is, the better fitting the interpolation is.
Interpolate by Kriging
Kriging → It’s a method that uses a limited set of sampled data points to estimate the value of
a variable over a continuous spatial field.
- Save your project in a working directory, where you’ll find the outputs of Smart-Map
- Open your data on Smart-Map and specify the input layer and the attribute that you
want to interpolate, click on “Import”