Evaluation of the carbon sequestration for the canton of Vaud

Martí Bosch d31737b81f added evolution-carbon-stock figure in README 8 months ago
.dvc 80ec798bfc init DVC DigitalOcean Spaces remote 1 year ago
data 3aae43982b added coeff tables data 1 year ago
.gitignore da1147098a initial commit 1 year ago
LICENSE da1147098a initial commit 1 year ago
README.md d31737b81f added evolution-carbon-stock figure in README 8 months ago
analysis-dag.md fe49017bed updated README with the analysis DAG 1 year ago
analysis-dag.png fe49017bed updated README with the analysis DAG 1 year ago
assemble_ldf.ipynb 90b2bf7f5a added assemble ldf step 1 year ago
elevation.ipynb 65ea0abfe5 added elevation step 1 year ago
environment.yml da1147098a initial commit 1 year ago
evolution-carbon-stock.png d31737b81f added evolution-carbon-stock figure in README 8 months ago
invest_carbon.ipynb 4ad4a0209a updated invest notebook with explanations 1 year ago
merge_clip_reclassify.ipynb e326f56e1d added merge-clip-reclassify step 1 year ago
orgsoil.ipynb eb2e93b709 added orgsoil step 1 year ago
prodreg.ipynb f9270945f7 added prodreg step 1 year ago

Data Pipeline

Legend
DVC Managed File
Git Managed File
Metric
Stage File
External File

README.md

Evaluation of the carbon sequestration for the canton of Vaud

Citation: Jaligot, R., Chenal, J. & Bosch, M. "Assessing spatial temporal patterns of ecosystem services in Switzerland". Landscape Ecol (2019): 1-16. https://doi.org/10.1007/s10980-019-00850-7

Evolution of the carbon stock

Analysis DAG

Given how the Swiss Land Statistics datasets are provided (see this for more info), we work with "LandDataFrames", i.e., tables where each row correspond to an (x, y) geo-referenced pixel, and columns provide categorical information, such as the land use/land cover, elevation, production regions and organic soil. This information is used to compute the carbon stock with the InVEST's carbon model.

analysis-dag

The results are displayed in invest_carbon.ipynb

Instructions to reproduce the repository

Preparing the environment

  1. Create the conda environment

    # the environment's name will be `carbonseq_vaud`
    conda env create -f environment.yml
    
  2. Configure your S3 profile (credentials, region and endpoint URL)

  3. Enter the fresh environment

    conda activate carbonseq_vaud
    
  4. Already within the environment, make it available as a jupyter kernel as in:

    python -m ipykernel install --user --name carbonseq_vaud --display-name "Python (carbonseq_vaud)"
    

Reproducing

  1. From the repository's root, create a folder named papermill_outputs

  2. Pull the data from the dvc remote

    dvc pull
    
  3. Reproduce the land data frame

    dvc repro data/vaud_ldf.csv.dvc
    

Now you can execute the Notebook invest.ipynb