简化 D-InSAR 形变监测:从主从 SLC 复影像生成干涉图、相干性与形变量。Simplified D-InSAR: interferogram, coherence and surface deformation from master/slave SLCs. 输入复数 SLC(或用 --synthetic 注入平滑形变相位),输出形变 GeoTIFF + 相干性 GeoTIFF + 参数 JSON。
Documents
geoskill-sar-landslide-detection
Try it融合InSAR形变速率、后向散射变化与DEM坡度综合加权评分,双门限提取疑似滑坡连通域并矢量化分级(high/medium/low),输出滑坡GeoJSON、形变速率/风险评分GeoTIFF与风险汇总JSON。SAR landslide detection fusing InSAR deformation, backscatter change and slope.
What it does
融合InSAR形变速率、后向散射变化与DEM坡度综合加权评分,双门限提取疑似滑坡连通域并矢量化分级(high/medium/low),输出滑坡GeoJSON、形变速率/风险评分GeoTIFF与风险汇总JSON。SAR landslide detection fusing InSAR deformation, backscatter change and slope.
The skill document
SAR 滑坡检测 | SAR Landslide Detection
Identifies suspected landslide bodies by fusing multi-source SAR-derived factors:
- InSAR deformation rate (mm/yr): landslide bodies exhibit high deformation along the line of sight (absolute value taken).
- Backscatter change: sliding / churning alters surface roughness, producing large σ⁰ differences between before and after.
- Slope (derived from a DEM via Horn's gradient method): landslides mostly occur on steep slopes, making slope a key constraint.
Method: the three factors are normalized using robust percentile scaling (--normalize robust|minmax), then weighted to compute an integrated risk score; suspected areas are extracted with the dual thresholds score ≥ --score-threshold and slope ≥ --slope-threshold, cleaned morphologically, vectorized into polygons by connected components, and classified into risk levels.
Dependencies / 依赖
pip install numpy rasterio geopandas shapely scipy
Usage / 使用方法
Basic usage (bbox only, synthetic data auto-generated)
python geoskill-sar-landslide-detection.py --bbox 116.0 39.0 117.0 40.0 --slope-threshold 15 --output-dir ./out
Example 1: synthetic data (offline)
python geoskill-sar-landslide-detection.py --bbox 116 39 117 40 --synthetic --output-dir ./syn
Example 2: real deformation rate + DEM
python geoskill-sar-landslide-detection.py --input deform_rate.tif --dem dem.tif --output-dir ./real
Example 3: with before/after σ⁰ imagery
python geoskill-sar-landslide-detection.py --input deform.tif --dem dem.tif --sigma-before s0_before.tif --sigma-after s0_after.tif --output-dir ./full
Example 4: lower thresholds for higher sensitivity
python geoskill-sar-landslide-detection.py --bbox 103 30 104 31 --slope-threshold 10 --score-threshold 0.4 --output-dir ./sensitive --quiet
Output / 输出
| File | Format | Description |
|---|---|---|
landslides.geojson | GeoJSON | Suspected landslide polygons (with area, score, risk level), EPSG:4326 |
deformation_rate.tif | GeoTIFF (float32) | Deformation rate (mm/yr) |
risk_score.tif | GeoTIFF (float32) | Integrated risk score [0,1] |
risk_summary.json | JSON | Count / area / class summary |
output-manifest.json | JSON | Run manifest |
Data Source / 数据源 / Source
- Real mode: local InSAR deformation-rate GeoTIFF, with optional DEM and before/after σ⁰ imagery.
- Synthetic mode: locally generated DEM slopes + localized high-deformation patches + σ⁰ anomalies.
Privacy / 隐私声明 / Privacy
- Fully offline by default;
--syntheticmode makes no network calls. - All processing is done locally; no user data is uploaded.
License / License
MIT
name: geoskill-sar-landslide-detection description: '融合InSAR形变速率、后向散射变化与DEM坡度综合加权评分,双门限提取疑似滑坡连通域并矢量化分级(high/medium/low),输出滑坡GeoJSON、形变速率/风险评分GeoTIFF与风险汇总JSON。SAR landslide detection fusing InSAR deformation, backscatter change and slope.'
SAR 滑坡检测 | SAR Landslide Detection
融合多源 SAR 派生因子识别疑似滑坡体:
- InSAR 形变速率(mm/yr):滑坡体在视线向上表现为高形变(取绝对值)。
- 后向散射变化:滑动 / 翻搅使地表粗糙度改变,σ⁰ 前后差异大。
- 坡度(由 DEM 经 Horn 梯度法求):滑坡多发生在陡坡,是关键约束。
方法:三因子稳健百分位归一化(--normalize robust|minmax)后加权求综合风险
评分,再用 score ≥ --score-threshold 且 slope ≥ --slope-threshold 双门限
提取疑似区,形态学清理后按连通域矢量化为多边形并分级。
依赖
pip install numpy rasterio geopandas shapely scipy
使用方法
基本用法(仅给 bbox,自动合成)
python geoskill-sar-landslide-detection.py --bbox 116.0 39.0 117.0 40.0 --slope-threshold 15 --output-dir ./out
示例 1:合成数据(离线)
python geoskill-sar-landslide-detection.py --bbox 116 39 117 40 --synthetic --output-dir ./syn
示例 2:真实形变速率 + DEM
python geoskill-sar-landslide-detection.py --input deform_rate.tif --dem dem.tif --output-dir ./real
示例 3:含 σ⁰ 前后影像
python geoskill-sar-landslide-detection.py --input deform.tif --dem dem.tif --sigma-before s0_before.tif --sigma-after s0_after.tif --output-dir ./full
示例 4:降低门限提高灵敏度
python geoskill-sar-landslide-detection.py --bbox 103 30 104 31 --slope-threshold 10 --score-threshold 0.4 --output-dir ./sensitive --quiet
输出
| 文件 | 格式 | 说明 |
|---|---|---|
landslides.geojson | GeoJSON | 疑似滑坡多边形(含面积、评分、风险等级),EPSG:4326 |
deformation_rate.tif | GeoTIFF (float32) | 形变速率(mm/yr) |
risk_score.tif | GeoTIFF (float32) | 综合风险评分 [0,1] |
risk_summary.json | JSON | 数量 / 面积 / 分级汇总 |
output-manifest.json | JSON | 运行清单 |
数据源 / Source
- 真实模式:本地 InSAR 形变速率 GeoTIFF,可选 DEM 与 σ⁰ 前后影像。
- 合成模式:本地生成 DEM 斜坡 + 局部高形变斑块 + σ⁰ 异常。
隐私声明 / Privacy
- 默认完全离线运行,
--synthetic无任何网络。 - 所有处理本地完成,不上传用户数据。
License
MIT
Related skills
基于 SAR 低后向散射特性的洪水范围制图:Otsu 阈值分割低 σ⁰ 水体 + 形态学去噪 + 可选 DEM 坡度排除,并矢量化为 GeoJSON。SAR flood extent mapping via Otsu thresholding of low backscatter, morphological cleanup and vectorization. 输出洪水二值 GeoTIFF + 面积统计 JSON + 范围 GeoJSON。
Integrate terrain, geology, rainfall, land cover, roads, and historical landslide data to produce interpretable susceptibility zoning with spatial cross-validation.
从配准主/从复SLC估计多视复相干系数γ与干涉相位,识别稳定散射体与去相关变化区(建筑变化/滑坡/植被),输出相干性与相位GeoTIFF及统计JSON。D-InSAR complex coherence and interferometric phase estimation with multi-looking.
SAR 船舶检测:CA/OS-CFAR 恒虚警检测 + 连通域聚类,从单极化 SAR 强度影像提取船舶目标并输出 GeoJSON 矢量与属性表
多时相 SAR 后向散射时序统计:逐像元均值/标准差/振幅/变异系数与极化比。Multi-temporal SAR backscatter time-series statistics (mean/std/amplitude/CV) and polarization ratio. 输入多时相 σ⁰ 立方体(或用 --synthetic 生成含植被物候正弦信号的时序),输出多波段统计 GeoTIFF + 时序曲线 JSON。