Install
openclaw skills install @ruiduobao/geoskill-multi-hazard-risk-assessmentopenclaw skills install @ruiduobao/geoskill-multi-hazard-risk-assessmentMultiplies multiple single-hazard risks per pixel according to the IPCC risk triplet (hazard × exposure × vulnerability), then performs a weighted multi-hazard fusion to obtain a composite risk index in [0,1], which is classified by thresholds into five risk zones: low / moderate-low / moderate / moderate-high / high. If any factor is 0 (e.g., no exposure), the pixel risk is 0; the fusion result is a convex combination of the single-hazard risks, monotonically non-decreasing in every input.
pip install numpy rasterio scipy
python geoskill-multi-hazard-risk-assessment.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-multi-hazard-risk-assessment.py --bbox 116 39 117 40 --synthetic --output-dir ./out
python geoskill-multi-hazard-risk-assessment.py --input scene.tif --output-dir ./out
python geoskill-multi-hazard-risk-assessment.py --bbox 116 39 117 40 --hazards 5 --breaks 0.1 0.3 0.5 0.7 --synthetic --output-dir ./out
python geoskill-multi-hazard-risk-assessment.py --bbox 121 31 122 32 --synthetic --quiet --output-dir ./out
| File | Format | Description |
|---|---|---|
risk_index.tif | GeoTIFF | Composite risk index [0,1] |
risk_zones.tif | GeoTIFF | Risk zones (integer 0-4) |
risk_params.json | JSON | Break thresholds / weights / per-hazard means |
Each run also produces output-manifest.json (run manifest including input/output/QA summary).
Real mode reads a multi-band GeoTIFF (band1=hazard, band2=exposure, band3=vulnerability); synthetic mode generates multi-hazard scenes offline.
--synthetic mode requires no network at all.MIT
将多个单灾种风险按 IPCC 风险三元组(危险度 × 暴露度 × 脆弱性)逐像元相乘,再做多灾种加权融合,得到 [0,1] 的综合风险指数,并按阈值切分为低/中低/中/中高/高 5 个风险区。任一因子为 0(如无暴露)则该像元风险为 0;融合结果为各单灾种风险的凸组合,对任一输入单调不减。
pip install numpy rasterio scipy
python geoskill-multi-hazard-risk-assessment.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-multi-hazard-risk-assessment.py --bbox 116 39 117 40 --synthetic --output-dir ./out
python geoskill-multi-hazard-risk-assessment.py --input scene.tif --output-dir ./out
python geoskill-multi-hazard-risk-assessment.py --bbox 116 39 117 40 --hazards 5 --breaks 0.1 0.3 0.5 0.7 --synthetic --output-dir ./out
python geoskill-multi-hazard-risk-assessment.py --bbox 121 31 122 32 --synthetic --quiet --output-dir ./out
| 文件 | 格式 | 说明 |
|---|---|---|
risk_index.tif | GeoTIFF | 综合风险指数 [0,1] |
risk_zones.tif | GeoTIFF | 风险分区(整型 0-4) |
risk_params.json | JSON | 断裂阈值/权重/各单灾种均值 |
每次运行还会产出 output-manifest.json(运行清单,含输入/产物/QA 摘要)。
真实模式读取多波段 GeoTIFF(band1=危险度、band2=暴露度、band3=脆弱性);合成模式离线生成多灾种场景。
--synthetic 模式完全无网络。MIT