Install
openclaw skills install @ruiduobao/geoskill-extreme-weather-detection基于百分位阈值检测热浪、寒潮与暴雨等极端天气事件,统计强度、持续时间与空间范围,输出事件清单 JSON 与空间分布栅格。Percentile-threshold detection of heatwaves, cold spells, and heavy rainfall, reporting intensity, duration, and spatial extent with an event-list JSON and spatial raster.
openclaw skills install @ruiduobao/geoskill-extreme-weather-detectionDetects extreme weather events from temperature / precipitation time series using the percentile-threshold method, reporting each event's intensity, duration, and spatial extent. Suitable for heatwave / cold-spell / heavy-rainfall event cataloging, extreme-climate risk screening, and rapid disaster assessment.
Detection rules:
By default the threshold is determined per pixel from the quantiles of the series itself (percentile ≥ 50 = upper-tail extreme, < 50 = lower-tail extreme). Events are extracted by connected-component labeling on the (time, y, x) 3-D exceedance volume (scipy.ndimage.label, with temporal adjacency plus 4-connected spatial connectivity); for each event the start/end time, duration in days, peak/mean intensity, number of spatial pixels, and centroid are reported.
A built-in --synthetic mode generates simulated series with embedded known extreme events (persistent heatwaves / heavy rainfall) for offline validation of detection correctness.
pip install numpy rasterio scipy
python geoskill-extreme-weather-detection.py --bbox 116.0 39.0 117.0 40.0 --output-dir ./output
python geoskill-extreme-weather-detection.py --bbox 116 39 117 40 --variable temperature --threshold p90 --n-dates 30 --output-dir ./heatwave
python geoskill-extreme-weather-detection.py --bbox 121 31 122 32 --variable precipitation --threshold p99 --output-dir ./heavy_rain
python geoskill-extreme-weather-detection.py --bbox 116 39 117 40 --variable temperature --threshold p10 --output-dir ./cold_spell
python geoskill-extreme-weather-detection.py --input temp_daily.tif --variable temperature --threshold p95 --min-duration 5 --output-dir ./real_events
python geoskill-extreme-weather-detection.py --bbox 110 30 111 31 --variable precipitation --threshold p95 --output-dir ./auto --quiet
| File | Format | Description |
|---|---|---|
extreme_events.tif | GeoTIFF (float32, 2 band) | band1 = exceedance days per pixel, band2 = maximum anomaly intensity, EPSG:4326 |
event_list.json | JSON | Event list (start/end/duration/intensity/spatial extent) + summary |
output-manifest.json | JSON | Run manifest (inputs/outputs/QA/software versions) |
--synthetic mode reads no external data.MIT
基于百分位阈值法从温度 / 降水时间序列中检测极端天气事件,并逐个统计 其强度、持续时间与空间范围。适用于热浪 / 寒潮 / 暴雨事件编目、极端气候 风险筛查与灾害快速评估。
检测规则:
阈值默认逐像元由序列自身的分位数确定(百分位 ≥ 50 为上尾极端,< 50 为 下尾极端)。事件通过在 (时间, y, x) 三维 exceedance 体上做连通分量标记 (scipy.ndimage.label,时间相邻 + 四邻域空间连通)提取,逐个统计起止时间、 持续天数、峰值 / 平均强度、空间像元数与质心。
内置 --synthetic 模式生成内嵌已知极端事件(持续热浪 / 强降水)的模拟
序列,用于离线验证检测正确性。
pip install numpy rasterio scipy
python geoskill-extreme-weather-detection.py --bbox 116.0 39.0 117.0 40.0 --output-dir ./output
python geoskill-extreme-weather-detection.py --bbox 116 39 117 40 --variable temperature --threshold p90 --n-dates 30 --output-dir ./heatwave
python geoskill-extreme-weather-detection.py --bbox 121 31 122 32 --variable precipitation --threshold p99 --output-dir ./heavy_rain
python geoskill-extreme-weather-detection.py --bbox 116 39 117 40 --variable temperature --threshold p10 --output-dir ./cold_spell
python geoskill-extreme-weather-detection.py --input temp_daily.tif --variable temperature --threshold p95 --min-duration 5 --output-dir ./real_events
python geoskill-extreme-weather-detection.py --bbox 110 30 111 31 --variable precipitation --threshold p95 --output-dir ./auto --quiet
| 文件 | 格式 | 说明 |
|---|---|---|
extreme_events.tif | GeoTIFF (float32, 2 band) | band1=每像元 exceedance 天数,band2=最大异常强度,EPSG:4326 |
event_list.json | JSON | 事件清单(起止/持续/强度/空间范围)+ 汇总 |
output-manifest.json | JSON | 运行清单(输入/输出/QA/软件版本) |
--synthetic 模式不读取任何外部数据。MIT