Install
openclaw skills install @ruiduobao/geoskill-carbon-stock-estimation由 NDVI 幂律异速生长方程估算地上生物量碳,叠加根茎比地下碳与类型化土壤碳密度。Estimates carbon stocks from biomass allometry and soil carbon density. 输出地上碳/土壤碳/总碳三张 GeoTIFF 与汇总 JSON。
openclaw skills install @ruiduobao/geoskill-carbon-stock-estimationAboveground biomass is estimated with the power-law allometric equation AGB = scale × max(NDVI, 0)^power and multiplied by the IPCC default carbon fraction of 0.47 to obtain aboveground carbon; belowground carbon = aboveground carbon × root-to-shoot ratio (default 0.30); soil organic carbon is computed from five land cover classes — forest/grassland/cropland/bare land/water — with carbon densities of 60/45/35/15/0 Mg C/ha × pixel area. Total carbon = aboveground carbon × (1 + root-to-shoot ratio) + soil carbon.
Applicable scenarios: regional carbon baseline accounting, dual-carbon (carbon peak and carbon neutrality) target assessment, and measurement of ecological carbon sequestration projects.
pip install numpy rasterio
python geoskill-carbon-stock-estimation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./output
python geoskill-carbon-stock-estimation.py --input ndvi.tif --output-dir ./real
python geoskill-carbon-stock-estimation.py --bbox 116 39 117 40 --synthetic --scale 150 --power 1.8 --output-dir ./tuned
python geoskill-carbon-stock-estimation.py --bbox 121 31 122 32 --synthetic --output-dir ./shanghai
python geoskill-carbon-stock-estimation.py --bbox 113 23 114 24 --synthetic --quiet --output-dir ./batch
| File | Format | Description |
|---|---|---|
agb_carbon.tif | GeoTIFF (float32) | Aboveground biomass carbon (Mg C/pixel) |
soil_carbon.tif | GeoTIFF (float32) | Soil organic carbon (Mg C/pixel) |
total_carbon.tif | GeoTIFF (float32) | Total carbon stock (Mg C/pixel) |
carbon_params.json | JSON | Carbon fraction, root-to-shoot ratio, and totals of each carbon pool |
output-manifest.json | JSON | Run manifest (inputs/outputs/QA/software versions) |
Local GeoTIFF (band1=NDVI, values approximately −1..1; inputs outside this range are rejected with exit code 6); the carbon fraction (0.47) follows the IPCC 2006 Guidelines for National Greenhouse Gas Inventories, the root-to-shoot ratio follows the global meta-analysis of Mokany et al. 2006, and the soil carbon densities are order-of-magnitude defaults for the 0–30 cm soil layer (IPCC reference stock convention); synthetic mode generates data locally with no external data source.
AGB = scale × NDVI^power is an empirical power-law model; scale/power must be calibrated by region and vegetation type, and the default values (200 / 2.0) are intended for screening-level estimates only and cannot be used directly for project-level accounting (MRV).--synthetic mode reads no external dataMIT
地上生物量按幂律异速方程 AGB = scale × max(NDVI,0)^power 估算,乘以 IPCC 默认含碳系数 0.47 得地上碳;地下碳 = 地上碳 × 根茎比(默认 0.30);土壤有机碳按林/草/耕/裸/水五类碳密度(60/45/35/15/0 Mg C/ha)× 像元面积。总碳 = 地上碳×(1+根茎比) + 土壤碳。
适用场景:区域碳本底核算、双碳目标评估、生态固碳项目计量。
pip install numpy rasterio
python geoskill-carbon-stock-estimation.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./output
python geoskill-carbon-stock-estimation.py --input ndvi.tif --output-dir ./real
python geoskill-carbon-stock-estimation.py --bbox 116 39 117 40 --synthetic --scale 150 --power 1.8 --output-dir ./tuned
python geoskill-carbon-stock-estimation.py --bbox 121 31 122 32 --synthetic --output-dir ./shanghai
python geoskill-carbon-stock-estimation.py --bbox 113 23 114 24 --synthetic --quiet --output-dir ./batch
| 文件 | 格式 | 说明 |
|---|---|---|
agb_carbon.tif | GeoTIFF (float32) | 地上生物量碳(Mg C/像元) |
soil_carbon.tif | GeoTIFF (float32) | 土壤有机碳(Mg C/像元) |
total_carbon.tif | GeoTIFF (float32) | 总碳储量(Mg C/像元) |
carbon_params.json | JSON | 含碳系数、根茎比、各碳库总量 |
output-manifest.json | JSON | 运行清单(输入/输出/QA/软件版本) |
本地 GeoTIFF(band1=NDVI,取值约 −1..1;超出该范围的输入会被拒绝,exit 6); 含碳系数(0.47)参考 IPCC 2006 清单指南,根茎比参考 Mokany et al. 2006 全球元分析, 土壤碳密度为 0–30 cm 土层的量级默认值(IPCC 参考储量口径);合成模式本地生成,无外部数据源。
AGB = scale × NDVI^power 为经验幂律模型,scale/power 需按区域/植被类型标定,
默认值(200 / 2.0)仅作筛查级估算,不能直接用于项目计量(MRV)。--synthetic 模式不读取任何外部数据MIT