Git Product home page Git Product logo

ghislainv / forestatrisk-tropics Goto Github PK

View Code? Open in Web Editor NEW
29.0 4.0 2.0 125.8 MB

:earth_africa: :pencil: Modelling and forecasting deforestation in the tropics

Home Page: https://forestatrisk.cirad.fr

License: GNU General Public License v3.0

Python 40.30% R 52.04% Shell 3.32% QML 3.29% CSS 0.04% Makefile 0.11% Emacs Lisp 0.91%
biodiversity-scenario climate-change co2-emissions deforestation deforestation-risk forecasting forest-cover-change ipbes ipcc land-use-change

forestatrisk-tropics's Introduction

License GPLv3 Cirad Dataverse Website ForestAtRisk forestatrisk Python package bioRxiv

This repository includes the code used to produce the results of the following scientific article:

ORCID logo Vieilledent G., ORCID logo C. Vancutsem, ORCID logo C. Bourgoin, ORCID logo P. Ploton, ORCID logo P. Verley, and F. Achard. 2023. Spatial scenario of tropical deforestation and carbon emissions for the 21st century. bioRxiv. doi: 10.1101/2022.03.22.485306. manuscript in pdf Supplementary Information SI

ORCID logo

Figure: Pantropical map of the risk of deforestation.

Minimal reproducible example using the forestatrisk Python package

This notebook provides a minimal and reproducible example presenting the general approach we followed to model and forecast deforestation in each of the 119 study areas (representing 92 countries) considered in the above article. We use the Guadeloupe archipelago as a case study. The notebook is available at the website associated with the forestatrisk Python package. This package has been specifically developed for this study and provides functions to model and forecast deforestation in the tropics.

Steps followed to produce the results of the study

We present below the R and Python scripts which have been used to produce the results of the study, from the datasets preparation to the writing of the manuscript.

1. Preparing datasets

## Derive past forest cover change maps from the annual product 
## of Vancutsem et al. 2021 using Google Earth Engine.
python Tropics/forest_gee_jrc.py

## Download raw data from on-line databases (GADM, SRTM, WDPA, OSM), and Google Drive.
python Tropics/download_raw_data.py

## Compute explanatory variables (elevation, slope, distances, etc.).
python Tropics/compute_variables.py

2. Estimating deforestation intensity

## Compute deforestation rates and uncertainty
Rscript Intensity/intensity.R

## Estimate contagious deforestation between states of Brazil
python Intensity/brazil_fcc_jrc.py

3. Spatial modeling and forecasting

## Model and forecast
python Tropics/model_and_forecast.py

4. Post-processing and writing

## Combine rasters to obtain continental maps
python Maps/combine.py

## Synthesize results
Rscript Analysis/synthesis.R

## Plot main maps
Rscript Maps/main_maps.R
Rscript Maps/main_maps_prob.R

## Plot supplementary maps
Rscript Maps/supp_maps.R

## Compile documents
Rscript Manuscript/zzz_knitr_compile/compile_book.R

Website accompanying the article

A website at https://forestatrisk.cirad.fr is accompanying the article cited above. The website includes the following resources:

Interactive map

We release interactive pantropical maps of the past forest cover change (2000–2010–2020), of the risk of deforestation (2020), and of the projected forest cover in 2050 and 2100:

Download

Rasters of results from this study can be downloaded as Cloud Optimized GeoTIFFs (COG):

Supplementary data

  • Data S1: Uncertainty around projected forest cover.
  • Data S2: Uncertainty around projected carbon emissions.

forestatrisk Python package

Results from this study have been obtained with the forestatrisk Python package:

Copyright © 2021 Cirad, EC JRC. All rights reserved.

RF Cirad AMAP Cirad

forestatrisk-tropics's People

Contributors

ghislainv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

12rambau lgqiao

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.