Repository navigation
Input and output
Supply an hourly NetCDF with dimensions time and station and coordinates latitude(station) and longitude(station) in WGS84. NetCDF measurement arrays need numeric values and an explicit units attribute as shown below. Alternatively, supply two CSV files with --input and --stations. Station identifiers are strings, including any leading zeros. Each station and timestamp pair must be unique.
station_id,timestamp,temperature,humidity
A,2024-03-01T00:00:00Z,5.4,81
A,2024-03-01T01:00:00Z,,83station_id,latitude,longitude
A,46.17,8.78CSV timestamps use ISO 8601 on whole hours. Explicit offsets are converted to UTC and timestamps without an offset are interpreted as UTC. Apply source quality flags and replace missing-value codes with empty fields before import. For CSV the column name implies its unit, so convert values before loading. The reader expands omitted hours onto an hourly grid.
| Field | Unit | Interpretation |
|---|---|---|
| temperature | degC | Air temperature |
| humidity | % | Relative humidity |
| pressure | hPa | Station pressure |
| precipitation | mm | Amount accumulated during the hour |
| wind_speed | m s-1 | Wind speed |
| wind_direction | degree | Wind direction |
Check what each instrument measures before mapping columns. Giano expects station pressure in hPa and precipitation accumulated over one hour in mm. Sea-level pressure and instantaneous rain rate represent different quantities. Keep dry hours at zero and missing rainfall empty. The Swiss sample shows the two CSVs for a provider that supplies temperature and wind. NOAA sample and provenance
Count observed hours separately for each instrument. A station can have a long temperature record and a much shorter wind record. After reconstruction, hide a few observed blocks of representative lengths and compare Giano with interpolation on the same hours. Evaluation on a new network
The output begins at --start and stops immediately before --end-exclusive. It can cross a year boundary. Include earlier observations to establish local history and later observations to surround the last reconstruction block. Inference uses 72-hour blocks with 48-hour margins on both sides. The first and last finite measurement delimit each instrument’s supported lifespan. An entirely absent sensor has no observed lifespan.
An independent hourly field can be supplied as aux_<variable> on the same grid and in the same units. For station pressure, a surface pressure field sp in Pa can be calibrated with at least 24 earlier paired observations. A new station needs at least four preceding observations of a variable to rely on its historical reference alone.
Use --trentino-calibration only for matching Trentino station identifiers and coordinates. For the calibrated external-only humidity correction, supply all five hourly ERA5 fields, aligned to each station: t2m in K, tp in metres during the hour, sp in Pa and u10 and v10 in m/s. On a new network, the default mode estimates local references from the input history preceding the requested interval. The Trentino importer preserves the measured humidity and includes a binary humidity_reference_valid field; only readings marked 1 contribute to humidity reference fitting.
With --local-context, temperature, humidity and pressure can use station endpoints and offset-adjusted neighbours. If two observed hours at the same station bound at most six missing hours, interpolate between them. Otherwise, when other stations report, correct each eligible donor by its median historical difference from the target over the 168 hours before that instrument first stopped reporting. Giano keeps those offsets across processing blocks, including when the requested output starts partway through the gap. Each donor needs at least 24 paired measurements. At each hour, take the median of the readings then available from up to eight nearest eligible stations. A donor that stops reporting contributes again when its measurements resume. A missing local estimate falls back to the standard reconstruction. Only hours already eligible for a finite fill can change. With --contemporary-only, donor estimates remain eligible and boundary interpolation is skipped. Development and transfer results
For outages of at least seven days, local context can reconstruct temperature, wind speed and wind direction from up to eight nearby stations. It fits a Ridge regression on the year before the true outage. Each donor needs at least 720 paired hours. Current donor readings and hour of day predict the target, with sine and cosine used for direction. If no eligible donor reports at an hour, the previous estimate and its source are retained.
With --station-reference, a 7–12 hour pressure gap uses linear interpolation when a valid station reading immediately precedes and follows it. For other pressure gaps, Giano checks each finite estimate against the median of at least 24 valid pressure readings in the 168 hours before the gap. It substitutes that median when the difference exceeds the larger of 20 hPa and four times the interquartile range divided by 1.349. Real storms can also exceed this band. For wind direction, a gap of at most 12 hours can use the immediately adjacent measured directions. With both endpoints, interpolate along the shortest arc. Exactly opposite directions leave the original estimate in place. With one endpoint, carry its direction across the gap. Beyond 12 hours the endpoint rule leaves the existing wind estimate in place. The option can run after --local-context. Both station-reference rules are skipped under --contemporary-only, and cells lacking a finite estimate stay empty.
The neural model was trained on whole-station outages. During each gap it masks all observed channels at the target station, even if only one instrument failed. For example, a working humidity sensor at that station is preserved in the output, but its reading during the gap is unavailable to the neural temperature estimate. Other stations can still contribute their observed channels.
For each requested variable, the original observations remain alongside *_filled, *_method and *_reference. For example, selecting hours where temperature_method == "point-pair" isolates temperatures estimated by the ensemble. Selecting observed recovers the measured hours. The integer reference codes are stored in the NetCDF field attributes. The global attributes ensemble_sha256 and reference_sha256 identify the weights and station calibration used for the run.
| Method | Meaning |
|---|---|
| observed | Copied directly from the input |
| station-interpolation | Linear interpolation between observed target station readings |
| offset-neighbors | Median of offset-adjusted neighbouring readings under local-context mode |
| calibrated-neighbors | Regression fitted to the target and reporting neighbours before a long outage |
| point-pair | Average of the two selected neural predictors |
| rain-neighbors, humidity-era5 | A calibrated precipitation or humidity correction applied |
| recent-pressure-level | Median pressure from the week preceding the gap |
| circular-interpolation | Shortest-arc interpolation between observed wind directions |
| adjacent-direction | Wind direction from the only adjacent observed endpoint |
| physical-wind | Wind estimated from the physical reference |
| outside-record, insufficient-context | Outside the instrument’s observed lifespan or lacking a complete inference window |
| no-local-reference, unavailable | Local history or other valid support was insufficient for an estimate |
| historical-reference | A history-only estimate was withheld under the contemporary-only policy |
| calm-wind | Direction is undefined at zero observed wind speed |
Reference codes are 0 (none), 1 (neighbouring stations), 2 (external field), 3 (history), 5 (observations bounding the gap) and 6 (one adjacent observation). They identify the underlying physical reference. A humidity-era5 correction also uses contemporary fields. Use --contemporary-only to withhold fills supported only by a historical physical reference. A separate rainfall-volume estimate, when available, is recorded in the global attribute independent_rain_totals with station, start, duration and millimetres.