The practical will introduce you to digital elevation models (DEMs) - a key data model for any applications which are concerned with the surface of the Earth. Obvious applications areas include physical geography and environmental sciences, more specifilcilly erosion monitoring, hydrological modelling or civil engineering. The Ordnance Survey of Great Britain (OSGB) provides a free DEM for the whole of GB with a 50m spatial resolution. In other words, each cell in the grid covers an area of 50 metres by 50 metres. The data are provided as tiles of 10km by 10km and in this practical you will work with one of these tiles. The product is called OS Terrain 50 and more information about it is provided here:
https://beta.ordnancesurvey.co.uk/products/os-terrain-50
OS OpenData (of which this DEM is part) is licensed under the Open
Government Licence (OLG) which allows you to use the OS OpenData
datasets in any way and for any purpose. The OS ask that you acknowledge
them with
"Contains OS data @ Crown Copyright and database right 2024"
.
This text must be added to the caption for all of the maps you create
using the DEM provided.
In this practical you are tasked with analysing the form of the terrain in the study area. You will be developing the following GIS skills and understanding:
As in the previous GIS exercises, you will utilise QGIS. You will be using the software to map and to analyse a topographic surface. The surface is represented using a grid (raster) of elevation values and this is referred to as a digital elevation model (DEM). You will submit an assignment which includes three maps and some text (maximum 250 words), which summarises your findings following guidance provided at the end of this document.
There are two key tasks which you should undertake:
1. Create a map of (i) slope, (ii) surface roughness and (iii) areas
with larger slope and small roughness values
2. Write a 250 word summary that describes the key characteristics of
your maps
Geographical Information Systems (GIS) are powerful sets of tools for collecting, sorting, retrieving, transforming and displaying spatial data. GIS systems store information using spatial reference points. They are similar to other databases consisting of records but the records are referenced to digital mapping reference points or objects. There are two main ways of expressing spatial data:
Vector Data - these reference points or objects come in three discrete forms: a single point (e.g. a mountain summit, pollution sources), a line or vector (e.g. a narrow river, cliffs), or an area or polygon (e.g. a county or state, lakes). Vector data represents geographic features with lines, points, and polygons.
Raster Data - such as images and grids. Raster data involves dividing an area into discrete squares called cells. Cells are laid out in a grid, where each cell has a location relative to the origin and a value describing the feature being observed (for instance, the cell values in an aerial photograph represent the amount of light reflecting off the earth’s surface. A raster can represent: thematic data such as land use, temperature, and elevation; spectral data such as satellite images and aerial photographs; and, pictures such as scanned maps and building photographs.
The data are available on Canvas under GIS > Practical 3 > GIS 3 data
Create a new data directory (e.g., M:) and copy the data into that directory.
Unzip the data by:
Windows: (select the file (GIS3data.zip) right click > Extract All and specify the output folder).
Mac: Double tap the folder to extract. The unzipped folder will have the same name as the zipped folder and be placed in the same directory folder
Save your QGIS project into M:: Project > Save
as and specify GIS3 as the name. You should save the project
regularly (Project > Save, or click as you progress through the exercise.
First, open QGIS Desktop.
To open the data, go to Layer > Add Layer > Add Raster Layer navigate to your working directory and double click on the file SH65.asc, then click the Add > Close buttons
NOTE: If a new window pops up asking to Select Transformation for SH65, click Cancel
- Alternatively you can drag and drop the file to the Layers
Panel
You will see that the black is used to depict the lowest elevations
and white the highest. The DEM you are working with covers part of the
Ordnance Survey tile SH and it contains the summit of Snowdon in North
Wales. Note that the coordinates corresponding to the position of the
mouse cursor change as you move the mouse. The summit of Snowdon is at
approximately 260986, 354375 (the units are metres).
————————————————–
Ordnance Survey National Grid System
The position of any point in Great Britain can be described by its
National Grid reference. National Grid co-ordinates are expressed as
distances measured in metres east and north from the grid origin (which
is located to the west of the Isles of Scilly). These grid references
are also used to identify individual Ordnance Survey maps and DIGIMAP
data files. For example, a point could be described by grid reference SJ
46732 68791. An area could be covered by data files SJ46. The National
Grid is divided into 100 km x 100 km squares, each identified by two
letters. If you look at the map to the right, you will see that Snowdon
is in square SH (See Lecture 2 - part 1).
This Ordnance Survey grid system is integral to the QGIS package, although it is capable of interchanging between many different project and co-ordinate systems.
Next, you will change from the greyscale scheme to one using a range of colours.
Now you can see that reds are used for low elevations (min 53.4) and blues for large elevations (max 1080.5).
Note that, often, QGIS specifies the minimum and maximum in the colour scheme as just above the true minimum (2% of the way through the values ordered from minimum to maximum) and just below the true maximum (98%).
Maps of terrain slope (or gradient) and aspect (the direction faced by the slope - e.g., a slope could be north-facing) are used in many applications from route-finding to erosion and hydrological modelling. In this part of the exercise, you will compute slope and aspect maps.
QGIS provides a host of tools for the analysis of DEMs.
First, you will compute a slope map. To do this:
Click on Slope choose SH65
as your
Input layer, check the box next to Slope expressed as percent
instead degrees. Note that slope can be specified in percent or
degrees, but in this exercise we use percent, but if you wish to compute
degrees, then you can do that too;
Then click on the browse button and make sure that your data
folder is specified as your working directory.
In the File name box type SH65slope
, then click
Save
Click Run.
Note: If you didn’t save the newly computed Slope to your working directory, the file will be temporary. You can work with it, but it will be lost once you close your GIS project.
Close the Finished window and the qgis-bin window, if it appears.
Next, as you did for the DEM (that is, the elevation values in SH65), assign colours to the slope values (again using the Singleband pseudocolor option) and make them visible in the Layers Panel.
The gradual slopes should appear in red and the steep slopes in blue.
SH65aspect
The aspect values are between 0 and 360 degrees: 0 indicates that the slope is facing the North, 90 faces the East, 180 faces the South and 270 faces the West (assuming that north is the top of your input raster). The aspect value -9999 is the no data value and it indicates an undefined aspect (flat areas with slope=0).
As for SH65 (elevation) and SH65slope, change the greyscale to Singleband pseudocolor and make the colours visible in the Layers Panel.
The other Modes available in the DEM tools (in Raster > Analysis) that you will use are:
Hillshade: This provides an output grid which depicts a terrain surface with a shaded relief effect. The shade effect can be altered by specifying the direction (azimuth) and altitude of a light source.
Terrain ruggedness index (TRI): The mean difference between a central pixel and its surrounding cells (the elevation of each cell is compared to the elevations of the cells which it neighbours).
Topographic position index (TPI): The difference between a central pixel and the mean of its surrounding cells (the elevation of each cell is compared to the mean elevation of the cells which it neighbours).
Roughness: The largest inter-cell difference of a central pixel and its surrounding cell (the largest difference between a cell and any of the cells which it neighbours).
You should compute each of these in turn and experiment with changing the colour schemes used to display the outputs. The file output names should be SH65hills, SH65TRI, SH65TPI and SH65rough.
The file 'Wilson et al., (2007).pdf' (available under GIS in Canvas) is a paper that details these measures. Feel free to take a look if you'd like to know more
.
The DEM model of Snowdonia can be also easily visualised in 3D using QGIS.Follow the steps below:
Go to View menu > 3D Map Views > New 3D MapView and expand the 3D window
In the 3D Map 1 window click the Configure tool, then Terrain.
Select DEM (Raster Layer) as your Type and
choose the SH65
layer as your
Elevation
Set the Vertical scale to 3 and make any changes
to the other settings if you wish, hit OK
In the 3D Map 1
window hold down the Tilt
Down button (located just under the compass symbol) until you
have a good horizontal view of the model, you can also use zoom in/out
and rotate view functions on the right hand side to appreciate more the
3D map. Your output should look similar to the one below:
Summary statistics for a raster grid can be obtained using the Properties of each layer:
STATISTICS_MAXIMUM=1080.5
STATISTICS_MEAN=440.6
STATISTICS_MINIMUM=53.4
STATISTICS_STDDEV=203.6
As you are probably aware, the standard deviation is the square root of the average squared difference between the values and the mean of the values. So, a small standard deviation indicates that the values are close to the mean (the values tend to be similar) while a large standard deviation indicates that values tend to be far from the mean (the values tend to be dissimilar).
Histograms provide a graphical summary of the frequency of values in a dataset. This is best illustrated with an example.
Right click on SH65
in the Layers
Panel. Select Properties >
Histogram.
Repeat this for the SH65slope
layer
To save the histogram click the Save plot
button
Save the file to your working directory and name it
SH65slope_Hist ensuring that Save as
type is TIFF
.
You will use this tool again later.
You now have a range of raster grids which depict particular terrain characteristics. It is straightforward in a GIS environment to identify cells which have a combination of characteristics. In QGIS, this can be done using the raster calculator.
Firstly, you will identify all cells which have a slope of greater than or equal to 30 percent.
Specify the output layer as SH65slopeGE30
In Raster Calculator under Raster bands double click ‘SH65slope@1’,
Click on the >=
sign and then type 30. The
expression should then appear as shown on the picture below.
Click OK.
You now have a new map where 0 = cells with slopes of less than 30 percent and 1= cells with a slope of greater than or equal to 30 percent.
Runoff has an impact on soil erosion and speed of runoff depends on slope and roughness whereby areas which are rougher may reduce runoff and thus be subject to less erosion (although that may be difficult to assess using these data). So, you will combine the new slope map with a map showing cells with a relatively small roughness value (less than or equal to 80).
Open Raster calcultaor and following the instructions above, and this time using SH65rough as your input layer, create a new map which indicates cells with a roughness value of less than or equal (<=) to 80. Name the output SH65roughLE80.
Next, multiply the two new maps together to create a new raster called SH65sl30ro80. In this case, the expression should read: ‘SH65slopeGE30@1’ * ‘SH65roughLE80@1’
You should create a map of (i) slope (SH65slope), (ii) surface roughness (SH65rough) and (iii) areas with larger slope and small roughness values (SH65sl30ro80).
The GIS 1 exercise introduced map creation in QGIS. The key steps you need to follow are repeated here using SH65rough as an example:
Go to Project > New Print Layout
In the Layout title window, type: Roughness index and click OK.
In the Item Properties > Orientation, select Portrait
Then go to Add Item > Add Map
Click with the left mouse button in the top left corner of the window and hold down the button. Drag to the bottom right and then let go. Your latest map open in the main QIS window should be drawn.
Resize the map to fit in the frame.
Under Item Properties > Map 1 > Main
Properties, change the Scale to 60,000
(experiment also with different scales in order to see what is the most
appropriate one; in general look at the ratio of your map and empty
space..)
If you want to move the frame (the map and the box around it), go to Edit > Move Content; you can then click on the frame and move it.
To move the raster outline within the map, go to Edit > Move Content.
You will need to switch between these two options to reorganise your map.
Go to Add Item > Add Legend. Click on the white space around the map using the left mouse button. You can then click on and move the resulting legend.
To change the legend text to something more appropriate, go back to the main QGIS window, right click on SH65rough in the layer list and select Properties.
Select the Source tab and in the Layer name box
replace SH65rough with a label which reflects what you have mapped
(e.g., Roughness index). Alternatively right click the layer and click
Rename Layer
Then go back to the Print Layout window and select the legend window; under Item Properties > Legend > Legend items, the label should then be automatically updated.
To remove layers from the legend that are not required, untick
the Auto Update box. Click on the layer you would like
to remove and click the minus sign
This will remove that layer from the legend.
Unknown CRS
then,Once you have finished your map, go to Layout > Export as Image.
Specify the output type as TIFF and name the file in a sensible way -
e.g., call it Roughness
if it is a map of roughness.
The image files (TIFFs) you have saved should be inserted into a Word
document (Insert > Picture.) and your written report should be
provided in the same document. When you insert the map, be sure to
include the following text below it:
You should have created THREE maps: (i) slope (SH65slope), (ii) surface roughness (SH65rough) and (iii) areas with larger slope and small roughness values (SH65sl30ro80).
Using your knowledge of the tools outlined in this practical you should write a MAXIMUM of 250 words describing the geographical patterns you see in your three maps and how the maps of slope and roughness relate. For example, do most areas with larger slope values have large roughness values? Also, what is the range of slope and roughness values judging by their summary statistics and the histograms, and are these similar to one another?
To submit on Canvas you need to export the document (containing three maps and your text) as a PDF file. In Word, select Save As and set Save as type to PDF, then click Save, at this point the file will be saved as a PDF which can be uploaded onto Canvas.