Install
openclaw skills install @ruiduobao/geoskill-precipitation-nowcasting基于光流法(交叉相关位移估计)的拉格朗日持久性降水临近预报,外推未来 0-6 小时降水场,输出预报序列 GeoTIFF 与位移场 JSON。Optical-flow (cross-correlation) Lagrangian persistence nowcasting that extrapolates precipitation fields 0-6 hours ahead, outputting a forecast GeoTIFF stack and a displacement-field JSON.
openclaw skills install @ruiduobao/geoskill-precipitation-nowcastingAn optical-flow based Lagrangian persistence precipitation nowcast that estimates the motion of the precipitation field from the most recent radar / satellite frames and extrapolates it 0–6 hours ahead. Suitable for very-short-range precipitation forecasting, heavy-rain warnings, and pre-assessment of urban flooding and flash floods.
Core algorithm:
A built-in --synthetic mode generates a sequence of Gaussian rain cells translated at known velocities, for offline validation of the displacement estimation and extrapolation accuracy.
pip install numpy rasterio scipy
python geoskill-precipitation-nowcasting.py --bbox 116.0 39.0 117.0 40.0 --output-dir ./output
python geoskill-precipitation-nowcasting.py --bbox 116 39 117 40 --n-frames 4 --lead-time 60 --output-dir ./nowcast_60
python geoskill-precipitation-nowcasting.py --bbox 121 31 122 32 --lead-time 90 --dt-minutes 10 --output-dir ./nowcast_90
python geoskill-precipitation-nowcasting.py --input radar_stack.tif --lead-time 60 --search 16 --output-dir ./radar_nowcast
python geoskill-precipitation-nowcasting.py --bbox 116 39 117 40 --n-frames 5 --search 20 --lead-time 120 --output-dir ./fast_system
python geoskill-precipitation-nowcasting.py --bbox 110 30 111 31 --lead-time 60 --output-dir ./auto --quiet
| File | Format | Description |
|---|---|---|
forecast.tif | GeoTIFF (float32, N band) | Extrapolated precipitation field per lead time; band count = number of forecast steps, EPSG:4326 |
displacement.json | JSON | Mean displacement vector, per-frame-pair displacements, peak correlation, forecast lead times |
output-manifest.json | JSON | Run manifest (inputs/outputs/QA/software versions) |
--synthetic mode reads no external data.MIT
基于光流法的拉格朗日持久性(Lagrangian persistence)降水临近预报, 利用最近几帧雷达 / 卫星降水场估计场体移动速度,并向未来 0–6 小时外推。 适用于短临降水预报、暴雨预警、城市内涝与山洪的前置研判。
核心算法:
内置 --synthetic 模式生成以已知速度平移的高斯雨团序列,用于离线验证
位移估计与外推精度。
pip install numpy rasterio scipy
python geoskill-precipitation-nowcasting.py --bbox 116.0 39.0 117.0 40.0 --output-dir ./output
python geoskill-precipitation-nowcasting.py --bbox 116 39 117 40 --n-frames 4 --lead-time 60 --output-dir ./nowcast_60
python geoskill-precipitation-nowcasting.py --bbox 121 31 122 32 --lead-time 90 --dt-minutes 10 --output-dir ./nowcast_90
python geoskill-precipitation-nowcasting.py --input radar_stack.tif --lead-time 60 --search 16 --output-dir ./radar_nowcast
python geoskill-precipitation-nowcasting.py --bbox 116 39 117 40 --n-frames 5 --search 20 --lead-time 120 --output-dir ./fast_system
python geoskill-precipitation-nowcasting.py --bbox 110 30 111 31 --lead-time 60 --output-dir ./auto --quiet
| 文件 | 格式 | 说明 |
|---|---|---|
forecast.tif | GeoTIFF (float32, N band) | 逐时次外推降水场,band 数 = 预报步数,EPSG:4326 |
displacement.json | JSON | 平均位移矢量、逐帧对位移、峰值相关、预报时次 |
output-manifest.json | JSON | 运行清单(输入/输出/QA/软件版本) |
--synthetic 模式不读取任何外部数据。MIT