Install
openclaw skills install @ruiduobao/geoskill-precision-forestry-monitoringCHM tree height and crown width allometric volume, NDVI/NDRE health grading and SAR biomass fusion for precision forestry
openclaw skills install @ruiduobao/geoskill-precision-forestry-monitoringIntegrates multi-source remote sensing for stand-scale precision forestry monitoring, covering four levels — individual tree, stand, health and biomass — to support forest resource inventory, carbon sink estimation and management decisions.
Tree height / individual trees: CHM = DSM − DTM, with local peak detection (non-maximum suppression) extracting individual tree locations and heights. Crown width is used to invert diameter at breast height (DBH = k·CW), and the allometric equation V = a·DBH^b·H^c estimates individual-tree volume, which is summed into stand volume. Canopy closure is the proportion of canopy pixels whose CHM exceeds a threshold (∈[0,1]). Health is graded by a combination of NDVI and NDRE (healthy / moderate / stressed). Biomass is estimated from SAR backscatter σ⁰ (dB) → linear → power-function empirical relationships, and management recommendations are generated from canopy closure / stand volume / health.
pip install 'numpy' 'rasterio' 'scipy' 'scikit-learn'
python geoskill-precision-forestry-monitoring.py --bbox 116.0 39.0 117.0 40.0 [other options]
python geoskill-precision-forestry-monitoring.py --bbox 116 39 117 40 --synthetic --output-dir ./out
python geoskill-precision-forestry-monitoring.py --input forest.tif --output-dir ./out
python geoskill-precision-forestry-monitoring.py --input forest.tif --health-method ndvi --output-dir ./out
python geoskill-precision-forestry-monitoring.py --input forest.tif --min-height 5 --footprint 7 --output-dir ./out
python geoskill-precision-forestry-monitoring.py --input forest.tif --closure-threshold 3 --output-dir ./out
| File | Format | Description |
|---|---|---|
chm.tif | GeoTIFF | Canopy height model (tree height, m) |
health_grade.tif | GeoTIFF | Health grade (3 healthy / 2 moderate / 1 stressed / 0 bare ground) |
biomass_t_ha.tif | GeoTIFF | SAR-derived above-ground biomass (t/ha) |
canopy_mask.tif | GeoTIFF | Canopy cover mask |
trees.geojson | GeoJSON | Individual tree locations (height / crown width / DBH / volume) |
forestry_report.json | JSON | Stand statistics + management recommendations |
output-manifest.json | JSON | Run manifest |
Multi-band GeoTIFF with band order DSM / DTM / Red / NIR / RedEdge / SAR. Alternatively, use --synthetic to generate physically consistent simulated data (fully offline).
--synthetic mode requires no network at all.MIT
融合多源遥感实现林分尺度精准林业监测,覆盖“单木—林分—健康—生物量”四个层次,支撑森林资源调查、碳汇估算与经营决策。
树高/单木:CHM = DSM − DTM,局部峰值检测(非极大值抑制)提取单木位置与树高;由冠幅反演胸径 (DBH = k·CW),再用异速生长方程 V = a·DBH^b·H^c 估单木蓄积量并累加为林分蓄积量。郁闭度取 CHM 高于阈值的冠层像元占比(∈[0,1])。健康由 NDVI 与 NDRE 组合分级(健康/中等/胁迫)。生物量由 SAR 后向散射 σ⁰(dB)→线性→幂函数经验关系估算,并据郁闭度/蓄积量/健康生成经营建议。
pip install 'numpy' 'rasterio' 'scipy' 'scikit-learn'
python geoskill-precision-forestry-monitoring.py --bbox 116.0 39.0 117.0 40.0 [其他参数]
python geoskill-precision-forestry-monitoring.py --bbox 116 39 117 40 --synthetic --output-dir ./out
python geoskill-precision-forestry-monitoring.py --input forest.tif --output-dir ./out
python geoskill-precision-forestry-monitoring.py --input forest.tif --health-method ndvi --output-dir ./out
python geoskill-precision-forestry-monitoring.py --input forest.tif --min-height 5 --footprint 7 --output-dir ./out
python geoskill-precision-forestry-monitoring.py --input forest.tif --closure-threshold 3 --output-dir ./out
| 文件 | 格式 | 说明 |
|---|---|---|
chm.tif | GeoTIFF | 冠层高度模型(树高,m) |
health_grade.tif | GeoTIFF | 健康分级(3 健康 / 2 中等 / 1 胁迫 / 0 裸地) |
biomass_t_ha.tif | GeoTIFF | SAR 反演地上生物量(t/ha) |
canopy_mask.tif | GeoTIFF | 冠层覆盖掩膜 |
trees.geojson | GeoJSON | 单木位置(树高/冠幅/胸径/蓄积量) |
forestry_report.json | JSON | 林分统计 + 经营建议 |
output-manifest.json | JSON | 运行清单 |
多波段 GeoTIFF,波段顺序 DSM / DTM / Red / NIR / RedEdge / SAR。 或使用 --synthetic 生成物理一致的模拟数据(完全离线)。
--synthetic 模式完全无网络。MIT