修复电报推送跑道高点使用机场METAR而非跑道传感器数据
_get_airport_daily_high 对 AMSC/AMOS 跑道城市优先从 runway_plate_history 取结算跑道的历史最高温
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user