Setting up QGIS
This section explains how to install Q–LavHA, a model for the probabilistic hazard assessment of lava flows working as a QGIS
plugin.
Objectives
- Install
Q–LavHA
.
Installing Q-LavHA
- From the
Moodle
page of the class, download theVolcanicRisk2022.zip
file and extract it somewhere on your personal user drive. - Make sure
QGIS
is closed. - In Windows, navigate to the following folder, where
$USER
is your ISIS username:
Alternative link
C:\Users\$USER\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins
/Users/$USER/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/
Note
- If the
plugins
folder doesn't exist, please create it. - The
Users\
folder might be namedUtilisateurs
in French
- Copy the
Qlavha_v3
folder to theplugins
folder.
Use your user disk!
If you are using the PC of the computer lab, make sure your files are saved on your personal drive! This is typically the H:\
drive. Otherwise, your files will be deleted every time you logout!
Starting QGIS
- Search for
QGIS 3.2x
and start it. Depending on the computer, the version might vary between3.20
and3.23
. Please take the most advanced one.
Activate Q-LavHA
To activate Q–LavHA
in QGIS
:
- Re-open
QGIS
as previously. - From the Menu Bar, open the
Plugins
>Manage and Install Plugins
window. - Following Figure 3, search for
lava
and activate the plugin. - There should now be a
Q-LavHA
icon in the Toolbar.
Loading data
The Lava_Flow_Exercise_2022.zip
file downloaded from Moodle
contains a Lava flow exercise
folder that contains these files:
LaPalma_exercise_2022.qgz
: MainQGIS
file.Data/
exercise.gpkg
: Geopackage containing some vector files for the exercise.lapalma.gpkg
: Geopackage containing some vector files on previous eruptions at La Palma.osm.gpkg
: Geopackage containing openstreetmap files.DEM/
: Folder containing some pre-processed DEM files.Hydro
: Folder containing hydrological analyses.
Open the LaPalma_exercise_2022.qgz
file.
Centering the map
If you don't see any data on the map, click the Background
layer group in the Layer panel and click Zoom to group
.
You should now see something similar to this:
Save regularly!
QGIS
is amazing, but it can be unstable at time. Make sure you regularly save your project throughout the exercise!