Skip to content
Fabio Serra Pereira

← Complementary studies

Weather forecast at a single point

2026 · personal study · temperature, humidity, wind and rain

A solver computes the air column. A neural network corrects the error of each step.

Public data · measured in hindsight

lights up: predict

Measured in hindsight, outside training, with the surrounding atmosphere already known: the method’s best case, not the live forecast.

The simulation

A column of air, hour by hour.

Sketch of the simulationThe global forecast sets the large-scale conditions. The air column above the point, in 41 levels up to 1 km, advances 1 hour in the solver; the neural network corrects the step; the loop repeats 168 times. Outputs: temperature, humidity, wind and chance of rain.global forecastthe large scale1 kmair column41 levels×1687 dayssolver1 hneural networkcorrects the steptemperaturehumiditywindchance of rain12345 Sketch of the simulationThe global forecast sets the large-scale conditions. The air column above the point, in 41 levels up to 1 km, advances 1 hour in the solver; the neural network corrects the step; the loop repeats 168 times. Outputs: temperature, humidity, wind and chance of rain.1 kmair column41 levels×1687 dayssolver1 hnetworkcorrectsthe step12345
  1. The global forecast sets the large-scale conditions.
  2. The air column above the point: 41 levels up to 1 km.
  3. The solver advances 1 hour.
  4. The network corrects that step’s error: it moves heat and water between levels and slows the wind.
  5. 168 steps: 7 days. A new run every 6 h.
Sketch. Rain comes from the column’s water balance, corrected by a second network.

Results

The network corrects the solver’s error.

Outside training: 10 blocks from 2024 and 2025 · mean absolute error, lower is better

Temperature °C

  1. Solver only1.42
  2. Solver + network1.34

−6%, better in 8 of 10 blocks.

Humidity %

  1. Solver only11.08
  2. Solver + network9.85

−11%, better in all 10 blocks.

Wind m/s

  1. Solver only10.10
  2. Solver + network0.90

−91%, better in the 5 blocks with measured wind.

Each block is forecast by a network that did not see it in training. On wind, the solver alone overestimates by 10 m/s, and the network removes that bias.

Against the global forecast, at 9 pm in 2024: best case · mean absolute error, lower is better

Temperature °C

  1. Persistence1.82
  2. Climatology1.46
  3. Global forecast1.31
  4. Solver only1.41
  5. Solver + network1.31

Tie: 1.313 vs 1.307.

Humidity %

  1. Persistence3.46
  2. Climatology7.49
  3. Global forecast13.16
  4. Solver only16.31
  5. Solver + network5.22

2.5× less error than the global forecast. Persistence does even better.

Wind m/s

  1. Persistence0.61
  2. Climatology0.50
  3. Global forecast0.73
  4. Solver only3.51
  5. Solver + network1.42

The network removes 59% of the solver’s error. It still trails all three references.

On the coast, one hour a day (9 pm), against an official INMET station. Persistence: repeat the last value. Climatology: the average for the hour and season. The global forecast is scored as issued; the column got the large scale from ERA5, and the network had seen 2024.

Rain

Physics alone raises too many false alarms. The network cuts them down.

Hourly rain score (CSI) · higher is better

Coast

  1. Physics only0.077
  2. Physics + network0.288
  3. Global reanalysis (ERA5), other period0.32

CSI 3.7× higher, with wide spread between blocks.

Plateau, drier

  1. Physics only0.081
  2. Physics + network0.221

CSI 2.7× higher.

Five blocks outside training, with the atmosphere at each hour already known. ERA5 is from another period: it only gives the order of magnitude.

The limit

To scale up, the limit is the machine.

Compute time per simulated week, on a personal computer

  1. Solver only15.9 s
  2. Solver + network108.8 s
  3. Network instead of the solver398.7 s25×, no gain: left out
  • It ran on a personal computer and a 4-core server (the forecast uses 2).
  • Scoring 2024 with the network: 359 seven-day runs, one per day, about 11 h of computing.
  • One point at a time, in a 1 km column.
  • More machine: many points at once and a tall column, which rain microphysics needs.

Applications

For anyone who depends on the weather.

  • Solar and windgeneration and curtailment over the coming days.see Curtailment
  • Agricultureirrigate, spray and harvest at the right time.
  • Construction and logisticsthe window for outdoor work.
  • Citieshourly chance of rain, for drainage and alerts.

Possible applications, not yet tested in the field.

Still open

  • Redo the scoreboard against the global forecast at every hour, with a network that has not seen 2024.
  • Live blind test: set up, waiting for official station data.
  • Correct for the distance between the model point and the station.

Tools

  • physics-informed neural network
  • Python
  • PyTorch
  • NumPy
  • SciPy
  • xarray
  • ERA5 (Copernicus)
  • INMET
  • Open-Meteo
  • Docker