skip to main content

gaia data release 4 documentation

15.2 Global processing

15.2.3 Processing steps

15.2.3.1 Overview

Refer to caption
Figure 15.1: Gaia DR4 variability processing overview. Besides the time-series data and statistical parameters, the data products appearing in Gaia DR4 (yellow boxes) originated from a general supervised all-sky classification, Specific Objects Studies (SOS), as well as the new unsupervised and spurious signal table. All data products have a dedicated table in the Gaia archive, as summarised in Section 15.1.2.

An overview of the variability processing is presented in Figure 15.1. Our application of time-series operators and a general selection of ≥5 FoV transits in the G band selected 2.0 billion sources, which were processed through the different parts of the variability pipeline, as detailed in the following sections.

15.2.3.2 Initial time-series pre-processing

Definition of observation time

Observation times were expressed in units of Barycentric JD (in TCB) −2 455 197.5 days, computed as follows:

  1. 1.

    The observation time was converted from On-board Mission Time (OBMT) into Julian date in TCB (Temps Coordonnée Barycentrique).

  2. 2.

    A correction was applied for the light-travel time to the Solar System barycentre, resulting in Barycentric Julian Date (BJD).

Conversion from flux to magnitude

In the variability pipeline, magnitudes rather than fluxes were generally used in the various processing modules. To convert to magnitude, the zero-point magnitudes for G, GBP, GRP, and GRVS in the Vega system were used (Section 5.4.2.2 and Section 6.3.5).

Measurement filtering

The variability processing included several operators, which were applied to the time-series photometry. Typical time-series operators performed flux-to-magnitude conversion, outlier removal, and error cleaning on the input time series, to create derived (transformed and/or filtered) time series suitable for processing by subsequent algorithms. These time-series operators were chained in a hierarchy of derived time series, which were used as required by the scientific analyses, while ensuring that provenance was preserved.

Refer to caption
Figure 15.2: The main operator chain which was used to transform and filter photometric time series.

The following list of operators, for which the hierarchy is illustrated in Figure 15.2, was applied sequentially to the input photometric time series in the G (per-CCD and FoV), GBP, and GRP bands, as specified in the following:

  1. 1.

    RemoveOneCCDFromRowAcOperator: it is designed to remove one G-band CCD measurement (defined by its CCD number, between zero and nine, zero standing for the Sky Mapper and one to nine for the Astrometric Field CCDs) from each transit of G per-CCD data for which the measurements correspond to a certain CCD row and the across-scan (AC) coordinate is outside a certain range (minimum AC=3, maximum AC=1990). It was motivated by the fact that the photometric calibration team reported problematic flux measurements for the second Astrometric Field (AF) CCD of row 5, when AC is greater than 1200. Hence, in Gaia DR4 this operator was tailored to remove the AF2 points for transits with CCD row=5 and AC coordinate >1200.

  2. 2.

    RemoveNaNNegativeAndZeroValuesOperator: it removes photometric transits that contain NaN, negative, or zero flux values, for measurements in G per-CCD, GBP, and GRP.

  3. 3.

    RemoveDuplicateObservationsOperator: It removes pairs of transits (in G per-CCD and FoV, GBP, and GRP) that are too close in time (within 105 min for FoV measurements) to be observations of the same source. Such transits can occur in bright sources, for which multiple artefact detections are assigned (these are known as ‘far double detections’). Since we did not have access to the flags identifying the double detection transits, this ad-hoc method was applied, by which close-in-time pairs of transits were removed.

  4. 4.

    FlagBitmaskFilterDr4Operator: it filters GBP or GRP transits if any of their CCDs are flagged with a hot column or numerical saturation.

  5. 5.

    RemoveTransitCcdOutliersMadOperator: it removes outliers in G-band per-CCD time series as described in Eyer et al. (2026).

  6. 6.

    PhotometricCcdToFovMeanOperator: the mean G FoV transit flux is recomputed after possible outlier removals by RemoveTransitCcdOutliersMadOperator. The computation of mean flux from the remaining G per-CCD measurements followed the same recipe used by Evans et al. (2026). These recomputed G FoV transits are not published in the Gaia archive.

  7. 7.

    GaiaFluxToMagOperator: flux measurements in G per-CCD, G FoV, GBP, and GRP are converted into magnitudes by using zero-point magnitudes in the Vega system (Section 5.4.2.2).

  8. 8.

    MultibandOutlierRemovalOperator: this operator (introduced in Gaia DR3) takes the advantage that G, GBP, and GRP data are quasi-simultaneous and share the same transit_id. It removes data by identifying outliers in the different bands and takes into account the other bands in deciding whether the transit is a ‘real’ outlier to remove from a specific band, or not. The procedure followed by the operator is as follows:

    1. (a)

      In each band, a transit is flagged as a candidate outlier if the ratio

      iqrMedianMag=|mag−median(mag)|IQR(mag)

      is above a threshold of three, where mag is the transit magnitude in a band, median(mag) is the median magnitude of all transits, and IQR(mag) the interquartile range of the input time series.

    2. (b)

      A sum is computed where each band with a flagged transit (candidate outlier) is counted as a unit with a positive or negative sign for an outlier that is brighter or fainter than the median magnitude, respectively (thus, the sum can range from −3 to +3). If the absolute value of the sum is ≥2 and the outlier in the G band has the same sign as the outlier in another band, candidates outliers are considered as non-outliers (thus outliers in GBP and GRP but not in G are considered as real outliers). If there is a single outlier candidate in one band but without measurements in the other bands, the point is kept as non-outlier.

    3. (c)

      If only one band has a candidate outlier and measurements exist (in the same transit) in the other bands, the threshold for candidate outlier is reduced to one and the same procedure is followed as described in the previous item. Additionally, if there are outlier candidates and one of them has a different sign, only the outlier with a different sign from the one in the G band is flagged as real outlier.

    4. (d)

      For the remaining candidate outliers, the iqrMedianMag in GBP and/or GRP are divided by the one in G. If the ratio is above five, the outlier in GBP and/or GRP is considered as a real outlier. The same is repeated employing the lower iqrMedianMag threshold of one.

    5. (e)

      Finally, the following ratio

      iqrMedianMagError=|magError−median(MagError)|IQR(magError)

      is used with a threshold of 20 for G and 10 for GBP and GRP to flag transits with outlying errors. These conditions were applied to each band independently of the other bands and they were not used if the transit was initially a candidate outlier (in magnitude) that was eventually ruled as non-outlier.

    This operator decreased the number of outliers considerably, while properly keeping the ones due to real astrophysical properties (e.g., flares, eclipses), but spurious outliers still remained (and can be particularly significant in GBP and GRP). Moreover, this operator is not suitable to detect ‘impostor’ transits from nearby sources (mistakenly assigned to the incorrect source), as their bright or faint deviations are typically consistent in all bands.

  9. 9.

    TimeIntervalFilter: it removed measurements in each individual band for OBMT in specific time ranges. Problematic observation times were identified based on a sample of one million sources spread over all the sky uniformly, from which we identified suspicious time ranges (due to known issues of the Gaia spacecraft or correlations of iqrMedianMag with the Gaia scanning law). The time ranges were independently determined for the G, GBP, and GRP bands.

  10. 10.

    ExtremeValueCleaning: it removed measurements above specific magnitude limits, namely G=24.5, GBP=24, and GRP=23.5 mag.

  11. 11.

    ExtremeErrorCleaningMagnitudeDependent: It removed individual transits above and below magnitude-dependent thresholds, which were determined as follows. From a sample of the photometric catalogue with at least 10 FoV transits in the G band and for each band (limited to 6000 sources per 0.05 mag bin, for the golden, silver, and bronze data sets), we studied the quantile distribution of the transit magnitude errors and decided to use the 0.03 % and 99.9 % quantiles for the lower and upper limits, respectively, for data in the G band. For GBP, we used the 0.01 % and 99.95 % quantiles for the lower and upper limits, respectively, while we used 0.01 % and 99.9 % for GRP. The operator was not applied to G per-CCD photometry.

  12. 12.

    ErrorRenormalizationOperator: the uncertainties of time-series measurements in G (per-CCD and FoV), GBP, and GRP bands were renormalised as described in Evans et al. (2026). Such renormalised uncertainties are not published in the Gaia archive.

  13. 13.

    RemoveOutliersFaintAndBrightOperator: applied to photometric time-series in G (per-CCD and FoV), GBP, and GRP, this operator was the input for the main processing steps, as well as for specific work packages (e.g., eclipsing binaries, planetary transits, RR Lyrae stars, and Cepheids). It removed transits as follows (with configuration parameters described, where relevant, in the respective data product sections):

    1. (a)

      A measurement with an excessively large error (intrinsically or compared to some number of times the IQR of the distribution of uncertainties) is deemed an outlier and is removed.

    2. (b)

      Outliers at the extremes of the magnitude distribution of a time series are identified when their deviations from the median magnitude exceed a certain number of times the IQR (with different thresholds possible at the bright and faint ends). Such measurements are removed from the time series, unless they have similar outlying measurements in time or projected in magnitude.

  14. 14.

    GaiaMagToFluxOperator: after magnitude-based operators, time-series magnitudes in the FoV G, GBP, and GRP bands are converted back to flux using Vega-system zero points (Section 5.4.2.2) for processing by flux-based algorithms.

The G photometric time series derived from the RVS spectra were filtered by the RvsMadOutlierRemovalToPhotometricOperator, which removed NaN values using a similar approach to that of RemoveOutliersFaintAndBrightOperator but using the median absolute deviation (MAD) instead of the IQR, followed by RemoveDuplicateObservationsOperator, as described above.

Other operators were applied to data of other types:

  1. 1.

    Radial velocity time series: the same two operators used for the GRVS photometric time series were applied.

  2. 2.

    RP time series spectra (used by SOS Long Period Variables): a simple operator (BpRpSpectraCut) cut measurements at both ends of the spectra by 7 array indices.

  3. 3.

    Astrometric time series were used in the processing of Microlensing candidates, as well as for the astrometric periodogram and models published in the spurious_signal table, their specific configurations are described in Section 15.11.2 and Section 15.19.2, respectively.

Published output

The Gaia DR4 photometric, spectroscopic, and radial velocity time series are available as datalink products. The variability flags can be accessed in the vari_epoch_flags table.

15.2.3.3 Statistical parameter computation

Input

Clean photometric and radial velocity time series (Section 15.2.3.2) with at least one FoV transit.

Method

Following the pre-processing and basic time-series cleaning described in Section 15.2.3.2, the first step in the scientific processing chain is the computation of a number of descriptive, inferential, and correlation statistics for all time series. These parameters provide a first general overview of the data and their distributions and are used to determine whether variability is present in a time series of Gaia observations.

Descriptive statistics computed on the temporal dimension include the time duration of the time series and the mean of their observation times.

Parameters characterizing the distribution of time-series measurements and their uncertainties include the mean, median, standard deviation, skewness, and kurtosis. These five metrics are provided for both magnitude and flux, whereas the remaining metrics are calculated from magnitudes only. The latter include the minimum, maximum, (trimmed) range, point-to-point scatter (Abbe or von Neumann parameter; Abbe 1863; von Neumann et al. 1941; von Neumann 1941, 1942), one-band Stetson index (Stetson 1996), interquartile range, median absolute deviation from the median, a measure related to the signal-to-noise ratio, and the maximum ratio of the absolute deviation of a measurement from the median to its uncertainty. A subset of these metrics is also used to characterize radial-velocity measurements. Where applicable, sample-size-unbiased and unweighted estimators are published.

The Pearson and Spearman correlation statistics are computed on all permutations of pairs of the three photometric bands (G, GBP, and GRP). The time series are filtered to remove unpaired observations and hence the correlations are computed on time series of equal length, containing only observations paired in the same transit. While not a correlation coefficient, the two-band Stetson index measures the degree of correlation between normalized residuals in two bands and it is computed on GBP vs GRP, G vs GRP, and G vs GBP.

Published output

Gaia DR4 statistical parameters of photometric time series are published in the vari_summary table and those of radial velocities in the vari_rad_vel_statistics table.

The code calculating the two-band Stetson index was affected by a bug when measurements in one band extended to later times than those in the other band. In a one-per-cent random sample of the published two-band Stetson indices, the fractions of sources for which the corrected values differ from the published values by more than 0.1 (0.2) are as follows:

  1. 1.

    stetson_mag_bp_rp: 2.9 (2.0) per cent;

  2. 2.

    stetson_mag_g_rp: 6.8 (4.7) per cent;

  3. 3.

    stetson_mag_g_bp: 8.4 (5.7) per cent.

15.2.3.4 Period search and time series modelling

Input

Period search was applied to cleaned (Section 15.2.3.2) photometric G-band time series (expressed in magnitudes as a function of time in days) with ≥10 FoV transits, without limitations on the source being flagged as variable (which was the case in previous data releases like Gaia DR3). For a subset specified in section Section 15.19, a photometric scan-angle model was additionally computed.

On the astrometric side, using cleaned astrometric time series (see Section 15.19.2) two ‘circular orbit’ periodograms were computed, as well as an astrometric scan-angle model for a subset specified in section Section 15.19.

Method

The process of frequency (or period) search and time series modelling, collectively referred to as Variability Characterization, aims to characterize the variability behaviour of time series of Gaia measurements.

Photometric Fourier model The photometric variability can be modelled using a classical Fourier decomposition approach under the assumption that the light curve is mono- or multi-periodic, and is used in various specific objects models. The goal is to produce, in an automated manner, the simplest and statistically most significant periodic model of the observed variability. For non-periodic light curves, this model is usually non-informative. The general description of this model y⁢(t) fitted to Gaia photometric time series for periodic variations in time t is given by:

y⁢(t)=∑n=1Nf∑k=1Nh⁢(n)An,k⁢cos⁡(2⁢π⁢k⁢fn⁢t+ψn,k)+∑i=0Npci⁢ti, (15.1)

where Np≥0 is the degree of the polynomial model, Nf≥0 is the number of detected frequencies, and Nh⁢(n)≥1 is the maximum number of harmonics tested for frequency fn; only the significant (not necessarily successive) harmonics are retained. The reference epoch is set to the middle of the time series and is already subtracted from the time t. Note that this models is not generically computed nor exported, but has been used in various specific modules with different constraints, e.g. regarding the maximum number of harmonics to be fitted.

Photometric periodogram The photometric periodogram is computed following the description of phot_g_freq and provided in that field of the spurious_signal table: using the selected G-band FoV observations counted in photGNObs an unweighted periodogram is made using Generalised Least-Squares (Heck et al. 1985; Cumming et al. 1999; Zechmeister and Kürster 2009). This is an extension of the Fourier periodogram on uneven sampled data that is independent of the mean of the data.

To compute the periodogram, the Gaia photometric time series is fitted for each frequency sampled fi against a function θ1+θ2⁢cos⁡(2⁢π⁢fi⁢t)+θ3⁢sin⁡(2⁢π⁢fi⁢t) by minimizing the square difference between the data and the model. The offset, θ1, accounts for the difference between the mean of the sampled data and the mean of the fitted function. The periodogram then results from these squared differences, negated and normalized, such that the higher the periodogram amplitude is, the more the corresponding frequency contributes to the observed signal.

We then select peaks, i.e. the best contributing frequencies, by identifying the ones that maximize this amplitude and perform a local quadratic interpolation as a refinement. For the best peak, we compute the False Alarm Probability (FAP, see Baluev 2008), which estimates the possibility that no signal is present in the data under the hypothesis that the noise is additive, white, and Gaussian with zero mean. If we denote by fm⁢a⁢x the best peak frequency and by Pm⁢a⁢x its amplitude, the false alarm probability is bounded by:

F⁢A⁢P≤(1−Pm⁢a⁢x)N−32+eln⁡(Γ⁢(N−12))−ln⁡(Γ⁢(N−22))⋅fm⁢a⁢x⋅4⁢π⋅Dt⋅(1−Pm⁢a⁢x)N−42⋅Pm⁢a⁢x,

where N is the number of observations, Dt the variance of the observation epochs. Once computed, this value is truncated in the interval [10−300;1] to compensate for numerical errors.

We also associate to the identified frequencies a measure of signal detection efficiency (SDE, see Alcock et al. 2000b; Kovács et al. 2002), as a quantification, expressed in number of standard deviations (σP), a candidate frequency (f) is from the baseline of the periodogram (P⁢(f)¯):

S⁢D⁢E=P⁢(f)−P⁢(f)¯σP

Photometric periodogram binning

Binning consists in repeating the process of peaks identification on a narrower interval of frequencies. It does not require recomputing amplitude, but multiplies the number of results to identify and to store. For Gaia DR4, we use a logarithmic bins definition such that intervals are smaller towards the small frequencies, reducing the risk of considering aliases.

If we divide the global frequency interval f0;fm⁢a⁢x into B bins, let us define δB=(log⁡(fm⁢a⁢x)−log⁡(f0))/B. Bin number k∈[0;B−1] is then defined as the interval:

[10log⁡(f0)+k⋅δB;10log⁡(f0)+(k+1)*δB]

Photometric scan-angle model Details of the photometric scan-angle model can be found in Section 15.19.3.4.

Astrometric periodograms Details of the astrometric periodogram can be found in Section 15.19.3.5.

Astrometric scan-angle model Details of the astrometric scan-angle model can be found in Section 15.19.3.6.

Run-time configuration parameters

The configuration of the different models is as follows:

  1. 1.

    Photometric frequency search (GPU accelerated periodogram):

    1. (a)

      at least 10 transits in the G band,

    2. (b)

      no de-trending applied prior to the frequency search,

    3. (c)

      frequency searched with the Least Square method (with floating mean; Cumming et al. 1999; Zechmeister and Kürster 2009),

    4. (d)

      minimum frequency of 4.124×10−4 d−1 (∼2424 d),

    5. (e)

      maximum frequency of 25 d−1 (57.6 min),

    6. (f)

      frequency step of 2.5×10−5 d−1 and quadratic interpolation using the 3 samples around the highest peak to estimate a refined frequency.

  2. 2.

    Photometric scan-angle modelling (see Section 15.19.3.4 for details):

    1. (a)

      Two scan-angle harmonic components were fitted together with an offset: ‘K024’.

  3. 3.

    Astrometric periodograms (see Section 15.19.3.5 for details):

    1. (a)

      For the first periodogram a circular model was fitted,

    2. (b)

      and for the second periodogram two additional scan-angle dependent terms ‘K35’ were fitted for each frequency step.

  4. 4.

    Astrometric scan-angle modelling (see Section 15.19.3.6 for details):

    1. (a)

      A scan-angle only model with two harmonic components was fitted ‘K35’.

Published output

We describe below where to find the various fields that were published.

Usage in other modules The output of the photometric period search was used as input for the general classification module (see Section 15.2.3.6). Some SOS work packages made use of period search results, often recomputing on slightly differently filtered time series or with different configuration settings (e.g. frequency ranges), and they often ran their specific version of the (harmonic) modelling.

Photometric periodogram Values were published in spurious_signal fields: phot_g_freq, phot_g_freq_ampl, phot_g_freq_sde, and phot_g_freq_fap.

For the spurious_signal table outputs please consult Section 15.19 for details on their cardinality and under which conditions they were provided.

15.2.3.5 General variability detection

Input

In contrast to the previous data releases variability analyses were not only performed on FoV averaged photometry in the G, GBP, and GRP bands but also on per-CCD photometry. Additionally Primary and Secondary photometric sources received a different treatment.

Method

The General Variability Detection (GVD) employed different supervised classifiers for photometric Primary and Secondary sources to identify candidate variables. Details about the method are provided in Section 15.3.

Published output

The data products from this processing step were published in Gaia DR4 in the table vari_gvd_classifier_feature. This table provides the GVD posterior probability of variability together with the attributes used for the variability detection. Owing to the very large number of processed sources, only sources with a GVD probability greater than 0.045 were published, together with about 11M sources identified as variable by the modules using Special Variability Detection (SVD; see Section 15.15 and Section 15.16) and subsequently classified by the general classification modules. This threshold ensures that all sources classified as VARIABLE are included, together with an additional set of potentially variable sources, labelled as POSSIBLE. Sources with a GVD probability exceeding 0.5 were used as input for the general classification module (see Section 15.2.3.6).

15.2.3.6 General classification

Input

All sources with GVD variability probability greater than or equal to 0.5.

Method

The supervised classification module employed a set of machine-learnt models to classify 48 different variability types and subtypes. Two classes of models were trained and executed: one-versus-rest (Ovr) models corresponding to each class to be classified, which should be considered as the primary results, and a preliminary Multiclass classifier that was developed earlier in the processing and kept for reproducibility. Additional cross-validation (-Cv suffix) classifiers were run to provide unbiased results for training sources. Further details are described in Section 15.4.

Published output

The Gaia DR4 table vari_classifier_result contains results from the Ovr classifier for all of the input sources, as well as results from the OvrCv, Multiclass, and MulticlassCv classifiers for a subset. Highly scored sources of relevant types were included in the inputs for the following SOS work packages: active galactic nuclei, Cepheids, compact companions, eclipsing binaries (an unpublished preliminary classifier), long period variables, planetary transits, pre-main-sequence oscillation stars, RR Lyrae stars, and young stellar objects. Galaxy candidates are additionally included in the galaxy_candidates table, while AGN candidates join the results of other DPAC processing modules in the qso_candidates table (see Chapter 17).

15.2.3.7 Specific Object Studies

Objects of various classes of variables benefit from additional processing tailored to take into account specific properties of their variability. The Specific Object Study (SOS) components of the variability pipeline aim to characterize the time series and compute attributes specific to given variability types, which improve the identification and thus purity of their set of candidates. Each SOS module takes as input a list of candidates from one (or more) of the following inputs, as illustrated in Figure 15.1: (1) the relevant variability class(es) from the general classifier (Section 15.2.3.6), with probability thresholds specific to each SOS module, (2) a Special Variability Detection module (SVD), or (3) an extractor.

Details of the selection criteria, processing, and of the output data products of each SOS module are described in the respective data product sections.

Input

Source selections depend on specific SOS modules and are described in the relevant data product sections.

Method

Methods are described in the relevant data product sections.

Run-time configuration parameters

Run-time configuration parameters are described in the relevant data product sections.

Published output

An overview of all SOS related tables is provided in Section 15.1.2.