Generalize NOAA settlement handling across dashboard and docs

This commit is contained in:
2569718930@qq.com
2026-03-27 20:58:38 +08:00
parent 15a452dd49
commit 7237278f5a
13 changed files with 374 additions and 51 deletions
+42 -1
View File
@@ -16,6 +16,23 @@ CITY_REGISTRY = {
"distance_km": 24.5,
"warning": "内陆高原城市,昼夜温差大(可达15°C+); 激进取整效应明显。",
},
"istanbul": {
"name": "Istanbul",
"lat": 41.2749,
"lon": 28.7323,
"icao": "LTFM",
"settlement_source": "noaa",
"settlement_station_code": "LTFM",
"settlement_station_label": "Istanbul Airport",
"tz_offset": 10800,
"use_fahrenheit": False,
"is_major": True,
"risk_level": "medium",
"risk_emoji": "🟡",
"airport_name": "Istanbul Airport",
"distance_km": 34.0,
"warning": "市场现按 NOAA LTFM 整度°C口径结算;以 weather.gov Temp 列当天最终完成质控后的最高整度摄氏值为准。",
},
"london": {
"name": "London",
"lat": 51.5048,
@@ -95,12 +112,33 @@ CITY_REGISTRY = {
"distance_km": 0.8,
"warning": "HKO 结算取石岗站分钟级观测,机场报文与 HKO 站点最高温不可直接混用。",
},
"lau fau shan": {
"name": "Lau Fau Shan",
"lat": 22.4674,
"lon": 113.9841,
"icao": "LFS",
"settlement_source": "hko",
"settlement_station_code": "LFS",
"settlement_station_label": "Lau Fau Shan",
"settlement_station_candidates": ["Lau Fau Shan"],
"disable_aviationweather": True,
"tz_offset": 28800,
"use_fahrenheit": False,
"is_major": False,
"risk_level": "medium",
"risk_emoji": "🟡",
"airport_name": "流浮山站",
"distance_km": 0.6,
"warning": "HKO 结算取流浮山站分钟级观测;该站不是机场 METAR,不能与 VHHH/VHSK 报文混用。",
},
"taipei": {
"name": "Taipei",
"lat": 25.0777,
"lon": 121.2330,
"icao": "RCTP",
"settlement_source": "noaa",
"settlement_station_code": "RCTP",
"settlement_station_label": "Taiwan Taoyuan International Airport",
"tz_offset": 28800,
"use_fahrenheit": False,
"is_major": True,
@@ -457,12 +495,13 @@ CITY_REGISTRY = {
ALIASES = {
# English shortcuts
"ank": "ankara", "lon": "london", "par": "paris",
"ank": "ankara", "ist": "istanbul", "ltfm": "istanbul", "lon": "london", "par": "paris",
"nyc": "new york", "ny": "new york", "chi": "chicago",
"dal": "dallas", "mia": "miami", "atl": "atlanta",
"sea": "seattle", "tor": "toronto", "sel": "seoul",
"seo": "seoul", "hkg": "hong kong", "hk": "hong kong",
"vhsk": "shek kong", "shekkong": "shek kong",
"lfs": "lau fau shan", "laufaushan": "lau fau shan",
"tpe": "taipei", "tp": "taipei", "taipei": "taipei",
"sha": "shanghai", "sh": "shanghai", "sin": "singapore",
"sg": "singapore", "tok": "tokyo", "tyo": "tokyo",
@@ -474,6 +513,7 @@ ALIASES = {
# Chinese names
"安卡拉": "ankara",
"伊斯坦布尔": "istanbul",
"伦敦": "london",
"巴黎": "paris",
"纽约": "new york",
@@ -487,6 +527,7 @@ ALIASES = {
"香港": "hong kong",
"石岗": "shek kong",
"石崗": "shek kong",
"流浮山": "lau fau shan",
"台北": "taipei",
"臺北": "taipei",
"上海": "shanghai",