添加 AMSC 跑道数据诊断脚本

This commit is contained in:
2569718930@qq.com
2026-06-16 02:57:06 +08:00
parent 316540e8f4
commit 555de2f415
+12
View File
@@ -0,0 +1,12 @@
from src.database.db_manager import DBManager
db = DBManager()
for c in ["beijing","guangzhou","shanghai","chengdu","chongqing"]:
r = db.get_latest_raw_observation("amsc_awos", c)
if r:
p = r["payload"]
o = p.get("observation_time", "?")
pts = p.get("runway_obs", {}).get("point_temperatures", [])
tmax = [x["target_runway_max"] for x in pts if x.get("target_runway_max")]
print(c, o[:19], "tmax=", max(tmax) if tmax else "?")
else:
print(c, "no data")