QGIS/C4/Interpolation/English-timed

From Script | Spoken-Tutorial
Revision as of 11:03, 15 September 2020 by PoojaMoolya (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time Narration
00:01 Welcome to this tutorial on Interpolation Methods in QGIS.
00:07 In this tutorial, we will learn about Interpolation methods.
00:12 Inverse Distance Weighting (IDW) and

Triangulated Irregular Network (TIN)

00:18 Here I am using

Ubuntu Linux OS version 16.04

00:24 QGIS version 2.18
00:28 To follow this tutorial you should be familiar with QGIS interface.
00:34 For the prerequisite tutorials in this series, please visit this website.
00:40 Data files required for this tutorial are provided in the Code files link.
00:46 Please download and extract the contents of the folder.
00:51 I have saved this folder on the Desktop.

Double-click on the folder to open it.

00:59 Locate Air Stations.shp in the extracted folder.
01:04 This file shows meteorological stations located in Maharashtra.
01:10 Interpolation is a method to create continuous surface from discrete points.
01:17 Two methods of interpolation are available in QGIS.
01:22 Inverse Distance Weighting (IDW) and Triangulated Irregular Network (TIN)
01:28 Interpolation Plugin is used to create interpolated raster from Point layer.
01:35 Open the QGIS interface.
01:38 Here I have opened the QGIS interface.
01:43 Enable the interpolation plugin using Plugins menu as shown here.
01:49 Check the check-box for Interpolation plugin.

Close the dialog-box.

01:56 Open the Raster menu.
01:59 Interpolation option is now added in the Raster menu.
02:04 Click on Add Vector Layer tool. Add vector layer dialog-box opens.
02:11 Click on Browse button and navigate to Code files folder.

Here we will select two files.

02:20 Select AirStations.shp file.
02:24 Hold the Ctrl key on the keyboard and click on MH_Districts.shp.
02:32 Click on the Open button.
02:35 Click on Open button on the Add vector layer dialog-box.
02:40 On the canvas we see map of Maharashtra state.
02:45 Locations of Air stations in each district are shown as point features.
02:52 Let us label these point features.
02:56 Right click on the Air Stations layer.
03:00 Click on Properties option to open Layer Properties dialog box.
03:06 Select the Labels option located on the left panel.
03:11 Click on the drop-down located at the top.
03:15 Select Show labels for this layer from the drop-down.
03:20 In the Label with drop-down select Air_Pollut.

Scroll down.

03:28 Here you will find various options to modify the label style.
03:33 Choose the required style and click on OK button.
03:38 On the canvas, points with the labels will be displayed.
03:43 Open the attribute table for Air Stations.shp layer.
03:49 In the attribute table there are five columns.
03:53 In the 4th column, Nitrogen Oxides levels for every station is given.
04:00 We will interpolate Air Stations layer by the Nox attribute.
04:06 Here we will use IDW method for interpolation.

Close the attribute table.

04:14 Inverse Distance Weighting method gives weights to sample points.
04:20 It is used for interpolating data such as temperature, rainfall, population etc.
04:29 Back to the QGIS interface.
04:32 Click on the Raster menu.
04:35 Click on the interpolation plugin.
04:38 Interpolation plugin dialog-box opens.
04:42 In the Input section,

Select Air Stations as option as the Vector layers.

04:49 Here, by default, Air Stations layer is already selected.
04:55 Select Interpolation attribute as NOx.
05:00 Click on the Add Button.
05:03 This will add Air Stations.shp layer with NOx attribute.
05:09 Select Points in the Typedrop-down.

Here Points is selected by default.

05:17 Go to the Output section.
05:20 Select Interpolation method as Inverse Distance Weighting.

Leave all the settings as default.

05:29 Click on the three dots button next to Output file.
05:33 Save the output as an IDW_Stations in the desired folder.

I will save it on Desktop.

05:43 Check, Add result to project if it is unchecked.
05:48 Click on OK button.
05:50 The map with black and white areas will be displayed on the screen.
05:56 White areas represent high levels of Nitrogen Oxides.
06:01 Black areas represent low levels of Nitrogen Oxides.
06:06 For more clarity, we will change the symbology of the layer.
06:11 Open Layer properties for the IDW layer.
06:16 From the left panel, click on the Style option.
06:20 Select Render type as Single band Pseudocolor.
06:25 Select Discrete from Interpolation drop-down.
06:29 Choose Spectral from color drop-down. Check the Invert check-box.
06:36 Click on the Classify button.
06:39 Leave all other settings as default.
06:43 Click on Apply and OK button.
06:47 Map with areas in Spectral colors is displayed on the canvas.
06:53 The red colored areas have high concentration of Nitrogen Oxides.
06:59 Blue areas have least concentration of Nitrogen Oxides.
07:04 Save the project using Save tool from the tool bar.
07:09 Give an appropriate name. Choose a convenient location.
07:15 Click on Save button.
07:18 Let us now learn about the Triangulated Irregular Network interpolation method.
07:25 TIN is used to create a surface formed by triangles.
07:31 This is based on nearest neighbor point information.
07:36 TIN method is commonly used for elevation data.
07:41 Open a new QGIS window.

Click on New tool on the tool bar.

07:48 Use the Add Vector Layer tool to load Points.shp layer.
07:55 Open Attribute table of Points layer.
07:59 Notice the Elevation data for each point feature.
08:04 Close the Attribute table.
08:07 Again open Interpolation window from Raster menu.
08:12 In the Input section, select Points layer in the Vector layers drop-down.

Select elevation as Interpolation attribute.

08:23 Click on Add button.

This will add Points layer with elevation attribute for interpolating.

08:31 Points in Type drop-down is chosen automatically.

Leave it as such.

08:37 In the Output section, select Triangular interpolation as Interpolation method.
08:44 Save the output file as TIN-Stations and click OK button.
08:52 Map showing triangulated interpolation appears on the canvas.
08:57 Change the symbology for this layer.
09:01 Follow the same steps as we did for IDW layer.
09:15 The map is now displayed in Spectral colors.

Areas in red represent high elevation.

09:24 Areas in blue represent low elevation.
09:28 Save the maps using the Save tool on the toolbar.
09:33 Let us summarize,

In this tutorial we have learnt about two methods of Interpolation.

09:40 Inverse Distance Weighting (IDW) and Triangulated Irregular Network (TIN)
09:46 For the assignment,

Create IDW interpolated map for Air Stations layer with SO2 attribute.

09:55 Your map should look as shown here.
09:59 This video summarizes the Spoken Tutorial project.

Please download and watch it.

10:06 The spoken tutorial project team conducts workshops and gives certificates.

For more details please write to us.

10:16 Please post your timed queries in this forum.
10:20 The Spoken Tutorial project is funded by MHRD Government of India.

This tutorial is contributed by Ambadas Maske from College of Engineering Pune.

Snehalatha Kaliappan and Himanshi Karwanje from IIT Bombay.Thank you for joining.

Contributors and Content Editors

PoojaMoolya