Install
openclaw skills install @ruiduobao/geoskill-land-use-carbon-accountingCompute carbon stock changes, emissions/removals, and uncertainty from multi-temporal land cover data using IPCC Tier 1/2 carbon factors. Use when analyzing land use change carbon budgets, estimating CO2e emissions from deforestation, or generating carbon accounting reports.
openclaw skills install @ruiduobao/geoskill-land-use-carbon-accountingComputes carbon stock changes, emissions/removals, and uncertainty from multi-temporal land cover data using IPCC Tier 1/2 carbon factors.
Use when the user wants to:
# Synthetic demo mode (no input files needed)
python scripts/land_use_carbon_accounting.py --output-dir ./luca-output
# With input GeoTIFF land cover rasters
python scripts/land_use_carbon_accounting.py \
--before-landcover ./data/before.tif \
--after-landcover ./data/after.tif \
--eco-zone subtropical \
--pools BAG BBG SOC \
--output-dir ./luca-output
# With custom carbon factors and Monte Carlo settings
python scripts/land_use_carbon_accounting.py \
--before-landcover ./data/before.tif \
--after-landcover ./data/after.tif \
--eco-zone temperate \
--pools BAG BBG DW LT SOC \
--mc-iterations 5000 \
--mc-seed 42 \
--confidence 0.95 \
--output-dir ./luca-output
# With bounding box for area computation
python scripts/land_use_carbon_accounting.py \
--before-landcover ./data/before.tif \
--after-landcover ./data/after.tif \
--bbox 116.0 39.5 116.5 40.0 \
--output-dir ./luca-output
| Parameter | Default | Description |
|---|---|---|
--before-landcover | None | Before period land cover GeoTIFF |
--after-landcover | None | After period land cover GeoTIFF |
--eco-zone | subtropical | Ecological zone for carbon factors |
--pools | BAG BBG SOC | Carbon pools to include |
--carbon-factors | None | Path to custom carbon factors JSON |
--source-system | auto | Source classification: auto, from_glc_fcs30, from_esri_lulc, from_copernicus |
--mc-iterations | 1000 | Monte Carlo iterations |
--mc-seed | 42 | Monte Carlo random seed |
--confidence | 0.95 | Confidence level for uncertainty |
--bbox | None | Bounding box: xmin ymin xmax ymax |
--output-dir | ./luca-output | Output directory |
| File | Description |
|---|---|
transition_matrix.csv | Land cover transition matrix (pixel counts) |
land_transition.tif | Transition type raster |
carbon_change.tif | Pixel-level carbon change raster (tC/ha) |
carbon_summary.csv | Per-transition carbon change summary |
uncertainty.json | Monte Carlo uncertainty analysis |
request.json | Analysis request metadata |
dataset-manifest.json | Dataset inventory and mapping info |
output-manifest.json | Output file inventory and carbon results |
qa.json | Quality assurance checks |
| Code | Name | Description |
|---|---|---|
| BAG | Above-ground Biomass | Living vegetation above ground |
| BBG | Below-ground Biomass | Living roots and rhizomes |
| DW | Dead Wood | Standing and fallen dead wood |
| LT | Litter | Leaf litter and fine debris |
| SOC | Soil Organic Carbon | Topsoil organic carbon |
| Code | Name | Description |
|---|---|---|
| FL | Forest Land | Forest and woodland |
| CL | Cropland | Cropland and pasture |
| GL | Grassland | Natural grassland |
| WL | Wetlands | Wetlands and peatlands |
| SL | Settlements | Built-up areas |
| OL | Other Land | Barren, ice, water |
| Zone | Description |
|---|---|
| tropical | Tropical forest and savanna |
| subtropical | Subtropical and warm temperate |
| temperate | Cool temperate and boreal |
| arid | Arid and semi-arid |
Computes carbon stock change using the IPCC stock-difference approach: ΔC = Σ(A_ij × (C_after_j - C_before_i))
Where A_ij is the area transitioning from class i to j, and C is the carbon density (tC/ha) for each class.
Counts pixel-level transitions between before and after land cover classes. Handles nodata values (0, 255) by exclusion.
Samples carbon factors from normal distributions using coefficient of variation (CV) from the factors registry. Computes confidence intervals from the distribution of total carbon change.
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Argument error |
| 3 | Dependency missing |
| 6 | Data validation failure |
| 7 | Processing failure |
本 skill 可自动从 Microsoft Planetary Computer 下载数据 (无需 API key):
python land_use_carbon_accounting.py --bbox 116,39,117,40 --date-range 2024-06-01,2024-06-30 --output-dir <tmp>
--bbox W,S,E,N: WGS-84 边界框 (西, 南, 东, 北)--date-range START,END: 日期范围 (YYYY-MM-DD,YYYY-MM-DD)--aoi-file <path.geojson>: 替代 --bbox 的 GeoJSON 多边形--cache-dir <path>: 缓存目录 (默认 ~/.geoskill_cache)当用户只给 --bbox + --date-range (没有 --image) 时,skill 自动下载数据。
当用户给 --image 时,走原文件路径 (向后兼容)。