设计与多媒体

Geoskill: Flood Extent Mapping

试用

Extract flood extent from SAR backscatter imagery. Use when the user wants to analyze changes, detect hazards, or generate assessment reports.

它能做什么

Extract flood extent from SAR backscatter imagery. Use when the user wants to analyze changes, detect hazards, or generate assessment reports.

技能文档

Flood Extent Mapping

Extract flood extent from SAR backscatter imagery.

CLI Usage

# Local file mode (backward compatible)
python scripts/flood_extent_mapping.py --sar sar.tif
python scripts/flood_extent_mapping.py --sar sar.tif --threshold -16
python scripts/flood_extent_mapping.py --sar sar.tif --output-dir my_output

# Auto-download mode — fetch Sentinel-1 GRD from Microsoft Planetary Computer
# (no API key required; one scene per invocation)
python scripts/flood_extent_mapping.py \
    --bbox 116,39,117,40 \
    --date-range 2024-06-01,2024-06-30 \
    --output-dir my_output

Data Download

When --bbox (or --aoi-file) and --date-range are provided, the skill auto-downloads one Sentinel-1 GRD scene from the Microsoft Planetary Computer STAC catalog (collection sentinel-1-grd). The downloaded file is written to /downloaded/ and the SAR analysis runs on it exactly as if a local file had been passed via --sar.

The output-manifest.json records data_source, collection, bbox, date_range, and fetched_at whenever auto-download is used.

Parameters

ArgumentRequiredDefaultDescription
--sarOne-ofPath to local SAR backscatter raster (dB, calibrated)
--bboxOne-ofW,S,E,N in WGS-84; triggers auto-download
--date-rangew/ bboxSTART,END ISO-8601; triggers auto-download
--aoi-fileNoGeoJSON Polygon / MultiPolygon (alternative to --bbox)
--thresholdNo-15Water threshold in dB
--output-dir, -oNoflood-outputDirectory to write outputs
--syntheticNooffUse synthetic demo data (no real inputs)

Output

FileDescription
flood-report.jsonMachine-readable flood extent stats (water area, depth proxy)
report.htmlHuman-readable HTML report
output-manifest.jsonRun metadata + result summary

Exit Codes

CodeMeaning
0Success
2Argument error
7Processing failure

相关技能

Overlay flood extent with population, buildings, roads, and cropland to estimate affected objects and generate impact reports. Use when the user wants to assess flood impact, count affected population/roads/buildings, or generate flood impact summaries from a flood extent raster.

1 次安装

基于 SAR 低后向散射特性的洪水范围制图:Otsu 阈值分割低 σ⁰ 水体 + 形态学去噪 + 可选 DEM 坡度排除,并矢量化为 GeoJSON。SAR flood extent mapping via Otsu thresholding of low backscatter, morphological cleanup and vectorization. 输出洪水二值 GeoTIFF + 面积统计 JSON + 范围 GeoJSON。

1 次安装

Analyze land subsidence from InSAR displacement data. Use when the user wants to analyze changes, detect hazards, or generate assessment reports.

1 次安装

Compute forest fire burn severity from pre/post-fire NIR and SWIR imagery using differenced Normalized Burn Ratio (dNBR). Classifies severity into unburned, low, moderate, and high categories. Use when the user wants to assess burn severity, map fire damage, or generate burn severity reports.

1 次安装

Detect forest disturbance from multi-temporal NDVI. Use when the user wants to analyze changes, detect hazards, or generate assessment reports.

1 次安装

基于 DEM 的 Bathtub 静态洪水淹没模拟,支持水文连通性约束(flood-fill)。Static bathtub flood inundation modeling from DEM with optional hydrological connectivity constraint. 输出淹没范围/水深 GeoTIFF + 面积体积统计 JSON。