NWP | HKO | OCF Objective Consensus Forecast | 客觀整合預報
香港分區天氣資訊平台




- 產品約於每天中午和午夜前更新;前者顯示由當天中午至第九天午夜的逐小時預測;後者顯示由當天午夜至第九天午夜的逐小時預測。
- 產品乃基於一個多模式集成預報系統製作而成。該預報系統綜合多個全球數值天氣模式 的輸出,先利用香港及珠江三角洲區域收集的實況觀測數據對模式預測作出修正,再按照各模式的過去表現以訂定其比重,再集合成集成預報。有關該預報系統的詳細技術資料可參閱香港天文台 短文第1064號 (只提供英文版)。
Currently, outputs from five different NWP models are used in OCF, including: (2013)
- Meso-NHM, (Meso-NHM is the operational limited area model of HKO)
- ECMWF deterministic model,
- JMA GSM,
- NCEP GFS,
- ECMWF Ensemble Prediction System (EPS).
開發新一代「香港及珠江三角洲區域自動分區天氣預報」
- 人工智能天氣模型的定點自動天氣預報 | HKO
- 為探討這個問題,我們近期對AI模式,包括「歐洲中心人工智能電腦模式」(AIFS),以及「風烏」、「伏羲」和「盤古」等應用了上述模式後處理方法進行預報修正。綜合以上四個模式的後處理預報表現,初步結果顯示AI模式對未來九天香港天文台的每日最低氣溫預報的誤差,較現行OCF降低了約百分之三至十六(圖一);而在每日最高氣溫預報方面,AI模式於未來第二至五天的預測誤差平均減少約百分之十(圖二),但之後AI模式的預測誤差在比現行OCF稍為遜色,在第八和第九天的預測誤差增加百分之十左右。
- 基於這些發現,我們將上述AI模式的後處理預報融合至現有的OCF系統中。如圖一和圖二所示,這套 「加強版OCF」 成功綜合了NWP和AI模式預報的優勢,提供更準確的每日最高及最低氣溫預測參考依據。在集合NWP和AI多個模式預報的過程中,模式後處理會通過按照各個NWP和AI模型預測的誤差,從新調整各個模式預報在計算「加強版OCF」結果的比重,令到「加強版OCF」有效地將表現較好的NWP或 AI 模式在集合過程中突出其貢獻。從圖一和圖二可見,「加強版OCF」對未來九天的每日最低氣溫預報誤差平均減少約百分之十,同時每日最高氣溫的預報準確度也較現行OCF有所提升。
To retrieve the hourly regional forecast data
HKO observation data
- Temp and RH
wget -c https://www.hko.gov.hk/wxinfo/awsgis/hkoc.csv
1 | |
- Heat Index
wget -c https://www.hko.gov.hk/wxinfo/awsgis/hq4_hi2.csv
1 | |
- Pressure
wget -c https://www.hko.gov.hk/wxinfo/awsgis/hkoc_pre.csv
1 | |
Direct Portal Endpoints (Hourly Regional Data, Daily)
The Regional Weather Information Portal (regional_portal.html) loads its station-specific hourly forecasts from static files hosted under the /wxinfo/awsgis/forecast/ directory. Despite having a .xml file extension, these files actually return JSON data:
- URL Pattern:https://www.hko.gov.hk/wxinfo/awsgis/forecast/ and https://www.hko.gov.hk/wxinfo/awsgis/forecast/{STATION_CODE}.xml
- Station Codes: Replace
HKOwith the station's 3-letter AWS code (e.g.,HKAfor Chek Lap Kok / Airport,SHAfor Sha Tin, TKL for Ta Kwu Ling,WGLfor Waglan Island). You can find the full list of station codes by inspecting the Network tab in your browser's Developer Tools (F12->Network->Fetch/XHR) when clicking different locations on the map. - Same as
https://maps.weather.gov.hk/ocf/index_uc.html?station=HKO,https://maps.weather.gov.hk/ocf/dat/HKO.xml
Location
ARWF 測站代碼摘要
以下為香港天文台自動分區天氣預報(Automatic Regional Weather Forecast,ARWF)系統的測站代碼,根據所提供的檔案標頭及隨附說明整理。
| 代碼 | 測站名稱 | 緯度 | 經度 | 備註 |
|---|---|---|---|---|
| ARWF_CCC | 香港中文大學(大學站) | 22.4147 | 114.210 | 城市氣象監測站 |
| ARWF_CYS | 香港中文大學(伍宜孫書院) | 22.4224 | 114.203 | 城市氣象監測站 |
| ARWF_HMM | 香港海事博物館 | 22.2863 | 114.162 | 城市氣象監測站 |
| ARWF_MKA | 馬鞍山 | 22.3225 | 114.168 | 城市氣象監測站 |
| ARWF_SFY | 天星碼頭(尖沙咀) | 22.2935 | 114.169 | 城市氣象監測站 |
| ARWF_TIT | 大環山公園 | 22.3319 | 114.197 | 城市氣象監測站 |
| ARWF_TWS | 荃灣 | 22.3057 | 114.193 | 城市氣象監測站 |
| ARWF_VIP | 維多利亞公園 | 22.2826 | 114.188 | 城市氣象監測站 |
| ARWF_WCC | 保良局胡忠中學 | 22.4161 | 114.227 | 城市氣象監測站 |
重點
- 系統:所有代碼均屬香港天文台自動分區天氣預報(ARWF)系統,為香港各區微氣候測站提供定點逐小時天氣預報。
- 時間戳:所示檔案均為
LastModified: 2026112015301x(2026年11月20日約15:30 香港時間),表示同一預報時次同步產生。 - 測站類型:CCC、CYS、HMM、SFY、TIT、VIP、WCC 均為城市氣象監測站;MKA(馬鞍山)及 TWS(荃灣)為提示中已有說明的測站。
- 地理分佈:測站由約北緯22.28°(VIP、HMM)至約北緯22.42°(CYS、WCC),涵蓋港島、九龍、新界及中大校園一帶。
Data
- It will update hourly, replacing past hours with observed data.
- Remark: Please Avoding for Overwrite !!!
- crontab with
10,40 * * * * cd /home/wpsze/hko_ocf && ./run.shor20,50or25,55
1 | |
save as
1 | |
Official HKO Open Data API (Territory-Wide Forecasts)
If you need a stable, officially supported API for production applications (and do not strictly need hourly station-by-station forecasts), use HKO's official Open Data API. No API key is required.
- Base Endpoint:
[https://data.weather.gov.hk/weatherAPI/opendata/weather.php](https://data.weather.gov.hk/weatherAPI/opendata/weather.php) - 9-Day Weather Forecast (
fnd):[https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=fnd&lang=tc](https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=fnd&lang=tc)(uselang=enfor English) - Local Weather Forecast (
flw- Today/Tomorrow):[https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=flw&lang=tc](https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=flw&lang=tc) - Current Regional Weather Report (
rhrread- Observations):[https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang=tc](https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang=tc)
Gridded Rainfall Nowcast (Next 2 Hours):
If you specifically want the short-term 2-hour rainfall forecast displayed at the top right of your screenshot, HKO provides a dedicated dataset on DATA.GOV.HK updated every 12 minutes:
- CSV Download:
[https://data.weather.gov.hk/weatherAPI/hko_data/F3/Gridded_rainfall_nowcast.csv](https://data.weather.gov.hk/weatherAPI/hko_data/F3/Gridded_rainfall_nowcast.csv)