Work

Code and Data Samples for Yan'an Carbon Storage Research

Year: 2026
Type: dataset
Abstract: This repository provides a complete, fully reproducible workflow for all analyses, models, and figures presented in the manuscript. All scripts use relative paths, require no manual code modification, and each section corresponds directly to the structure of the paper. The reproduction workflow is organized into four major sections:Section 1 — Remote Sensing Image Segmentation and Vegetation MappingThis section trains an XGBoost-based classifier using Sentinel-2 data, performs batch prediction on tiled images, and produces vegetation distribution maps for 12 species. The workflow includes model training, tile prediction, and mosaicking into final vegetation maps. Section 2 — Carbon Storage Calculation in Vegetation and LULCUsing the vegetation maps from Section 1 and species-level carbon density parameters, this section computes per-species carbon storage. Additional LULC rasters are incorporated to estimate total carbon storage across the study area. Section 3 — Factors Data ProcessingClimatic, environmental, and land-surface variables are processed into a unified 100-m grid dataset. Processes include NC-to-TIFF conversion, quarterly aggregation, carbon grid generation, factor extraction, and creation of a cleaned machine-learning–ready table. Section 4 — Regression Modeling, SHAP Explainability, and MappingRandom Forest, LightGBM, and XGBoost models are trained and evaluated.SHAP values are computed to quantify feature contributions, transformed into spatial rasters, visualized, and analyzed to reveal spatial mechanisms and boundary effects. Section 5 — Figures Drawing and MappingSHAP summary and dependence plots, SHAP maps and corresponding analysis figures are plotted and mapped in this section. UsageEach section includes:1. Required input data (provided in Data/ subfolders)2. A corresponding Jupyter notebook (1–4)3. Step-by-step procedures4. Output directories for all intermediate and final resultsRunning the notebooks sequentially will reproduce all tables, figures, maps, and metrics presented in the manuscript. Besides, the full version of the additional material can be found in this item.
Source: Figshare
Author: Yeming Lao
Language: English
Subfield: Forestry
Open Access status: green
OpenAlex ID: W7214975786
Cites:
Cited by:
Related to: 9