Home

Awesome

<h1 align="center">CarbonViewer</h1> <h2 align="center">A calculator for peatland volume and carbon stock to support area planners and decision makers.</h2>

CC BY-NC-SA 4.0 DOI

NOTE: The application supports both the English and Norwegian language. To change the language, click on the Change language box and choose en for English or no for Norwegian.


What is CarbonViewer?

CarbonViewer is a R Shiny application designed to calculate and visualize the amount of carbon stored in a given peatland area. The application estimates the total carbon content in the peat body, which can be used to evaluate the soil carbon storage at any given peatland site and the potential impact land-use change can have on CO2 emission. As drainage of peatland areas results in high greenhouse gas emissions, the aim of this application is to support area planners with an improved knowledge base of the soil carbon stock in peatlands considered for development. The application should be used early in planning as a tool to map soil carbon stocks in peatlands, and hence, to avoid, reduce or mitigate the impact of development in peatlands areas.

How to use CarbonViewer?

1. Import Data

Upload a zip-file containing a shapefile of the study area and a csv-file with peat depth measurements in cm from the same area. Ensure that the X and Y coordinates of the peat depths measurements in the csv-file match the coordinate system of the shapefile. All coordinate systems are supported, but note that the application converts the data to ETRS89 UTM Zone 33N for the calculations.

User Action: Click on Upload Data. Drag and drop or browse for the zip-file containing the shapefile and csv-file.

Folder structure:

/dataset.zip
├── peat_depth_samples.csv              
├── study_area.dbf              
├── study_area.prj
├── study_area.shp
└── study_area.shx

Example of correct format for the .csv file:

X      Y      peat_depth_cm
X1Y1120
X2Y2120
X3Y3270
X4Y4270
X5Y5320

2. Calculate Peat Volume

The total volume of peat in the study area is calculated by interpolating the peat depth measurements using Inverse Distance Weighting (IDW) (see Peat Depth Interpolation). Note that a test dataset is provided to test the calculations: “Calculate with testdata”.

This step results in:

User Action: Click on Load dataset. Wait for the progress bar to finish. View the results in the Map results and Power evaluation graphs tabs. Optional: Customize the Power parameter in the Map Results tab.

3. Calculate the Carbon Content

The Total Carbon Content is calculated by multiplying the Soil Organic Carbon (SOC) with the total volume of peat in the study area. The SOC is calculated using the peat properties Bulk Density (BD), Soil Organic Matter (SOM), and the Carbon content fraction (see Carbon Content Caluclation). The application allows the user to either choose default values for the peat properties or customize the values. The default values are based on a Database of peat properties from Norwegian mires, and a set value of 0.5 for the fraction of carbon content in organic matter. If the user chooses to customize the values, it is required to know the values of bulk density (in g/cm3 or tonne/m3, commonly less than 0.2 for peatlands), organic matter fraction (SOM) and carbon content fraction for the study area (typically 0.5).

This step results in a value for the mean and standard deviation of the total carbon content in the study area (tons C) displayed in the Map results tab.

User Action: Click on Carbon content calculation. Choose between Default values or Custom values for the peat properties. Click on Load values. View the results in the Map results tab.

4. Export Results

The results of the volume and carbon calculations can be exported as a zip-file.

The zip-file contains the following files:

/Downloads/carbonviewer-results-date.zip
├── carbonviewer_results.csv              
├── carbonviewer_results.txt
├── map_study_area.png
├── map_peat_depths.png
└── raster_interpolated_peat_depths.tif

User Action: Click on Download results > Download.


Overview of Methods

A brief overview of the methods used in the application is provided below. For a more detailed description, please refer to Kyrkjeeide, M. O. et al. (2023).

Peat Depth Interpolation

The peat depth measurements from field survey (csv-file) are extrapolated to the entire study area extent (shp-file) using Inverse Distance Weighting (IDW). IDW assumes that nearby observations are more alike than those further away. For instance, a peat measurement taken at a 10 m distance has a greater influence on the estimated value of a raster pixel cell than a measurement taken at a 50 m distance. The degree of this influence is controlled by the power parameter. A power of 1 assigns an equal weight to all points, resulting in a smoother interpolated raster. Increasing the power value reduces the influence of distant sample points on the estimated value.

Optimal value of the Power parameter:

The application identifies the optimal power parameter using a cross-validation approach, comparing the results of an IDW interpolation method with those of a Kriging interpolation method. The power parameter is varied between 1 and 6, and the Mean Absolute Error (MAE) is calculated for each value. The power parameter with the lowest MAE is chosen as the default value. You can also choose to use a custom value for the power parameter by sliding the bar in the "Map Result" Section. The influence of the power on the results is shown in the graphs located in "Power Evaluation Graphs" section.

Carbon Content Calculation

The Total Carbon Content (TCC) of the study area is calculated by multiplying the SOC with the total volume of peat in the study area, where the SOC is calculated using the peat properties Bulk Density (BD), Soil Organic Matter (SOM), and the SOM:SOC conversion factor.

TCC = SOC * v

where:

The peat volume of the study area is calculated by the interpolation of the peat depth measurements (Step 2). The other peat properties, Bulk Density, Soil Organic Matter fraction, and the SOM:SOC conversion factor, are either set to default values or can be customized by the user (Step 3).


Author

The application has been created by Benjamin Cretois, Marte Fandrem and Magni Olsen Kyrkjeeide. This project was funded by Norwegian Research Council under Grant number 282327 and Statnett.

<img src="man/figures/logo_nina.png" alt="drawing" width="100"/> <img src="man/figures/ntnu.png" alt="drawing" width="100"/> <img src="man/figures/statnett.png" alt="drawing" width="100"/>

How to cite us:

Kyrkjeeide, M. O., Fandrem, M., Kolstad, A. L., Bartlett, J., Cretois, B., & Silvennoinen, H. M. (2023). A calculator for local peatland volume and carbon stock to support area planners and decision makers. Carbon Management, 14(1), 2267018.