WoFS-StormCal
Model Introduction
WoFS-StormCal addresses calibration of short-term, storm-scale severe-weather probabilities by combining storm state, surrounding environment, and object morphology from ensemble storm tracks to estimate the likelihood of tornadoes, severe hail, and severe wind. It is primarily intended to improve the reliability of ensemble guidance and support nowcasting, severe-weather risk assessment, and forecaster decision-making.
Paper: Using Machine Learning to Calibrate Storm-Scale Probabilistic Guidance of Severe Weather Hazards in the Warn-on-Forecast System
https://arxiv.org/abs/2012.00679
Model Description
WoFS-StormCal was proposed by research teams from the University of Oklahoma, the Cooperative Institute for Mesoscale Meteorological Studies, and the NOAA National Severe Storms Laboratory. The paper trained and validated the models with WoFS ensemble forecasts and local storm reports from the 2017-2019 NOAA Hazardous Weather Testbed Spring Forecasting Experiments. The model supports short-term storm-scale probabilistic forecasting and calibration for tornadoes, severe hail, and severe wind.
Use Cases
| Use Case | Description |
|---|---|
| Storm-scale probabilistic guidance | Predict tornado, severe-hail, and severe-wind probabilities for ensemble storm-track objects. |
| Probability calibration | Fit monotone isotonic mappings from cross-validated probabilities. |
| Lead-group modeling | Process first-hour and second-hour 30-minute storm-track windows separately. |
| ModelScope/OneCode execution | Validate training, inference, probabilistic evaluation, visualization, and checkpoint workflows. |
| Multi-GPU training | Launch distributed data-parallel training with torchrun. |
Usage Instructions
1.OneCode
Experience intelligent, one-click AI4S programming through the OneCode online environment:
Try intelligent, one-click AI4S programming
2. Download and Installation
hf download OneScience-Group/WoFS-StormCal --local-dir ./WoFS-StormCal
cd WoFS-StormCal
Environment Dependencies
Hardware Requirements
- A GPU or DCU is recommended.
- A CPU can be used for connectivity validation with the default small-sample configuration.
- DCU users must install DTK in advance. DTK 25.04.2 or later, or the OneScience-recommended version matching the current cluster, is recommended.
DCU Environment
# Activate DTK and Conda first
conda create -n onescience311 python=3.11 -y
conda activate onescience311
pip install onescience[earth-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
GPU Environment
# Activate Conda first
conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
conda activate onescience311
pip install onescience[earth-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
Training Data
Synthetic features use storm organization, rotation, instability, shear, cold-pool, and ensemble-spread latent drivers to create within-group and cross-group correlation while preserving all 113 dimensions. The data validates feature loading, probabilistic training, calibration, inference, and evaluation only; it does not represent the real severe-weather sample distribution or paper performance.
python scripts/fake_data.py
Training
For single-device training, use:
python scripts/train.py
For multi-GPU training, use:
torchrun --nproc_per_node=8 --nnodes=1 --rdzv_id=1000 --rdzv_backend=c10d --max_restarts=0 --master_addr="localhost" --master_port=29500 scripts/train.py
Training outputs are saved to:
result/checkpoints/wofsstormcal.pt
result/training/metrics.json
Trained Weights
No weights are bundled under weight/. The paper provides no confirmed official checkpoint, and the engineering checkpoint is not claimed to be compatible with external weights.
Inference
python scripts/inference.py
Inference loads the training checkpoint, produces calibrated probabilities for three hazards from 113-dimensional object features, and saves them to result/output/predictions.npz.
Evaluation and Visualization
python scripts/result.py
Evaluation reports probabilistic skill, classification skill, and reliability metrics for each hazard and lead group in result/evaluation/metrics.json. It also generates performance and reliability diagrams. Synthetic-data results are only for engineering-workflow validation and do not represent paper performance on the real test set.
Official OneScience Information
| Platform | OneScience Main Repository | Skills Repository |
|---|---|---|
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
Citation and License
This repository is an independent engineering reproduction of the public WoFS-StormCal paper specifications.
Use of this repository's code, official model weights, and data remains subject to the licenses and terms of their respective projects.
中文说明
模型简介
WoFS-StormCal 面向短期、风暴尺度的强天气概率校准,结合来自集合风暴轨迹的风暴状态、周边环境与目标形态,估计龙卷风、强冰雹和强风发生的可能性。它主要用于提高集合预报指导的可靠性,并支持临近预报(nowcasting)、强天气风险评估和预报员决策。
论文《利用机器学习校准 Warn-on-Forecast System 风暴尺度强天气风险概率指导》
https://arxiv.org/abs/2012.00679
模型描述
WoFS-StormCal 由俄克拉何马大学、中尺度气象研究合作研究所和 NOAA 国家强风暴实验室的研究团队提出。论文使用 NOAA 危险天气试验平台 2017-2019 年春季预报试验中的 WoFS 集合预报(ensemble forecasts)和本地风暴报告对模型进行训练与验证。模型支持龙卷风、强冰雹和强风的风暴尺度短期概率预报与校准。
使用场景
| 使用场景 | 说明 |
|---|---|
| 风暴尺度概率指导 | 预测集合风暴轨迹对象上的龙卷风、强冰雹和强风概率。 |
| 概率校准 | 根据交叉验证得到的概率拟合单调保序映射。 |
| 时效分组建模 | 分别处理第一小时和第二小时的 30 分钟风暴轨迹窗口。 |
| 在 ModelScope/OneCode 中运行 | 验证训练、推理(inference)、概率评估、可视化和模型权重(检查点)(checkpoint)流程。 |
| 多 GPU 训练 | 使用 torchrun 启动分布式数据并行训练。 |
使用说明
1.OneCode
通过 OneCode 在线环境体验智能一键 AI4S 编程。
2. 下载与安装
hf download OneScience-Group/WoFS-StormCal --local-dir ./WoFS-StormCal
cd WoFS-StormCal
环境依赖
硬件要求
- 建议使用 GPU 或 DCU。
- 可以使用 CPU 在默认小样本配置下进行连通性验证。
- DCU 用户必须提前安装 DTK。建议使用 DTK 25.04.2 或更高版本,或 OneScience 推荐的与集群匹配的版本。
DCU 环境
# Activate DTK and Conda first
conda create -n onescience311 python=3.11 -y
conda activate onescience311
pip install onescience[earth-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
GPU 环境
# Activate Conda first
conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
conda activate onescience311
pip install onescience[earth-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
训练数据
合成特征使用风暴组织性、旋转、不稳定性、风切变、冷池及集合离散度等潜在驱动因素形成组内和跨组相关性,同时保留全部 113 维。数据仅用于验证特征加载、概率训练、校准、推理和评估,无法代表真实强天气样本分布或论文性能。
python scripts/fake_data.py
训练
单设备训练使用以下命令。
python scripts/train.py
多 GPU 训练使用以下命令。
torchrun --nproc_per_node=8 --nnodes=1 --rdzv_id=1000 --rdzv_backend=c10d --max_restarts=0 --master_addr="localhost" --master_port=29500 scripts/train.py
训练输出保存到以下位置。
result/checkpoints/wofsstormcal.pt
result/training/metrics.json
训练权重
weight/ 下没有随附的权重。论文没有提供经确认的官方模型权重(检查点),工程模型权重(检查点)并未声称兼容外部权重。
推理
python scripts/inference.py
推理加载训练模型权重(检查点),根据 113 维目标特征为三类灾害生成经校准的概率,并保存到 result/output/predictions.npz。
评估与可视化
python scripts/result.py
评估在 result/evaluation/metrics.json 中报告每类灾害、每个时效分组的概率技巧、分类技巧和可靠性指标,并生成性能图和可靠性图。合成数据结果仅用于工程流程验证,无法代表论文在真实测试集上的性能。
OneScience 官方信息
| 平台 | OneScience 主仓库 | Skills 仓库 |
|---|---|---|
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
引用与许可证
本仓库依据公开的 WoFS-StormCal 论文规范进行了独立工程复现。
本仓库代码、官方模型权重和数据的使用仍受各自项目的许可证和条款约束。
- Downloads last month
- 9