Predictions
Overview
Weather forecasts come from the numerical models of several meteorological centres. The data space runs its own Open-Meteo server, which keeps a local copy of the latest run of each model, so users and services do not depend on the websites or request limits of each centre. The AEMET HARMONIE-AROME model is the exception: it is downloaded directly from AEMET.
| Source | Models | How it arrives |
|---|---|---|
| Météo-France | AROME France HD (hourly and 15 minutes) | Open-Meteo server |
| DWD (Deutscher Wetterdienst) | ICON-EU | Open-Meteo server |
| ECMWF (European Centre for Medium-Range Weather Forecasts) | IFS | Open-Meteo server |
| NOAA (National Oceanic and Atmospheric Administration) | GFS | Open-Meteo server |
| CMC (Environment and Climate Change Canada) | GEM | Open-Meteo server |
| Met Office | UK Met Office Global | Open-Meteo server |
| AEMET (Agencia Estatal de Meteorología) | HARMONIE-AROME | Directly from AEMET |
This flow differs from the real-time data flow. Forecasts cover from hours to several days over large grids, and each new run replaces the previous one, so they are not stored as entities in a context broker. They stay in the Open-Meteo server and are converted to the WeatherForecastSeries format only when they are requested.
Components
-
Open-Meteo server: Downloads the new runs of the seven models and serves them from local storage. It keeps four variables: air temperature, precipitation, relative humidity and wind speed (details). It also publishes the time of the last synchronised run of each model.
-
SmartFlow API: REST API that offers the forecasts of all the models in a single format. It queries the Open-Meteo server on demand, and downloads and decodes HARMONIE-AROME from AEMET.
-
APISIX: API gateway of the VRAIN connector. It is the entry point for external requests: it checks the verifiable credential and the ODRL policy before forwarding a request to the SmartFlow API (Access control).
Stages of the flow
-
Synchronisation: The Open-Meteo server checks every 5 minutes whether a centre has published a new run, and downloads only the new data.
-
HARMONIE-AROME download: A background process of the SmartFlow API downloads the latest AEMET run every hour. AEMET publishes the precipitation as coloured images, which are decoded into millimetres per hour. The last valid run is also saved to disk.
-
On-demand query: When a user or service asks for a forecast, the SmartFlow API reads the requested point or area from the Open-Meteo server, or from the HARMONIE-AROME data. Answers are cached for a few minutes.
-
Standardisation: The result is returned as
WeatherForecastSeriesentities, with the time of the model run. The Open-Meteo models provide precipitation and temperature; HARMONIE-AROME provides precipitation. -
Delivery: The data are ready for simulations, dashboards and decision-support tools.
SmartFlow API operations
| Operation | Returns |
|---|---|
GET /weather/models |
Available models |
GET /weather/forecast/coordinates |
Latest forecast of a model at the grid point closest to a coordinate |
GET /weather/forecast/grid |
Latest forecast of a model at all the grid points of an area |
GET /weather/harmonie/status |
State of the last HARMONIE-AROME download |
Access
- External applications and users call
https://apisix-vrain.pgtec-vrain-dataspace.eu/smartflow/with aMachineCredentialor aServiceCredentialwith the rolesmartflow_user. The interactive documentation is at smartflow-vrain.pgtec-vrain-dataspace.eu. - Services of the data space use the forecasts inside the cluster: TETIS calls the SmartFlow API, and Nowcast reads the Open-Meteo server.