360 Secure SkillHub
360 安全技能中心

Geoskill: Forest Fire Burn Severity

使用差分归一化燃烧比(dNBR)从灾前与灾后的近红外、短波红外影像计算林火火烧严重度,划分为未燃烧、低、中、高四类,输出 HTML 报告与 JSON 结果;也可按边界框和日期范围自动获取数据后运行。

ruiduobao
ruiduobao
热度 17.53
最近更新 2026-07-31 19:56:21
分类:数据依赖:代码执行 / 读写文件 / 第三方 API应用场景:数据处理 / 报告撰写 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add geoskill-forest-fire-burn-severity
Metadata
name
forest-fire-burn-severity
description
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.

Forest Fire Burn Severity

Computes dNBR from pre/post-fire NIR+SWIR bands and classifies burn severity.

CLI Usage

python scripts/forest_fire_burn_severity.py \
  --pre-nir pre_nir.tif --pre-swir pre_swir.tif \
  --post-nir post_nir.tif --post-swir post_swir.tif

Or with synthetic demo data (no real inputs needed):

python scripts/forest_fire_burn_severity.py --synthetic

Parameters

Flag Type Required Description
--pre-nir path one-of Pre-fire NIR band GeoTIFF
--pre-swir path one-of Pre-fire SWIR band GeoTIFF
--post-nir path one-of Post-fire NIR band GeoTIFF
--post-swir path one-of Post-fire SWIR band GeoTIFF
--synthetic flag one-of Run with synthetic demo data (no real inputs needed)
--output-dir, -o path no Output directory (default: burn-severity-output)
--version flag no Show version and exit

Output

File Description
report.html Burn severity report
burn-severity-report.json Detailed results
output-manifest.json Machine-readable manifest

Exit Codes

Code Meaning
0 Success
2 Argument error
7 Processing failure

数据下载

本 skill 可自动从 Microsoft Planetary Computer 下载数据 (无需 API key):

python forest_fire_burn_severity.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 (没有 --image) 时,skill 自动下载数据。 当用户给 --image 时,走原文件路径 (向后兼容)。