360 Secure SkillHub
360 安全技能中心

Geoskill: Crop Condition Monitor

该 Skill 通过命令行脚本读取一个或多个 NDVI 栅格,按时间序列分析作物长势,输出统计 JSON、HTML 报告与运行清单;在给定范围与日期区间时,还可从 Microsoft Planetary Computer 获取 Sentinel-2 L2A 预览影像作为数据源。未声明具体依赖包与运行环境细节。

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add geoskill-crop-condition-monitor
Metadata
name
crop-condition-monitor
description
Assess crop health from NDVI time series. Use when the user wants to analyze changes, detect hazards, or generate assessment reports.

Crop Condition Monitor

Assess crop health from NDVI time series.

CLI Usage

python scripts/crop_condition_monitor.py --ndvi ndvi1.tif ndvi2.tif ndvi3.tif
python scripts/crop_condition_monitor.py --ndvi ndvi1.tif ndvi2.tif --dates 2024-04-01,2024-05-01
python scripts/crop_condition_monitor.py --ndvi ndvi1.tif ndvi2.tif --output-dir my_output

Parameters

Argument Required Default Description
--ndvi Yes — One or more NDVI rasters (chronological order, same grid)
--dates No — Optional comma-separated acquisition dates matching --ndvi files (ISO YYYY-MM-DD)
--output-dir, -o No crop-output Directory to write outputs

Output

File Description
crop-report.json Machine-readable crop condition stats (mean NDVI, anomaly area)
report.html Human-readable HTML report
output-manifest.json Run metadata + result summary

Exit Codes

Code Meaning
0 Success
2 Argument error
7 Processing failure

Data Download

When --bbox (or --aoi-file) and --date-range are provided, this skill auto-downloads a small set of Sentinel-2 L2A (sentinel-2-l2a) visual previews from the Microsoft Planetary Computer STAC catalog (no API key required) and uses them as the multi-temporal NDVI stack.

The downloaded files are written to <output_dir>/downloaded/ and the downstream monitor_crop analysis runs on them. The output-manifest.json records data_source / collection / bbox / date_range / fetched_at for traceability.

python scripts/crop_condition_monitor.py \
  --bbox 116.4,39.6,116.6,39.8 \
  --date-range 2024-06-01,2024-06-30 \
  --output-dir my_output