Install
openclaw skills install @ruiduobao/geoskill-debris-flow-riskIdentify potential debris-flow gullies, integrate terrain, material source, rainfall trigger, and downstream exposure to produce basin-level hazard screening and risk assessment.
openclaw skills install @ruiduobao/geoskill-debris-flow-riskIdentifies potential debris-flow gullies from DEM terrain analysis, integrates material source availability, rainfall triggering thresholds, and downstream exposure to produce basin-level hazard and risk screening.
Use when the user wants to:
# Synthetic demo mode (no input files needed)
python scripts/debris_flow_risk.py --output-dir ./dfr-output
# With custom parameters
python scripts/debris_flow_risk.py \
--rainfall-scenario 100yr \
--runout-method geometric \
--risk-schema three_class \
--output-dir ./dfr-output
# With custom outlet points
python scripts/debris_flow_risk.py \
--outlet-points ./outlets.geojson \
--material-source sparse \
--output-dir ./dfr-output
| Parameter | Default | Description |
|---|---|---|
--place | None | Place name for AOI lookup |
--bbox | None | Bounding box: "west,south,east,north" |
--aoi-file | None | Path to AOI polygon (GeoJSON) |
--outlet-points | None | Path to outlet points (GeoJSON) |
--rainfall-scenario | 50yr | Rainfall scenario: 20yr, 50yr, 100yr |
--material-source | moderate | Material source: sparse, moderate, abundant |
--runout-method | geometric | Runout method: geometric, ramms, flo2d |
--risk-schema | three_class | Risk schema: three_class, four_class, five_class |
--infrastructure | None | Path to infrastructure points (GeoJSON) |
--dem-resolution | 30 | DEM resolution in meters (sensitivity parameter) |
--flow-threshold | 500 | Flow accumulation threshold for channel initiation |
--output-dir | ./dfr-output | Output directory |
| File | Description |
|---|---|
debris_flow_basins.geojson | Identified debris-flow basins with attributes |
hazard_index.tif | Hazard index raster (0-1) |
runout_zones.geojson | Runout zone polygons |
exposure.csv | Downstream exposure inventory |
screening_report.pdf | Screening report (HTML-based) |
request.json | Analysis request metadata |
dataset-manifest.json | Dataset inventory |
output-manifest.json | Output file inventory |
qa.json | Quality assurance checks |
Standard D8 encoding: 1=E, 2=SE, 4=S, 8=SW, 16=W, 32=NW, 64=N, 128=NE. Flow accumulation computed by recursive upslope contribution.
Watershed basins delineated from outlet points using flow direction. Basins filtered by slope, curvature, and flow accumulation criteria.
Composite index integrating:
Conservative geometric diffusion: runout distance = H / tan(α), where H is the elevation drop and α is the average fan angle (default 11°). RAMMS/FLO-2D interfaces reserved for future implementation.
Outlet position, flow accumulation threshold, and DEM resolution are key sensitive parameters. Sensitivity analysis varies each parameter ±20% and reports hazard index change.
Risk = Hazard × Exposure × Vulnerability Three-class: Low, Moderate, High
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Argument error |
| 3 | Dependency missing |
| 6 | Data validation failure |
| 7 | Processing failure |
本 skill 可自动从 Microsoft Planetary Computer 下载数据 (无需 API key):
python debris_flow_risk.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 (没有 --dem) 时,skill 自动下载数据。
当用户给 --dem 时,走原文件路径 (向后兼容)。