Install
openclaw skills install @ruiduobao/geoskill-drought-severity-assessment融合 SPI(标准化降水指数,Gamma 分布拟合+正态反演)与 VHI(植被健康指数)的综合干旱分级。Combined drought grading fusing SPI (Gamma-fit standardized precipitation index) and VHI (vegetation health index). 输出干旱等级/SPI 栅格 + 面积统计 JSON。
openclaw skills install @ruiduobao/geoskill-drought-severity-assessmentA combined drought assessment fusing meteorological (precipitation) and remote-sensing vegetation information, suitable for regional drought monitoring, agricultural drought early warning, and time-series drought comparison. It implements two complementary indices:
norm.ppf) to the cumulative probability. SPI < 0 indicates drier-than-normal conditions; the larger the absolute value, the drier. Its distribution approximates the standard normal.SPI and VHI are combined with equal weights into a composite drought index (both are approximately standard-normal), then classified by thresholds into five grades: no drought / mild / moderate / severe / extreme. Outputs a drought-grade raster, an SPI raster, and per-grade area statistics.
--synthetic mode generates multi-epoch precipitation + NDVI data (precipitation plunges and NDVI drops in the right-side region at the final epoch, simulating a regional meteorological–agricultural drought), letting you validate the workflow without network access or real data.
pip install numpy rasterio scipy
python geoskill-drought-severity-assessment.py --bbox 116.0 39.0 117.0 40.0 --n-dates 12 --output-dir ./output
python geoskill-drought-severity-assessment.py \
--bbox 116.0 39.0 117.0 40.0 \
--n-dates 12 \
--synthetic \
--output-dir ./drought_syn
python geoskill-drought-severity-assessment.py \
--bbox 116.0 39.0 117.0 40.0 \
--n-dates 24 \
--synthetic \
--output-dir ./drought_24
python geoskill-drought-severity-assessment.py \
--input precip_monthly.tif \
--output-dir ./real_drought
(The input is a multi-band GeoTIFF, one band per precipitation epoch; this mode grades with SPI only.)
python geoskill-drought-severity-assessment.py --bbox 121 31 122 32 --n-dates 12 --synthetic --output-dir ./shanghai --quiet
| File | Format | Description |
|---|---|---|
drought_grade.tif | GeoTIFF (uint8) | Drought grade 0=none 1=mild 2=moderate 3=severe 4=extreme, EPSG:4326 |
spi.tif | GeoTIFF (float32) | Standardized Precipitation Index (SPI) |
drought_report.json | JSON | SPI Gamma parameters, pixel count/area per grade, drought ratio |
output-manifest.json | JSON | Run manifest (input/output/QA/software versions) |
--synthetic mode reads no external dataMIT
融合气象(降水)与遥感植被信息的综合干旱评估,适用于区域旱情监测、农业干旱 预警、时序旱情对比等场景。实现两个互补指数:
norm.ppf)。SPI < 0 表示偏干,绝对值越大越干;其分布近似标准正态。将 SPI 与 VHI 等权合成为综合干旱指数(两者均近似标准正态),按阈值分为五级: 无旱 / 轻旱 / 中旱 / 重旱 / 特旱。输出干旱等级栅格、SPI 栅格与逐等级面积统计。
支持 --synthetic 模式生成多期降水 + NDVI 数据(右侧区域末期降水骤降、NDVI
下降,模拟一场区域性气象—农业干旱),无需网络和真实数据即可验证流程。
pip install numpy rasterio scipy
python geoskill-drought-severity-assessment.py --bbox 116.0 39.0 117.0 40.0 --n-dates 12 --output-dir ./output
python geoskill-drought-severity-assessment.py \
--bbox 116.0 39.0 117.0 40.0 \
--n-dates 12 \
--synthetic \
--output-dir ./drought_syn
python geoskill-drought-severity-assessment.py \
--bbox 116.0 39.0 117.0 40.0 \
--n-dates 24 \
--synthetic \
--output-dir ./drought_24
python geoskill-drought-severity-assessment.py \
--input precip_monthly.tif \
--output-dir ./real_drought
(输入为多波段 GeoTIFF,每个波段 = 一期降水;此模式仅用 SPI 分级。)
python geoskill-drought-severity-assessment.py --bbox 121 31 122 32 --n-dates 12 --synthetic --output-dir ./shanghai --quiet
| 文件 | 格式 | 说明 |
|---|---|---|
drought_grade.tif | GeoTIFF (uint8) | 干旱等级 0=无旱 1=轻旱 2=中旱 3=重旱 4=特旱,EPSG:4326 |
spi.tif | GeoTIFF (float32) | 标准化降水指数 SPI |
drought_report.json | JSON | SPI Gamma 参数、各级像元数/面积、干旱比例 |
output-manifest.json | JSON | 运行清单(输入/输出/QA/软件版本) |
--synthetic 模式不读取任何外部数据MIT