deforisk QGIS plugin#
Languages#
The deforisk
QGIS plugin website is available in English or Spanish .
Aim#
The deforisk
QGIS plugin can be used to map the deforestation risk for a country or area of interest. Four models can be used to derive the risk maps: the iCAR, GLM, Random Forest, and Moving Window models. These four models can be compared to a benchmark model which assumes a simple decrease of the deforestation risk with distance to forest edge. All models are calibrated using past deforestation observations for a given period of time between 2000 and 2022. Forest cover change maps can be provided by the user or derived from two global tree/forest cover change products: Global Forest Change and Tropical Moist Forests.
Deforestation risk maps obtained using this plugin can be used to estimate emission reduction impact of forest conservation projects within the VCS Jurisdictional and Nested REDD+ Framework.
Specificities#
Python based. The deforisk
plugin relies on four Python packages developed specifically for modelling deforestation: geefcc
, pywdpa
, forestatrisk
, and riskmapjnr
. The geefcc
package can be used to make forest cover change maps from Google Earth Engine (GEE) and download them locally using two global tree/forest cover change products: Global Forest Change or Tropical Moist Forests. The pywdpa
package allows downloading vector files of protected areas for any countries using the World Database on Protected Areas (WDPA). The forestatrisk
package provides functions to model deforestation and predict the spatial deforestation risk using various explanatory variables (distance to forest edge, elevation, protected areas, etc.) and various statistical models including iCAR, GLM, and Random Forest models. The riskmapjnr
package allows deriving deforestation risk maps following Verra JNR methodologies which include a moving window model and a benchmark model which assumes a decrease of the deforestation risk with the distance to forest edge.
Processing raster by blocks. Raster files of forest cover change and explanatory variables might occupy a space of several gigabytes on disk. Processing such large rasters in memory can be prohibitively intensive on computers with limited RAM. Functions used in the deforisk
plugin process large rasters by blocks of pixels representing subsets of the raster data. This makes computation efficient, with low memory usage. Reading and writing subsets of raster data is done by using functions from GDAL, a dependency of the plugin. Numerical computations on arrays are performed with the NumPy Python package, whose core is mostly made of optimized and compiled C code that runs quickly.
Running tasks in parallel. State-of-the-art approach to select the best deforestation risk map and forecast deforestation implies comparing various models, fit the models using forest cover change over different time periods and predict the deforestation risk at several dates. This implies repeating a high number of tasks. To save computation time, the deforisk
plugin use the QGIS task manager which allows running several analysis in parallel.
OS independent. Using both computation by block for large rasters and task parallelization, the deforisk
plugin allows selecting the best deforestation risk map and forecast deforestation for large countries or areas of interest in a limited amount of time, even on personal computers with average performance hardware. Because the deforisk
is a QGIS plugin written in Python, it should run on all operating systems able to run QGIS, including Windows (\(\geq10\)), Linux, and Mac OS.
Installing the deforisk
plugin in QGIS#
Note
Dependencies: QGIS and GDAL must be installed on your system before using the deforisk
plugin. On Unix-like systems, you must also install osmconvert and osmfilter. On Windows systems, these dependencies are already included in the plugin as binary .exe
files so you don’t need to install them. Then, the forestatrisk
and riskmapjnr
Python packages must be installed on your system. Follow the installation instructions to install these dependencies.
Download the
deforisk
zip file from GitHub.Open QGIS.
In QGIS menu bar, go to
Extensions/Install extensions/Install from ZIP
.Select the zip file that has been downloaded.
Acknowledgements#
This tool has been jointly developed by the Food and Agriculture Organization of the United Nations (FAO) and the French agricultural research and cooperation organization working for the sustainable development of tropical and Mediterranean regions (CIRAD), under the AIM4Forests program: Accelerating Innovative Monitoring for Forests, with financial support from the Department for Energy Security and Net Zero of the United Kingdom of Great Britain and Northern Ireland.
Contributing#
The deforisk
QGIS plugin is Open Source and released under the GNU GPL version 3 license. Anybody who is interested can contribute to the package development following our Community guidelines. Every contributor must agree to follow the project’s Code of conduct.