From 555de2f415a38b56df843ea45a816699b504f536 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 16 Jun 2026 02:57:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20AMSC=20=E8=B7=91=E9=81=93?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=AF=8A=E6=96=AD=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/check_amsc.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/check_amsc.py diff --git a/scripts/check_amsc.py b/scripts/check_amsc.py new file mode 100644 index 00000000..e492f36a --- /dev/null +++ b/scripts/check_amsc.py @@ -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")