Difference between revisions of "QGIS/C4/Interpolation/English-timed"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with " {|border=1 || '''Time''' || '''Narration''' |- || 00:01 || Welcome to this tutorial on '''Interpolation Methods''' in QGIS. |- || 00:07 || In this tutorial, we will learn ab...")
 
 
Line 159: Line 159:
 
|-
 
|-
 
|| 03:20
 
|| 03:20
|| In the '''Label with''' drop-down select '''Air_Pollut'''.
+
|| In the '''Label with''' drop-down, select '''Air underscore Pollut'''.
  
 
Scroll down.
 
Scroll down.
Line 177: Line 177:
 
|-
 
|-
 
|| 03:43
 
|| 03:43
|| Open the '''attribute''' table for '''Air Stations.shp layer.'''
+
|| Open the '''attribute''' table for '''Air Stations dot shp layer.'''
  
 
|-
 
|-
 
|| 03:49
 
|| 03:49
|| In the '''attribute''' table there are five columns.
+
|| In the '''attribute''' table '''Nitrogen Oxides''' levels for every station is given.
  
 
|-
 
|-
|| 03:53
+
|| 03:57
||In the 4th column, '''Nitrogen Oxides''' levels for every station is given.
+
 
+
|-
+
|| 04:00
+
 
|| We will '''interpolate Air Stations layer''' by the '''Nox attribute'''.
 
|| We will '''interpolate Air Stations layer''' by the '''Nox attribute'''.
  
 
|-
 
|-
|| 04:06
+
|| 04:03
 
||Here we will use '''IDW method''' for '''interpolation'''.
 
||Here we will use '''IDW method''' for '''interpolation'''.
  
Line 198: Line 194:
  
 
|-
 
|-
|| 04:14
+
|| 04:11
 
|| '''Inverse Distance Weighting''' method gives weights to sample points.
 
|| '''Inverse Distance Weighting''' method gives weights to sample points.
  
 
|-
 
|-
|| 04:20
+
|| 04:17
 
||It is used for '''interpolating''' data such as temperature, rainfall, population etc.
 
||It is used for '''interpolating''' data such as temperature, rainfall, population etc.
  
 
|-
 
|-
|| 04:29
+
|| 04:26
 
|| Back to the '''QGIS''' interface.
 
|| Back to the '''QGIS''' interface.
  
 
|-
 
|-
|| 04:32
+
|| 04:29
 
|| Click on the '''Raster''' menu.
 
|| Click on the '''Raster''' menu.
  
 
|-
 
|-
|| 04:35
+
|| 04:32
 
|| Click on the '''interpolation '''plugin.
 
|| Click on the '''interpolation '''plugin.
  
 
|-
 
|-
|| 04:38
+
|| 04:35
 
||'''Interpolation plugin''' dialog-box opens.
 
||'''Interpolation plugin''' dialog-box opens.
  
 
|-
 
|-
|| 04:42
+
|| 04:39
 
|| In the''' Input''' section,
 
|| In the''' Input''' section,
  
Line 228: Line 224:
  
 
|-
 
|-
|| 04:49
+
|| 04:46
 
||Here, by default, '''Air Stations layer''' is already selected.
 
||Here, by default, '''Air Stations layer''' is already selected.
  
 
|-
 
|-
|| 04:55
+
|| 04:52
 
|| Select '''Interpolation attribute''' as '''NOx'''.
 
|| Select '''Interpolation attribute''' as '''NOx'''.
  
 
|-
 
|-
|| 05:00
+
|| 04:57
 
|| Click on the '''Add '''Button.
 
|| Click on the '''Add '''Button.
  
 
|-
 
|-
|| 05:03
+
|| 05:00
||This will add '''Air Stations.shp layer''' with '''NOx''' attribute.
+
||This will add '''Air Stations dot shp layer''' with '''Nitrogen Oxide''' attribute.
  
 
|-
 
|-
|| 05:09
+
|| 05:06
 
||Select '''Points '''in the ''' Type'''drop-down.
 
||Select '''Points '''in the ''' Type'''drop-down.
  
Line 250: Line 246:
  
 
|-
 
|-
|| 05:17
+
|| 05:14
 
|| Go to the '''Output''' section.  
 
|| Go to the '''Output''' section.  
  
 
|-
 
|-
|| 05:20
+
|| 05:17
 
||Select '''Interpolation method''' as '''Inverse Distance Weighting'''.
 
||Select '''Interpolation method''' as '''Inverse Distance Weighting'''.
  
Line 260: Line 256:
  
 
|-
 
|-
|| 05:29
+
|| 05:26
 
|| Click on the three dots button next to '''Output file'''.
 
|| Click on the three dots button next to '''Output file'''.
  
 
|-
 
|-
|| 05:33
+
|| 05:30
||Save the output as an '''IDW_Stations''' in the desired folder.
+
||Save the output as an '''IDW underscore Stations''' in the desired folder.
  
 
I will save it on '''Desktop'''.
 
I will save it on '''Desktop'''.
  
 
|-
 
|-
|| 05:43
+
|| 05:40
 
|| Check, '''Add result to project''' if it is unchecked.
 
|| Check, '''Add result to project''' if it is unchecked.
  
 
|-
 
|-
|| 05:48
+
|| 05:45
 
|| Click on '''OK''' button.
 
|| Click on '''OK''' button.
  
 
|-
 
|-
|| 05:50
+
|| 05:47
 
|| The map with '''black''' and '''white''' areas will be displayed on the screen.
 
|| The map with '''black''' and '''white''' areas will be displayed on the screen.
  
 
|-
 
|-
|| 05:56
+
|| 05:53
 
||White areas represent high levels of '''Nitrogen Oxides'''.
 
||White areas represent high levels of '''Nitrogen Oxides'''.
  
 
|-
 
|-
|| 06:01
+
|| 05:58
 
|| Black areas represent low levels of '''Nitrogen Oxides'''.
 
|| Black areas represent low levels of '''Nitrogen Oxides'''.
  
 
|-
 
|-
|| 06:06
+
|| 06:03
 
|| For more clarity, we will change the symbology of the '''layer'''.
 
|| For more clarity, we will change the symbology of the '''layer'''.
  
 
|-
 
|-
|| 06:11
+
|| 06:08
 
|| Open '''Layer properties''' for the '''IDW layer'''.
 
|| Open '''Layer properties''' for the '''IDW layer'''.
  
 
|-
 
|-
|| 06:16
+
|| 06:13
 
|| From the left panel, click on the '''Style '''option.
 
|| From the left panel, click on the '''Style '''option.
  
 
|-
 
|-
|| 06:20
+
|| 06:17
 
||Select '''Render type''' as '''Single band Pseudocolor'''.  
 
||Select '''Render type''' as '''Single band Pseudocolor'''.  
  
 
|-
 
|-
|| 06:25
+
|| 06:22
 
|| Select '''Discrete''' from '''Interpolation''' drop-down.
 
|| Select '''Discrete''' from '''Interpolation''' drop-down.
  
 
|-
 
|-
|| 06:29
+
|| 06:26
 
||Choose '''Spectral''' from color drop-down. Check the '''Invert''' check-box.
 
||Choose '''Spectral''' from color drop-down. Check the '''Invert''' check-box.
  
 
|-
 
|-
|| 06:36
+
|| 06:33
 
|| Click on the '''Classify''' button.
 
|| Click on the '''Classify''' button.
  
 
|-
 
|-
|| 06:39
+
|| 06:36
 
||Leave all other settings as default.
 
||Leave all other settings as default.
  
 
|-
 
|-
|| 06:43
+
|| 06:40
 
||Click on '''Apply''' and '''OK''' button.
 
||Click on '''Apply''' and '''OK''' button.
  
 
|-
 
|-
|| 06:47
+
|| 06:44
 
|| Map with areas in '''Spectral''' colors is displayed on the canvas.
 
|| Map with areas in '''Spectral''' colors is displayed on the canvas.
  
 
|-
 
|-
|| 06:53
+
|| 06:50
 
||The red colored areas have high concentration of '''Nitrogen Oxides'''.
 
||The red colored areas have high concentration of '''Nitrogen Oxides'''.
  
 
|-
 
|-
|| 06:59
+
|| 06:56
 
||Blue areas have least concentration of '''Nitrogen Oxides'''.
 
||Blue areas have least concentration of '''Nitrogen Oxides'''.
  
 
|-
 
|-
|| 07:04
+
|| 07:01
 
|| Save the '''project''' using '''Save''' tool from the tool bar.
 
|| Save the '''project''' using '''Save''' tool from the tool bar.
  
 
|-
 
|-
|| 07:09
+
|| 07:06
 
||Give an appropriate name. Choose a convenient location.
 
||Give an appropriate name. Choose a convenient location.
  
 
|-
 
|-
|| 07:15
+
|| 07:12
 
||Click on '''Save''' button.
 
||Click on '''Save''' button.
  
 
|-
 
|-
|| 07:18
+
|| 07:15
 
|| Let us now learn about the '''Triangulated Irregular Network interpolation''' method.
 
|| Let us now learn about the '''Triangulated Irregular Network interpolation''' method.
  
 
|-
 
|-
|| 07:25
+
|| 07:22
 
||'''TIN '''is used to create a surface formed by triangles.
 
||'''TIN '''is used to create a surface formed by triangles.
  
 
|-
 
|-
|| 07:31
+
|| 07:28
 
||This is based on '''nearest neighbor point '''information.
 
||This is based on '''nearest neighbor point '''information.
  
 
|-
 
|-
|| 07:36
+
|| 07:33
 
||'''TIN '''method is commonly used for elevation data.
 
||'''TIN '''method is commonly used for elevation data.
  
 
|-
 
|-
|| 07:41
+
|| 07:38
 
|| Open a new '''QGIS''' window.
 
|| Open a new '''QGIS''' window.
  
Line 372: Line 368:
  
 
|-
 
|-
|| 07:48
+
|| 07:45
|| Use the '''Add Vector Layer''' tool to load '''Points.shp layer.'''
+
|| Use the '''Add Vector Layer''' tool to load '''Points dot shp layer.'''
  
 
|-
 
|-
|| 07:55
+
|| 07:52
 
||Open '''Attribute table''' of '''Points layer'''.
 
||Open '''Attribute table''' of '''Points layer'''.
  
 
|-
 
|-
|| 07:59
+
|| 07:56
 
|| Notice the '''Elevation''' data for each point feature.
 
|| Notice the '''Elevation''' data for each point feature.
  
 
|-
 
|-
|| 08:04
+
|| 08:01
 
|| Close the '''Attribute''' table.
 
|| Close the '''Attribute''' table.
  
 
|-
 
|-
|| 08:07
+
|| 08:04
 
|| Again open '''Interpolation window''' from '''Raster''' menu.
 
|| Again open '''Interpolation window''' from '''Raster''' menu.
  
 
|-
 
|-
|| 08:12
+
|| 08:09
 
|| In the''' Input''' section, select '''Points layer''' in the '''Vector layers''' drop-down.
 
|| In the''' Input''' section, select '''Points layer''' in the '''Vector layers''' drop-down.
  
Line 398: Line 394:
  
 
|-
 
|-
|| 08:23
+
|| 08:20
 
|| Click on '''Add''' button.
 
|| Click on '''Add''' button.
  
Line 404: Line 400:
  
 
|-
 
|-
|| 08:31
+
|| 08:28
 
||'''Points''' in '''Type''' drop-down is chosen automatically.
 
||'''Points''' in '''Type''' drop-down is chosen automatically.
  
Line 410: Line 406:
  
 
|-
 
|-
|| 08:37
+
|| 08:34
 
|| In the '''Output''' section, select '''Triangular interpolation''' as '''Interpolation method'''.
 
|| In the '''Output''' section, select '''Triangular interpolation''' as '''Interpolation method'''.
  
 
|-
 
|-
|| 08:44
+
|| 08:41
||Save the '''output''' file as '''TIN-Stations''' and click '''OK button.'''
+
||Save the '''output''' file as '''TIN-Stations''' and click on '''OK button.'''
  
 
|-
 
|-
|| 08:52
+
|| 08:49
 
|| Map showing '''triangulated interpolation''' appears on the canvas.
 
|| Map showing '''triangulated interpolation''' appears on the canvas.
  
 
|-
 
|-
|| 08:57
+
|| 08:54
 
|| Change the '''symbology''' for this '''layer'''.
 
|| Change the '''symbology''' for this '''layer'''.
  
 
|-
 
|-
|| 09:01
+
|| 08:58
 
||Follow the same steps as we did for '''IDW layer'''.
 
||Follow the same steps as we did for '''IDW layer'''.
  
 
|-
 
|-
|| 09:15
+
|| 09:12
 
|| The map is now displayed in '''Spectral''' colors.
 
|| The map is now displayed in '''Spectral''' colors.
  
Line 436: Line 432:
  
 
|-
 
|-
|| 09:24
+
|| 09:21
 
||Areas in blue represent low elevation.
 
||Areas in blue represent low elevation.
  
 
|-
 
|-
|| 09:28
+
|| 09:25
 
|| Save the maps using the '''Save''' tool on the toolbar.
 
|| Save the maps using the '''Save''' tool on the toolbar.
  
 
|-
 
|-
|| 09:33
+
|| 09:30
 
|| Let us summarize,
 
|| Let us summarize,
  
Line 450: Line 446:
  
 
|-
 
|-
|| 09:40
+
|| 09:37
 
|| '''Inverse Distance Weighting (IDW)''' and  '''Triangulated Irregular Network''' '''(TIN)'''
 
|| '''Inverse Distance Weighting (IDW)''' and  '''Triangulated Irregular Network''' '''(TIN)'''
 
|-
 
|-
|| 09:46
+
|| 09:43
 
|| For the assignment,
 
|| For the assignment,
  
Create '''IDW interpolated''' map for '''Air Stations layer''' with '''SO<sub>2 </sub>attribute'''.
+
Create '''IDW interpolated''' map for '''Air Stations layer''' with '''SO2  attribute'''.
  
 
|-
 
|-
|| 09:55
+
|| 09:52
 
|| Your map should look as shown here.
 
|| Your map should look as shown here.
  
 
|-
 
|-
|| 09:59
+
|| 09:56
 
|| This video summarizes the Spoken Tutorial project.
 
|| This video summarizes the Spoken Tutorial project.
  
Line 469: Line 465:
  
 
|-
 
|-
||10:06
+
||10:03
 
|| The spoken tutorial project team conducts workshops and gives certificates.  
 
|| The spoken tutorial project team conducts workshops and gives certificates.  
  
Line 475: Line 471:
  
 
|-
 
|-
|| 10:16
+
|| 10:13
 
|| Please post your timed queries in this forum.   
 
|| Please post your timed queries in this forum.   
  
 
|-
 
|-
|| 10:20
+
|| 10:17
 
|| The Spoken Tutorial project is funded by '''MHRD''' '''Government of India'''.
 
|| The Spoken Tutorial project is funded by '''MHRD''' '''Government of India'''.
  
This tutorial is contributed by Ambadas Maske from College of Engineering Pune.
+
This tutorial is contributed by Ambadas Maske from College of Engineering Pune, Snehalatha Kaliappan and Himanshi Karwanje from IIT Bombay.Thank you for joining.
 
+
Snehalatha Kaliappan and Himanshi Karwanje from IIT Bombay.Thank you for joining.
+
 
|-
 
|-
 
|}
 
|}

Latest revision as of 14:50, 22 December 2020

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 underscore 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 dot shp layer.
03:49 In the attribute table Nitrogen Oxides levels for every station is given.
03:57 We will interpolate Air Stations layer by the Nox attribute.
04:03 Here we will use IDW method for interpolation.

Close the attribute table.

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

Select Air Stations as option as the Vector layers.

04:46 Here, by default, Air Stations layer is already selected.
04:52 Select Interpolation attribute as NOx.
04:57 Click on the Add Button.
05:00 This will add Air Stations dot shp layer with Nitrogen Oxide attribute.
05:06 Select Points in the Typedrop-down.

Here Points is selected by default.

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

Leave all the settings as default.

05:26 Click on the three dots button next to Output file.
05:30 Save the output as an IDW underscore Stations in the desired folder.

I will save it on Desktop.

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

Click on New tool on the tool bar.

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

Select elevation as Interpolation attribute.

08:20 Click on Add button.

This will add Points layer with elevation attribute for interpolating.

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

Leave it as such.

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

Areas in red represent high elevation.

09:21 Areas in blue represent low elevation.
09:25 Save the maps using the Save tool on the toolbar.
09:30 Let us summarize,

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

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

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

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

Please download and watch it.

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

For more details please write to us.

10:13 Please post your timed queries in this forum.
10:17 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