16.2.4 Use of RVS spectra in Apsis
For Gaia DR4, the Apsis pipeline processed both single-transit and combined-transit spectra. The CU6 Single Transit Analysis (STA) pipeline delivered the transit spectra by combining the valid CCD data, while Multiple Transit Analysis (MTA) pipeline provided, for each source, spectra combined over all valid CCDs and transits. In both cases, the spectra were shifted to the target’s rest frame at the CCD level. Then, they were re-binned from 846 to 870 nm, with a bin size of 0.025 nm, yielding 961 bins.
The normalization of the spectra is performed in two steps. First, the CCD spectra are normalized to the local (pseudo-)continuum using polynomial fits. The combined spectra are then renormalized using their median flux. Because of the radial velocity correction applied to shift all spectra to the rest frame, cosmic-ray clipping and other processing steps, some flux values may be missing –particularly near the edges – and are replaced with NaNs. The data is provided to CU8 in the same format adopted for the Gaia DR4 publication. A more detailed description is given in Chapter 6 and in Sartoretti et al. (2026).
The Apsis modules that use RVS spectra are GSP-Spec, ESP-CS and ESP-HS. The spectra are usually normalized to the continuum (except for stars cooler than 3500 K, where normalization is done using the median flux, only). The key information needed for a meaningful comparison with synthetic spectra is the spectroscopic (along-scan) line-spread function (LSF). In practice, this function varies with time and depends on the parameters that define the optical path (e.g. the CCD strip and the field of view). For this reason, the co-added spectra used by CU8 and produced by CU6 are a mixture of spectra broadened by different LSFs. The information needed to reconstruct the full instrument profile for CU8 processing is technically difficult (mainly for computation time reasons) to exploit within the Apsis framework. Hence, CU6 provided three LSFs (available online with Gaia DR4): a global one averaged over both fields of view and all CCD strips, and two others averaged separately per field of view. The global LSF was used to analyse the co-added RVS spectra (ESP-HS, ESP-CS and GSP-Spec), while the two field-specific LSFs were adopted by GSP-Spec for the epoch spectra. As in DR3, the GenerateTemplate tool used by CU6 to construct the templates was applied with the average LSFs to prepare the required auxiliary data.