Skip to main content

Mapping deforestation risk following JNR methodology

Project description

Logo riskmapjnr

riskmapjnr Python package

Python version PyPI version GitHub Actions License GPLv3 Zenodo

Overview

The riskmapjnr Python package can be used to obtain maps of the spatial risk of deforestation and forest degradation following the methodology developed in the context of the Jurisdictional and Nested REDD+ (JNR) and using only a forest cover change map as input.

riskmapjnr-example

Statement of Need

The VCS (Verified Carbon Standard) program allows certified projects to turn their greenhouse gas (GHG) emission reductions and removals into tradable carbon credits. Since its launch in 2006, the VCS program has grown into the world’s largest voluntary GHG program.

In the forest sector, programs to mitigate GHG emissions across entire national or subnational jurisdictions (called REDD+ programs, i.e. programs aiming at Reducing Emissions from Deforestation and Forest Degradation) can be accounted for and credited using a jurisdictional-scale framework, the Jurisdictional and Nested REDD+ (JNR) framework. JNR integrates government-led and project-level REDD+ activities and establishes a clear pathway for subnational- and project-level activities to be incorporated within broader REDD+ programs. The JNR framework ensures all projects and other reducing emissions from deforestation and degradation activities in a given jurisdiction are developed using consistent baselines and crediting approaches. They mitigate the risk of “leakage”, i.e. the displacement of emission-causing activities to areas outside the project boundary, by monitoring emissions across an entire jurisdictional area.

The JNR Risk Mapping Tool is a “benchmark” methodology that provides a standardized approach for developing deforestation and forest degradation risk maps for users of the JNR Allocation Tool in the context of Jurisdictional and Nested REDD+ (JNR) requirements. The methodology allows deriving a map of the deforestation (or degradation) risk based on a minimal spatial information provided by the past deforestation (or degradation) map at the jurisdictional scale.

The JNR Risk Mapping Tool allows the creation of categorical and spatially static maps whose categories represent different levels of risk of deforestation or forest degradation in the validity period of the Forest Reference Emissions Level (FREL) and throughout the jurisdictional geographical boundaries. In the JNR Allocation Tool, the level of risk determines how the jurisdictional FREL is spatially distributed to nested lower-level jurisdictional programs and projects.

While the JNR Risk Mapping Tool methodology favors simplicity, obtaining the risk map is not straightforward. The approach requires several geoprocessing steps on raster data that can be large, i.e. covering large spatial extent (eg. national scale) at high spatial resolution (eg. 30 m). The riskmapjnr Python package includes functions to perform these geoprocessing steps and derive a risk map on any jurisdiction and at any spatial resolution following the JNR Risk Mapping Tool methodology.

Installation

You will need several dependencies to run the riskmapjnr Python package. The best way to install the package is to create a Python virtual environment, either through conda (recommended) or virtualenv.

Using virtualenv

You first need to have the virtualenv package installed (see here).

Then, create a virtual environment and install the riskmapjnr package with the following commands:

cd ~
mkdir venvs # Directory for virtual environments
cd venvs
virtualenv --python=/usr/bin/python3 venv-rmj
source ~/venvs/venv-rmj/bin/activate
# Install numpy first
pip install numpy
# Install gdal (the correct version)
pip install --global-option=build_ext --global-option="-I/usr/include/gdal" gdal==$(gdal-config --version)
pip install riskmapjnr # For PyPI version, this will install all other dependencies
# pip install https://github.com/ghislainv/riskmapjnr/archive/master.zip # For GitHub dev version
pip install jupyter geopandas descartes folium # Optional additional packages

To deactivate and delete the virtual environment:

deactivate
rm -R ~/venvs/venv-rmj # Just remove the repository

Installation testing

You can test that the package has been correctly installed using the command riskmapjnr in a terminal:

riskmapjnr

This should return a short description of the riskmapjnr package and the version number:

# riskmapjnr: Map of deforestation risk following JNR methodology.
# https://ecology.ghislainv.fr/riskmapjnr/
# riskmapjnr version x.x.

You can also test the package executing the commands in the Get started tutorial.

Main functionalities

The riskmapjnr package includes functions to:

  1. Estimate the distance to forest edge beyond which the deforestation risk is negligible: dist_edge_threshold().

  2. Compute local deforestation rates using a moving window whose size can vary: local_defor_rate().

  3. Transform local deforestation rates into categories of deforestation risks using several slicing algorithms: set_defor_cat_zero() and defor_cat()

  4. Validate maps of deforestation risk and select the map with the higher accuracy: defrate_per_cat() and validation().

The riskmapjnr package uses several known Python scientific packages such as NumPy, SciPy, and Pandas for fast matrix and vector operations and gdal for processing georeferenced raster data. Raster data are divided into blocks of data for in-memory processing. Such an approach allow processing large raster files with large geographical extents (e.g. country scale) and high spatial resolutions (eg. 30 m).

Contributing

The riskmapjnr Python package 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

riskmapjnr-0.1.tar.gz (424.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

riskmapjnr-0.1-py2.py3-none-any.whl (427.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file riskmapjnr-0.1.tar.gz.

File metadata

  • Download URL: riskmapjnr-0.1.tar.gz
  • Upload date:
  • Size: 424.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for riskmapjnr-0.1.tar.gz
Algorithm Hash digest
SHA256 476b053f359702bcbeeffdabb1a492fa1a3afd255a66415789a6f38e0bd91a83
MD5 0b08c847b680f299499a0447a817da6c
BLAKE2b-256 4e811aede47f8713aafad71d4bcca15e0c229440145967ab43c427a55b41a0ac

See more details on using hashes here.

File details

Details for the file riskmapjnr-0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: riskmapjnr-0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 427.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for riskmapjnr-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b1904e6d09663746cce9a3000c0b9ef5e602b486b7eac080e67e4778c4e6ca95
MD5 7df34bef024a3f0ad97d651106516be5
BLAKE2b-256 44104a3540a2a922d636777d13b3926426bdca910d92a4390f8ffe9e5bc32921

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page