An introduction to work with remote sensing data in QGIS.
We are using the Semi-Automatic Classification Plugin.
- Basics in remote sensing
- Basics in QGIS
- What is GIS, and why use QGIS? (5 min) or the
- QGIS for Absolute Beginners (30 min)
- QGIS 3.10 or higher
- If you need QGIS you can download QGIS 3.16 Long Term Release here
- If you need QGIS you can download QGIS 3.16 Long Term Release here
- Account for the Copernicus Open Access Hub
- If you need an account you can register here
Hint: To ease the installation of the requirements use ANACONDA.
Create an environment i.e. with the name rs4gis and install
- python 3.8,
- Numpy,
- SciPy,
- Matplotlib and
- QGIS
Using GIS and Remote Sensing tools to proof why the World Heritage Site Abu Mena is in Danger
Background knowledge: To be part of the World Heritage List, sites must be of outstanding universal value. The List of World Heritage in Danger is designed to inform the international community of conditions which threaten the very characteristics for which a property was inscribed on the World Heritage List, and to encourage corrective action.
- Install the Semi-Automatic Classification Plugin for QGIS
- Download Sentinel-2 data
- Preprocess the Sentinel-2 data
- Calculate NDVI & NDWI
- Perform an image classification
The Semi-Automatic Classification Plugin (SCP) is a free open source plugin for QGIS that allows supervised classifications of remote sensing data and offer functionalities to download, pre- and postprocesss imagery.
The overall objective of SCP is to provide a set of functions for raster processing to enable an automatic workflow and ease generation of land cover classifications, especially for beginners of remote sensing methods (Congedo Luca 2020).
Search and download is available for ASTER, GOES, Landsat, MODIS, Sentinel-1, Sentinel-2, and Sentinel-3 images. Several algorithms are available for the land cover classification. The SCP requires the installation of GDAL, OGR, Numpy, SciPy and Matplotlib. Some tools i.e. the Random Forest classifier require also the installation of ESA's SNAP (Congedo 2020).
Congedo Luca (2020). Semi-Automatic Classification Plugin Documentation. DOI: http://dx.doi.org/10.13140/RG.2.2.25480.65286/1
- Install the Semi-Automatic Classification Plugin for QGIS
- Download Sentinel-2 data
- Preprocess the Sentinel-2 data
- Calculate NDVI & NDWI
- Perform an image classification
Open this video in a new tab (30 sec) and follow the instructions to install the SCP plugin.
- After installing the SCP take care that the plugin is activated.
- Start to open the Download products tab of the SCP with
- I. Login data
- II. Search
- III. Download options
Login Sentinels
Service: https://scihub.copernicus.eu/apihub
User & Passwor: Your personal account
Hint: Select an appropriate Sentinel-2 scene i.e. the Abu Mena image from 6 April 2021
- the check boxes of all Sentinel-2 bands need to be activated
To update the Single band list click on
Now the layers of the QGIS project are visible in the Single band list
Highligth the Sentinel-2 bands and add it to the Band set definition with
- The Band set 1 now includes the Senintel-2 bands.
- Set the correct satellite setting to the band list via Wavelength quick settings
- To create a band set check the "Create raster of bands (stack bands)" option within the Band set tools
The Normalized Difference Vegetation Index (NDVI) is an indicator of healthy vegetation and thus closely linked to vegetation density and productivity (Tucker & Sellers 1986). The NDVI is calculated using the spectral reflectance measurements of the red and infrared (NIR) wavelength and can range from -1 to +1.
NDVI = ( NIR – red ) / ( NIR + red )
The Normalized Difference Water Index (NDWI) is sensitive to the water content of vegetation and is similar to the NDVI. High NDWI values indicate a high water content of the vegetation. (Gao, B.C., Remote Sensing of the Environment, p.257(1996)). For Sentinel-2 data the NDWI needs Band 8 (NIR) and Band 12 (MIR). or the The NDWI results from the following equation:
NDWI = ( NIR - MIR ) / ( NIR + MIR )
To calculate a spectral index with the SCP use the
To update the Band list click on
- With double click you can add a band to the expression field
- On the lower rigth side are the operators, i.e. +
- Set the Extent to Same as one of the used bands
- Use the formula above to calculate the NDVI & NDWI
The SCP offers a set of useful tools during the classification process, i.e. the preview.
The video below will show you how to classify a satellite image. This includes:
- Create training data
- Show spectral signature
- Preview the classification and compare different classifiers
- Classify the image