6.4.8 Single-transit analysis: the epoch data
Single-transit analysis (STA) starts from the three spectra observed quasi-simultaneously in each transit, and does the following:
-
•
Determine the epoch radial velocities (radial_velocity) (for ) and epoch ‘rotational velocity’ (vbroad) (for ) from the cross-correlation functions (CCFs) between the observed spectrum and a template spectrum. The radial velocities are in the barycentric frame.
-
•
Pass these CCFs on to MTA (Section 6.4.9) for further processing.
-
•
Determine the epoch spectrum (rvs_epoch_spectrum) by combining the three spectra.
For the radial velocity determination, STA uses three radial velocity modules. Each of these relies on the principle that the radial velocity corresponds to the extremum of a so-called C-function, i.e., a function which measures the (dis)similarity between the observed spectrum and a template (David et al. 2014). For ease of reference, all three C-functions are referred to as cross-correlation functions, although one of the radial velocity modules actually produces a function.
It is assumed that the spectra are either single-lined or double-lined: more complex possibilities are ignored because the need for automation in the RVS context precludes their meaningful treatment. The double-lined spectra are analysed in detail by the TodCor module for the benefit of non-single star data analysis (Chapter 11). For the double-lined spectra, the archive lists the resulting TodCor vbroad values (vbroad_primary, vbroad_secondary) and radial velocities (radial_velocity_primary, radial_velocity_secondary). Transits exhibiting strong emission lines are identified (by emission_lines = true) but, for lack of suitable templates, no attempt is made to measure their radial velocity or vbroad; only their epoch spectrum is provided.
For single-lined spectra, the epoch vbroad value is determined by the module RvFou for stars brighter than , with effective temperature in the range from 3500 to 14 500 K. It uses a rotational broadening profile, which includes the projected rotational velocity , but which may include additional broadening mechanisms as well. For this reason it is denoted as vbroad. MTA then combines these epoch vbroad values into the source vbroad for the star (Section 6.4.9.5).
The algorithms to perform STA are explained in detail by Sartoretti et al. (2018); some important refinements for Gaia DR4 are mentioned hereafter.
6.4.8.1 STA architecture
The STA chain runs in a Bright () and a Faint () run, as described in Section 6.4.6. Additionally, there is also a Non-Single-Star (NSS) run. The NSS run concerns sources with astrometric orbits derived from a preliminary run of the NSS pipeline. As explained in Section 6.4.6, a radial velocity correction is made to the NSS spectra before entering the STA Chain, but otherwise the processing follows that of the Bright run.
Figure 6.8 presents the flowchart of the STA chain in the Bright/NSS run. The main inputs to the chain are the wavelength-calibrated (barycentric), observed spectra and the stellar parameters of the synthetic spectrum (‘template parameters’), as determined by CombineTemplate (Section 6.4.7). In a first step, the spectra are corrected for a small (time and magnitude dependent) radial velocity shift that was determined on the basis of a dry run of the code. Details of this correction are given in Section 6.4.8.6. From the synthetic spectrum, the module GenerateTemplate (Section 6.4.8.4) produces a template; this template is normalised in the same way as the observed spectra (Section 6.4.8.2).
The next step is a special treatment for the hotter stars. For these stars, the selected synthetic spectrum does not always provide a good template for the observed spectra. In ReDetermineApHotStars, a better template is chosen, and the fields rv_template_teff, rv_template_logg, and rv_template_fe_h are updated (Blomme 2025). The required vbroad (rv_template_vsini) is also determined. It must be stressed that these template parameters do not necessarily represent the best astrophysical parameters for the star; they only represent the choice of the template that has been used to determine the radial and vbroad velocity. Details about the handling of hot stars are given in Blomme et al. (2023).
For the brighter stars (), the epoch vbroad is then determined as detailed in Section 6.4.8.3.
To find and analyse possible double-lined spectra, STA uses a hybrid method (two-dimensional cross-correlation as proposed by Zucker and Mazeh (1994), followed by minimisation) designed so that it delivers not only the respective radial velocities and the brightness ratio of the presumed components, but also an estimate of their vbroad velocity and an uncertainty estimate for all values returned. Additionally, the algorithm fits a single-lined model to the same data and applies an F-test on the values to decide whether it should in fact be rejected in favour of the double-lined one. Since there is no a priori information on the nature of a presumed secondary component, many possibilities need to be considered. To reduce the computational load, first a simplified version of the algorithm is applied to each observed spectrum. This is implemented by the module TodCorLight which assumes that both components have the same spectral type and rotational broadening and which sets a relatively low threshold in the F-test. Only the spectra which then emerge as suspected multiple are subsequently handled by the module TodCorHeavy which explores other spectral types and which rejects the single-lined model only with 99.9% confidence. Both modules are described in more detail in Section 7.5 of Sartoretti et al. (2018).
The two-component radial velocities are then used to compute the orbital solution as described in Section 11.6. Further details of the SB2 detection and related orbital solutions are provided in Damerdji (2026a).
Next, for all stars in the Bright run (i.e., down to = 14), the epoch radial velocity is determined as detailed in Section 6.4.8.3. This requires another pass to generate and normalise the template; this time the template is also broadened with a given vbroad.
The Integrator then combines the information from the three radial velocity modules and TodCor into a single result. Precedence is given to the TodCor results if that module has decided that the spectra of that transit are double-lined.
Finally, a correction is applied to the radial velocity uncertainty to correct for it being underestimated, as detailed in Section 6.4.8.7.
The Faint run (flowchart in Figure 6.9) differs from the Bright/NSS run in these aspects:
-
•
no vbroad and no radial velocity is determined;
-
•
only a CCF is calculated for further processing by MTA;
-
•
the three CCD spectra are combined into a single spectrum before starting the processing, as this increases the S/N of the data to be processed and reduces the processing time.
6.4.8.2 Spectra normalisation and combination
The CCD spectra are normalised as shown in Figure 6.10. Both the fluxes and flux uncertainties are divided by the continuum that is derived in the normalisation procedure. For fainter stars, a flux offset can be applied to avoid significantly negative fluxes. The bit isfluxOffsetApplied in ccd_status shows if such a flux offset has been applied.
The CCD spectra are not part of the Gaia DR4 release. Instead the three normalised CCD spectra are combined into a single epoch spectrum, on a uniform-step wavelength grid of 846–870 nm, with a step of 0.025 nm. Missing fluxes have the flux and fluxError set to NaN. A re-normalisation of this epoch spectrum is then applied (Figure 6.11). The normalised epoch spectra are part of Gaia DR4 (rvs_epoch_spectrum).
6.4.8.3 Determining radial velocity and vbroad
The spectra from the three CCDs in a transit may exhibit small differences in wavelength zero point, wavelength range, and sampling. These differences may be noticeable in higher S/N spectra. For this reason they are not simply summed before determining the radial velocity in the Bright/NSS run. In the Faint run, however, these small differences have negligible effect and therefore the three CCD spectra are combined into a single epoch spectrum (rvs_epoch_spectrum) and the radial velocity is determined from that.
In the Bright/NSS run, all radial velocity modules first perform their measurements on each CCD spectrum separately, storing the cross-correlation functions used in that process; subsequently they combine these cross-correlation functions on a common velocity grid (see Sartoretti et al. 2018) to use the information from the whole transit. Only the latter results are propagated along the STA chain while the single-CCD measurements are used for internal diagnostic purposes. In the Faint run, only a single spectrum is processed, i.e., the epoch spectrum that is the combination of the three CCD spectra (Section 6.4.8.2).
For each transit of a sufficiently bright star ( ), the radial velocity module RvFou explores a predefined grid of vbroad values. For each value, it convolves the template (which has already been convolved with the LSF) with the corresponding rotation profile, then cross-correlates the broadened template with the observed spectrum from each CCD, and combines the resulting CCFs. The peak heights of the combined CCF define a function of the vbroad values; the vbroad value corresponding to the maximum of that function is the estimate for the transit at hand. The transit values of vbroad are passed on to MTA, which in turn determines the vbroad value for the source (Section 6.4.9.5). More details and the validation of this method are given in Royer (2026).
The characteristic discussed here is named vbroad in the archive and not . The reason for this choice is that, while the rotational profile (Gray 2005) is used to measure line broadening, there may be other factors causing the broadening of the observed spectral lines (e.g., macro-turbulence, residual instrumental effects, spectrum mismatch, the presence of an undetected secondary component, etc.) so that the measured value does not represent ‘pure rotation’ but possibly a mix of broadening mechanisms. Among these, of course, rotation will mostly be dominant.
Next, for all stars in the Bright/NSS run (), the epoch radial velocity (radial_velocity) is determined. This again requires generating a template; this time the template is also broadened with a rotational velocity. For this broadening velocity, the vbroad derived in the previous part is not used, because it has not yet been validated and may be unreliable, especially for faint stars. A conservative temperature-dependent default value is therefore preferred: for the coolest stars (), the default vbroad , for the hotter ones () vbroad , and a linear transition (as a function of ) is used in between. If vbroad has been determined by ReDetermineApHotStars, then that value takes precedence. The vbroad used to broaden the synthetic spectrum in this part of the procedure is stored in the field rv_template_vsini.
The actual radial velocity measurement follows a multi-method strategy (David et al. 2014) involving standard cross-correlation using Fourier transform, Pearson correlation, and a minimum distance method, implemented respectively by the modules RvFou, RvDir, and RvMdM. In principle each module produces a single radial velocity value per transit, along with an estimate of the internal uncertainty; these values generally differ somewhat because the effects of noise depend on the method. Preliminary runs of the STA chain showed that RvDir and RvMdM had a repeating pattern in the radial velocities for fainter stars. For this reason, only RvFou results were used for .
The module Integrator combines the above radial velocity results, taking account of the several flags (Section 6.4.8.5) which may have been set in previous processing steps. If the single-lined model was not rejected by TodCor, the median of the radial velocities obtained by the modules RvFou, RvDir, and RvMdM is stored as the epoch radial velocity (radial_velocity) as well as its corresponding uncertainty (radial_velocity_error). Otherwise these single-lined measurements are ignored and the results from TodCorHeavy are stored instead (radial_velocity_primary, radial_velocity_secondary, and their corresponding uncertainties (radial_velocity_primary_error, radial_velocity_secondary_error)).
For the Faint run () only the RvFou module is run to produce the cross-correlation functions that are then used by MTA (Section 6.4.9). No epoch radial velocities are determined in the Faint run.
6.4.8.4 Generate template
As part of the input to the STA processing a template spectrum is needed to compare with the observed spectra. Associated with each RVS spectrum is a synthetic spectrum that is selected from the auxiliary synthetic spectral library (Section 6.2.3.3). The selection is based on the weighted minimum distance between the atmospheric parameters associated with the star and those of the synthetic spectrum. The distance to be minimised is:
| (6.6) |
where , , and are the parameters associated with the star (listed in rv_atm_param_star_teff, rv_atm_param_star_logg, and rv_atm_param_star_fe_h). , and are the parameters of the synthetic spectrum. is in K. The weights (100, 3, and 2) are ad hoc estimates, chosen to give more importance to differences in , which most strongly influence the morphology of the spectrum, than to differences in or .
The parameters of the selected synthetic spectrum are stored in the fields rv_template_teff, rv_template_logg and rv_template_fe_h.
The GenerateTemplate module convolves the synthetic spectrum with the instrumental profile (LSF-AL, Section 6.3.4.1), which differs for each of the three spectra in a single transit. In the Faint run, the template is generated with an LSF that combines the LSFs of the three CCDs. The resulting spectrum is then resampled to a wavelength step of 0.00747 nm, which is ten times finer than the nominal RVS resolution element. This oversampling facilitates subsequent shifting, convolution, and resampling operations performed by the STA modules.
Additionally, the GenerateTemplate module can also convolve the synthetic spectrum with a rotational profile (Gray 2005). However, when the purpose is to determine the epoch vbroad (for sufficiently bright stars), no such convolution is applied. Instead, the RvFou module applies the broadening during its search for the best vbroad value. When determining the radial velocity, GenerateTemplate does apply a rotational broadening (Section 6.4.8.3).
The template wavelength range is wider than the 846–870 nm range of the observed spectra. This ensures that the template, when shifted within the RVS velocity range of , can still be resampled onto the wavelength grid of the observed spectrum without data loss.
The template is normalised in the same way as the observed spectrum (Section 6.4.8.2).
6.4.8.5 Flagging
In the course of STA, several boolean flags are used to signal particular problems with, or characteristics of, each transit:
-
•
isValid (default=1) is set to 0 by the modules RvDir, RvFou, RvMdM, or TodCorLight, if a computational problem is encountered which renders the output of the module meaningless (e.g., division by zero, lack of convergence in an iteration, etc.).
-
•
isAmbiguous (default=0) is set to 1 by the modules RvDir, RvFou, RvMdM, or TodCorLight, to indicate that the single-CCD radial velocity values from a given transit are not consistent between the CCDs, within their respective uncertainty. Mostly this is due to the fact that the single-CCD spectra are too noisy to allow a radial velocity measurement of which the uncertainty is correctly described by the uncertainty estimate, but there may be several other reasons, e.g., a residual blemish in the data, strong template mismatch, etc. The isAmbiguous flag is listed in radial_velocity_status. If the reason for ambiguity is merely noise, the MTA radial_velocity estimation method used for the faint stars (rv_single_method_used=2) may yet allow a meaningful radial velocity measurement (Section 6.4.9.1).
-
•
suspectedMultiple (default=0) is set to 1 by TodCorLight if a double-lined model fits the observed spectrum significantly better than a single-lined one.
6.4.8.6 Radial velocity corrections
By comparing the radial velocities determined by STA in a preliminary dry run with values from the literature, an offset was discovered that depends on both magnitude and time. Figure 6.12 shows the offset with time. The offsets (Gaia minus Ground-Based velocity) for each transit for each source were binned in time and the median over each time bin was determined. A time correction was therefore introduced that ensures that all medians become zero.
Next, the dependency of the offset (corrected for the above time effects) on magnitude is considered. Again, offsets for each transit for each source were binned, this time as a function of magnitude and the median over each magnitude bin was determined. Figure 6.13 shows the plots per CCD row for field-of-view 0. The behaviour of field-of-view 1 (not shown) is similar.
A 7-degree polynomial was used to fit the offsets. This polynomial was used to correct the STA radial velocities by shifting the CCD spectra in radial velocity when they enter the STA Chain. While this procedure does not eliminate the magnitude-dependent offset on an individual star basis, it does so on the median (as a function of the bins). The value of the radial velocity correction that was applied to the transit is given in rv_systematic_corr.
6.4.8.7 Radial velocity uncertainty corrections
A comparison between the intrinsic radial velocity uncertainty derived by STA in a preliminary dry run and the dispersion of the epoch radial velocities showed that they are inconsistent: the uncertainty underestimates the dispersion. The radial velocity uncertainties (RVError) are therefore corrected as follows:
| (6.7) |
where is a constant and is a polynomial as a function of magnitude.
For each source, the zscore can be determined, defined as:
| (6.8) |
where the index indicates the transit. The have been corrected for the systematic offset (Section 6.4.8.6). For the dispersion, half of the range between the 15.85 and 84.15 percentiles is taken.
The zscores are binned in magnitude bins and the median per bin is determined. In Figure 6.14, the binned, uncorrected zscore data are plotted as a function of magnitude. The dashed cyan line gives the ‘external’ zscore, i.e., the one with respect to all ground-based (GB) data:
| (6.9) |
The solid blue line is similar, but is limited to the highest quality ground-based data.
Ideally one should have this binned zscore=1.0 for all magnitudes, in which case the uncertainties (RVErrors) would be consistent with the dispersion of the radial velocities. In reality this is not the case. A grid of values was therefore explored, and for each value for each magnitude bin, the value was determined that is required so that the median of the zscore values in that bin becomes 1.0. The values are then plotted as a function of magnitude and a polynomial is fit through them (Figure 6.15, top right).
The best value is chosen, mainly on the basis of having the high-quality ground-based results as close as possible to 1.0. In Figure 6.15 this is shown for the chosen .
The and the -polynomial are then applied to the original RVErrors and the zscore is recalculated for each source. As a verification, the median of these corrected zscore values is then plotted as a function of magnitude (Figure 6.15, bottom plot). The median of these corrected zscore values (red line) is very close to 1.0. Also the median of the high-quality data (solid blue line) is very close to 1.0.
The B-polynomial is given by:
The radial_velocity_error contains the corrected error. The uncorrected error is listed in raw_radial_velo city_error.