Carbon data harmonization for moirai

Description:

This folder contains a number of scripts which are used to generate 18 raster files (6 for soil carbon, 6 for above ground carbon, 6 for below ground carbon) that are used by moirai. The outputs are rasters where the carbon corresponding to individual land classes are harmonized to moirai’s land cover classes from the ESA land classes.

Input carbon rasters (and the shell scripts used to generate them)

1026 raster (.bil) files containing carbon by state and land ESA land class at a 5 arcmin resolution. These are generated using the bash scripts in the folder bash_scripts. To run the bash scripts, the user would need following,

Note that the user should run the above ground script (Above_ground_carbon.sh) first since this script will generate land cover files that are used by the other two scripts.The total run time of the three scripts is 7.5 hours (2.5 hours per script).

For the sake of convenience the final output files from the above are made available as a zip file (Carbon_rasters.zip)

Other inputs

These are the files in the folder input_files

Main harmonization script

moirai_carbon_harmonization.R which performs the harmonization for three types of carbon (soil, above ground biomass, below ground biomass) for 6 states (weighted_average, min, max, q1, q3, median). Each type of carbon requires around 20 mins to run through (bringing the total runtime of the script to 1 hour).

Description of harmonization process

The figure below describes the harmonization process from start to finish.We begin with the raw carbon data and the ESA land classes. Carbon is calculated for each ESA class. This carbon is then resampled to get the 5arcmin map for the same class for each of the 6 states. Finally the R script is used to harmonize the data to the moirai land cover in the reference year.

Figure 1: Description of the harmonization process

As a part of the final harmonization we also use a nearest neighbor interpolation to increase coverage. The current nearest neighbor interpolation is based on 10 nearest neighbors within the same land class. The table below shows the results of NODATA cells remaining by land class after interpolation (both for vegetation and soil). As indicated by the table, even after the interpolation no data is found for the Polar desert and rock ice and Tundra land types.

LC type Total cells Vegetation carbon Percentage unfound (NO DATA cells after interpolation) Soil carbon Percentage unfound (NO DATA cells after interpolation)
Polardesert/rock/ice 132021 100.0 100.0
Tundra 214261 100.0 86.6
OpenShrubland 274296 16.0 16.0
BorealDeciduousForest/Woodland 65824 0.0 0.4
Grassland/Steppe 498404 15.0 14.6
Desert 195579 1.0 1.1
BorealEvergreenForest/Woodland 148756 0.0 0.0
Savanna 173776 8.0 7.6
TemperateNeedleleafEvergreenForest/Woodland 71600 1.0 0.5
TemperateDeciduousForest/Woodland 86922 1.0 1.1
DenseShrubland 78065 10.0 9.5
TropicalEvergreenForest/Woodland 190780 0.0 0.3
TemperateBroadleafEvergreenForest/Woodland 14395 0.0 0.3
TropicalDeciduousForest/Woodland 56377 1.0 1.4