Solar forecasting explained · Published article, open code
The γ-index: tolerance-based validation of spatio-temporal forecast fields
In brief
- The 3D γ-index accepts a forecast point when an observation lies within joint tolerances in space (DTA, distance to agreement), time (TTA, time to agreement) and intensity (IDT, intensity difference threshold): γ ≤ 1 passes, and the γ passing rate (GPR) and the mean γ summarize a field.
- It addresses the double penalty that pixel-wise scores such as the RMSE (root mean square error) give to small displacements of coherent structures; over Corsica (DTA = 1 pixel ≈ 2 km, TTA = 30 min, IDT = 50 W/m²) the article proposes GPR > 80 % and a mean γ below 0.7 as practical thresholds.
- Published by C. Voyant in the International Journal of Forecasting 42(4), 1207-1214 (2026); MATLAB code, doi:10.5281/zenodo.21755936.
What does this forecast study add?
This work applies joint spatial, temporal and intensity tolerances to forecast verification. Tolerances represent application choices; the work does not claim invention of the medical-physics gamma-index.

Cyril Voyant · Updated 2026-10-20
The γ-index for forecast verification, proposed by Cyril Voyant in the International Journal of Forecasting (2026, doi:10.1016/j.ijforecast.2026.03.002 · BibTeX), accepts a forecast point when an observation agrees within joint spatial (DTA), temporal (TTA) and intensity tolerances, so displaced but correct cloud structures are not double-penalized.
Questions and answers
How can forecast verification account for spatial and temporal displacement?
Use a tolerance-based score instead of a pointwise one. The γ-index (Voyant, International Journal of Forecasting, 2026, doi:10.1016/j.ijforecast.2026.03.002 · BibTeX) accepts a forecast point when an observation agrees within a spatial distance (DTA), a time shift (TTA) and an intensity difference (IDT). A cloud structure that is right but slightly displaced is then not penalized twice, as it is by RMSE or MAE.
Which tolerances are needed for gamma-index forecast evaluation?
Three: DTA, the spatial tolerance in kilometres; TTA, the temporal tolerance in minutes; and IDT, the intensity tolerance in W/m² for irradiance. Gamma ≤ 1 marks agreement within the combined criterion, and the Gamma Pass Rate is the share of points meeting it. The article sets DTA to one grid spacing, TTA to half a time step when images are interpolated (30 min in its Corsica study) and IDT to an acceptable deviation (50 W/m², about 10 %); a ±50 % change of a tolerance changed GPR by less than 10 % in its tests. Keep pointwise errors and the bias alongside γ.
Research question
Pointwise errors can penalize a forecast structure that is displaced in time or space. The gamma-index asks whether a forecast value agrees with a nearby observation within explicitly chosen spatial, temporal and intensity tolerances.
The theory
Why, in the words of the article: local scores such as RMSE or MAE severely over-penalize small spatial or temporal displacements of coherent structures, the double penalty issue. A correct cloud forecast slightly displaced is penalized once where the cloud was forecast and once where it occurred. The 3D γ-index, introduced for radiotherapy dose verification (Low et al., 1998) and applied here for the first time to spatio-temporal forecast validation, maps forecast and observation into a normalized tolerance space where location, time and intensity form a single distance. The equation numbers are those of the article.
Definitions
- \(I_{\mathrm{pred}},\ I_{\mathrm{obs}}\)
- forecast and observed fields, in the same unit (for example W/m²)
- DTA
- distance to agreement: spatial tolerance
- TTA
- time to agreement: temporal tolerance
- IDT
- intensity deviation tolerance, for example 50 W/m², calibrated from sensor uncertainty or grid operational limits
- \(\Omega_{\mathrm{DTA}},\ \Omega_{\mathrm{TTA}}\)
- search neighborhoods \(|x-x'|\le\tfrac32\mathrm{DTA},\ |y-y'|\le\tfrac32\mathrm{DTA}\) and \(|t-t'|\le\tfrac32\mathrm{TTA}\), beyond the tolerance boundary so that a feasible match is identified
The γ-index (Eq. 1) and its passing rate (Eq. 2)
$$\gamma(x,y,t)=\min_{\substack{(x',y')\in\Omega_{\mathrm{DTA}}\\ t'\in\Omega_{\mathrm{TTA}}}}\sqrt{\frac{(x-x')^2+(y-y')^2}{\mathrm{DTA}^2}+\frac{(t-t')^2}{\mathrm{TTA}^2}+\frac{\big(I_{\mathrm{pred}}(x,y,t)-I_{\mathrm{obs}}(x',y',t')\big)^2}{\mathrm{IDT}^2}},$$ $$(1)$$A prediction passes when \(\gamma(x,y,t)\le1\), the boundary of the unit tolerance region in the normalized γ space. With \(N=N_xN_yN_t\) the number of evaluated points (cells in each direction, images) and \(\mathbb 1\) equal to 1 when its condition holds:
$$\mathrm{GPR}=\frac1N\sum_{i=1}^{N}\mathbb 1\!\left(\gamma_i\le1\right)\times100\,\%,$$ $$(2),$$ $$\bar\gamma=\frac1N\sum_{i=1}^{N}\gamma_i,$$ $$\gamma_{\max}=\max_i\gamma_i .$$The γ passing rate (GPR) is bounded; \(\gamma_{\max}\) highlights localized important mismatches that domain averages hide.
Choosing the tolerances (§2.3)
- Keep them consistent with the native resolution: DTA is set to one grid spacing (one pixel); TTA can be limited to half a time step (\(\Delta t/2\)) when consecutive images are interpolated linearly; IDT is an acceptable relative deviation, often 10 % for radiative or energy quantities.
- The article adopts DTA = 1 pixel (≈ 2 km), TTA = 30 min and IDT = 50 W/m² over Corsica. Sensitivity tests: a ±50 % change of DTA, TTA or IDT changes GPR by less than 10 % and \(\bar\gamma\) by less than 0.3, for these conditions.
- Practical thresholds proposed in the conclusions: GPR > 80 % and \(\bar\gamma<0.7\) for a reliable forecast field.
What the article shows
On HelioClim-3 and CAMS fields over Corsica (about 2 km, a decade of data), with controlled displacements and noise, the pixel-wise RMSE varies between 20.95 and 37.65 W/m², while \(\bar\gamma\) stays between 0.29 and 0.35 and GPR between 67.35 and 68.64 %: the γ criterion is robust to small displacements and isolates real discrepancies. These GPR values remain below the practical 80 % threshold: stability under small displacements does not validate every field. The two scores agree under clear or fully overcast skies; they differ most under broken clouds, where sharp gradients amplify pointwise penalties. Keep the mean bias (MBE) alongside: it reveals monotonic shifts even when γ is acceptable.
Limitations (§5) and perspective
The temporal component is not fully exploited in this first implementation (the validation focuses on the spatial dimension); a finer TTA or a full temporal search is needed for transient phenomena, and a TTA equal to the whole sampling interval can favor persistence. DTA = 1 pixel suits moderate resolutions (1 to 5 km), not grids coarser than 5 to 10 km. The 10 % IDT is a baseline; the operational rules of each variable should set it. Because γ is continuous and differentiable almost everywhere, the article suggests, beyond its scope, a tolerance-aware training loss \(\mathcal L_{\mathrm{total}}=\mathcal L_{\mathrm{data}}+\lambda\,\mathbb E[\max(0,\gamma-1)]\) (Eq. 3), with \(\lambda\) a weight: a perspective, not a validated training result.
Units in the reference implementation
computeGammaMetrics.m measures the spatial distance in grid cells and the time shift in image steps, then divides them by DTA (km) and TTA (minutes). The terms of the formula are in km and minutes only when one cell is 1 km and one step is 1 minute. In practice:
- Space: give the forecast and observed maps on a 1 km grid and keep
res_ini = res_end = 1. The built-in spatial rescaling multiplies the image size byres_end/res_ini, which coarsens the grid instead of refining it whenres_endis smaller thanres_ini. - Time: set
timestep_end = 1/60(hour). The function then interpolates the observed sequence linearly to 60 times as many images over the same time span, a step of about one minute (0.96 min for 24 hourly maps), which multiplies the run time. - Otherwise, convert the distances to km and minutes before comparing them with the tolerances. Eq. (2) counts spatio-temporal points; the public function returns a two-dimensional γ map and computes its GPR over pixels: state which one you compare.
The public example uses 1 km cells (consistent) and 1-hour steps with timestep_end = 1: its temporal term is in hours divided by minutes, so a one-hour shift weighs \((1/30)^2\) instead of \((60/30)^2\).
Reproduce the public example
The repository provides main.m with synthetic maps and the function computeGammaMetrics.m. Follow its MATLAB and toolbox requirements. Synthetic examples demonstrate the workflow and do not reproduce access-restricted satellite observations.
% From the downloaded repository directory:
main
Check physical pixel size, time-step units, temporal window and field alignment before using real data. Consult the function reference for the full signature.
Tolerances are part of the result
Choose tolerances from the application before comparing methods and report sensitivity. The article proposes GPR > 80 % and a mean γ below 0.7 as practical thresholds; a pass rate alone does not replace the bias and pointwise errors. The repository's example thresholds are not universal validation standards. Report pointwise errors alongside gamma and document edge effects and resampling.
Publication status and citation
The companion article, “A tolerance-based framework for spatiotemporal forecast validation using the γ-index”, is published in International Journal of Forecasting, 42(4), 1207–1214 (2026). Read the published article. The repository README retains an older review-status notice. Software DOI · Source, current citation and licence.
Related: NICEᵏ metrics · persistence and BLEND · PV_ELM_pred benchmark.
Research explained
Read the findings, evidence and limits in these research stories.
Download the paper references (BibTeX, complete author lists)
Try it in your browser
Move a forecast cloud away from the observed one, make it late or biased, change the three tolerances, and compare the γ map and its passing rate with the pointwise error: the double penalty, seen pixel by pixel.
See also: the calculator in the main catalogue (French) · the solar forecasting course.
Need this method on your own data? Collaborate: a joint answer to a call for projects, a research contract with Mines Paris – PSL, or academic work with a clear valorization objective.
Links
| Article | C. Voyant, A tolerance-based framework for spatiotemporal forecast validation using the γ-index, International Journal of Forecasting 42(4), 1207–1214, 2026, doi:10.1016/j.ijforecast.2026.03.002 · BibTeX |
|---|---|
| Code | github.com/cyrilvoyant/temporal-gamma-index |
| Archive (all versions) | doi:10.5281/zenodo.21755936 (Zenodo) |
| Software Heritage | permanent archive of the repository |
| The story, for everyone | Beyond pointwise errors |
| The approach | Understand before you compute |
| Author | Cyril Voyant (Mines Paris – PSL, O.I.E.) · ORCID · www.cyrilvoyant.com |