Repository navigation
Giano Architecture
Consider a temperature sensor that stopped reporting for a week. A useful reconstruction depends on which stations still report, whether an external weather field is available and which parts of the target record are visible before and after the outage. Giano represents these signals and their availability explicitly.
Release 1.0 fitted a separate model for each variable. Release 2.0 trains two multivariate ensemble members. Each reads six weather variables and learns corrections for four of them. The published members were selected after 32 and 20 training rounds respectively. Training and device options · Comparison on the same missing hours
Giano divides the outage into disjoint 72-hour output blocks. Even for a single failed instrument, Giano masks all measurements at the target station throughout the outage, including across block boundaries. Measurements before and after the outage remain available. In the German single-instrument study, exposing the other instruments improved temperature but increased pooled humidity and pressure errors. Single-instrument evaluation Each block has up to 24 station slots. Coordinates identify their spatial relationship. Within the physical reference, each variable considers up to eight neighbouring stations with that instrument. At least three eligible observations are needed to form a donor estimate. Otherwise the reference can use an independent weather field or a seasonal estimate from the allowed history.
The model receives the normalised measurements, availability and visibility masks, the physical baseline and its origin, auxiliary weather, calendar features, donor counts and station statistics. The pressure channel can use the difference between historical station pressure and co-located reanalysis surface pressure to correct their level mismatch.
Each of the six weather variables has its own input encoder. The model combines the encoded features with a station coordinate embedding. Temporal attention represents changes over the block, cross-variable attention connects the six weather fields at a station, and spatial attention combines information from other stations. Each ensemble member has 10,486 parameters.
The network predicts a correction to the physical estimate for temperature, humidity, pressure and precipitation. Its two selected members are decoded into physical units before averaging. Wind starts from the physical reference. With local context, week-long and longer outages can use a regression calibrated on the reporting stations. For 30-day and 90-day episodes, nearby rain gauges can inform a further rainfall correction. At calibrated Trentino stations, external weather alone can support a humidity correction or an independent rainfall-total estimate. That total is recorded separately from the hourly series. Model results and qualifications
The optional --local-context mode uses the same two checkpoints. The selected 72-hour neural window starts at the beginning of each output block. For short retrospective gaps, an explicit local estimate can use measurements on both sides, including the reading immediately before the block. On instrumented networks, past paired differences can also account for persistent offsets between target and donor stations. Rules and output labels
Module in src/giano/
|
Responsibility |
|---|---|
windows.py, pressure.py
|
Mask the outage, find neighbouring stations and construct the physical inputs |
model.py |
Apply temporal, variable and spatial attention |
prepare.py, train.py
|
Rebuild training windows and optimise the two ensemble members |
calibrated_neighbors.py |
Fit and apply the long-gap donor regression on earlier station observations |
local_context.py |
Calculate bounded station interpolation and offset-adjusted donor estimates |
inference.py, fill.py
|
Decode predictions, protect observed values and record the method |
evaluate.py |
Replay the historical masks and compare predictions on common observations |
See the training walkthrough to trace a window from the original files through an optimiser update and into the final NetCDF.