Professional Documents
Culture Documents
Plugin
Flooding is the 'overflowing of the normal confines of a stream or other body of
water, or the accumulation of water over areas that are not normally
submerged' (IPCC, 2012: Managing the Risks of Extreme Events and Disasters to Advance Climate
Change Adaptation. A Special Report of Working Groups I and II of the Intergovernmental Panel on
Climate
Change).
Before starting this tutorial, if using the Semi-Automatic Classification Plugin for
the first time, please follow the basic tutorial here.
We are going to classify a Landsat 8 image acquired on 17/05/2013 (before the
flood) and a Landsat 8 image acquired on 24/10/2013 (after the flood), in order to
assess the land cover change using a semi-automatic approach.
Download the Landsat image before the flood from here and the Landsat image
after the flood from here (images available from the U.S. Geological
Survey). Landsat 8 image includes the bands described in this table (each band
is a single 16 bit raster).
Band ID
1
2
3
4
5
6
Spectral Range
Blue
Green
Red
Near-Infrared
Short Wavelength Infrared 1
Short Wavelength Infrared 2
The conversion of raster bands to surface reflectance, performing the imagebased atmospheric correction using the DOS1 method, aims to improve the
classification results.
Steps:
At the end of the process, converted bands are loaded in QGIS; also, a
virtual raster named landsat.vrt is loaded (containing all the Landsat
bands converted to reflectance);
Select the Landsat virtual raster, left click and open its properties;
in Style select band 4 (i.e. Near-Infrared) for the red band, band 3 (i.e.
Red) for the green band, and band 2 (i.e. Green) for the blue band, and
click OK (if the image appear black, click the button Load cumulative
cut stretch in the Raster toolbar of QGIS).
Select the Landsat virtual raster as input image; we must however define
the band center wavelength in the Band set tab. As you can see, it is not
possible to move the bands (they are already ordered), therefore we just
need to select the Landsat 8 item under Quick wavelength settings;
Define the training shapefile (for the ROI collection), and the signature list
file (which stores the spectral signatures calculated from ROIs or imported
from other sources) as described here (step 2);
In the dock ROI creation click the button + beside Create a ROI and
then click a water area (blue/cyan pixels);
Under ROI Signature definition type a brief description of the
ROI inside
the
field Class
Information and Macroclass
Information, and assign a Macroclass ID and Class ID;
In order to save the ROI to the training shapefile click the button Save ROI
to shapefile; if the checkbox Add sig. list is checked, then the
spectral signature is added to the Signature list table;
Define the class color with a double click on the Color column in
the Signature list.
It is important to collect ROIs of dark water and light water, as in the following
images.
between the spectral signatures thereof and the spectral signatures collected in
the previous step is below the threshold value.
We need to find the maximum threshold value that allows for the identification
of all the water in the image. However, if the threshold value is too high then nonwater pixels are going to be incorrectly classified as water.
Steps:
In
the
dock Classification,
under Classification
preview set Size = 500; check Use Macroclass ID, and select
the Spectral
Angle
Mapping algorithm;
under Threshold type 10 and click the button + and then click on the
image; after a few seconds, the classification preview will be displayed;
Classification preview
Classification of water
You can download the classification along with the ROIs and Spectral signature
file
from here.
the
button Perform
to
save
the
output
Select
the classification_before.tif as reference
classification, and
select classification_after.tif as new
classification; click the button Calculate
land
cover
change; select where to save the land cover change raster (in
addition, a file .csv will be saved in the same directory, containing
the statistics of the classes of change);