2026-05-28 变更记录
摘要
1. 新增 ECMWF AIFS Single 数据采集器 (aifs_collector.py),支持自动选择最佳 run、下载 GRIB2 预报数据并提取香港点经纬度序列,实时查询 VHHH METAR 云量观测。
2. hko_predict.py 增强:加入基于昨日 NWP 预报误差的 EMA 动态偏差更新机制,自动回读前一日结算真值与预测值对比调节偏差;下午时段(time-based anchor)触发 σ 过滤以防止 NWP/内陆信号发散噪声。
3. METAR VHHH 实测云量交叉验证模块上线,对比预报云量与机场实况,发现云量高估时自动施加加热修正。
4. 新增天气纸盘模拟交易脚本 (weather_paper_trader_sh.py) 支持上海地区模拟交易。
5. Web 前端大幅重构:app.py 重写 760 行路由逻辑,新增天气_hk_ai.html、weather_hk_env.html 两个模板页面,更新 v2_landing.html 和 mm_weather_simu.html,整体界面和交互能力显著提升。
变更文件
scripts/aifs_collector.py | 405 ++++++++++++++++++
scripts/hko_predict.py | 250 ++++++++++-
scripts/weather_paper_trader_sh.py | 502 ++++++++++++++++++++++
src/web/app.py | 760 +++++++++++++++++++++++++--------
src/web/templates/mm_weather_simu.html | 22 +-
src/web/templates/v2_landing.html | 21 +
src/web/templates/weather_hk.html | 368 ++++++++++++++--
src/web/templates/weather_hk_ai.html | 556 ++++++++++++++++++++++++
src/web/templates/weather_hk_env.html | 545 +++++++++++++++++++++++
src/web/templates/weather_hk_v2.html | 27 +-
10 files changed, 3207 insertions(+), 249 deletions(-)