skip to main content

gaia data release 4 documentation

6.4 Processing steps

6.4.4 Calibration

In the Calibration pipeline the spectra of the potential calibrators (non-blended transits of the stars brighter than external_apparent_grvs ∼10) are processed in order to calibrate the RVS instrument and to produce the calibration models described in Section 6.3. The calibration models (called GenericTrending) are then applied to all the RVS spectra in FullExtraction. This pipeline includes various steps:

  • •

    Preprocessing: This is the first step, mostly technical, where the information contained in the input data (Section 6.2) is treated and reformatted into the objects used by the downstream steps of the pipeline. The filters on the input data are also applied. The input selection includes the spectra of the stars brighter than external_apparent_grvs ∼10 mag and with rectangular windows. The rectangular-truncated windows are also included. In fact, some bright stars produce nearby spurious sources and have a truncated but rectangular window, their spectra are re-blended when the missing part of their window is found among the pipeline inputs, otherwise are excluded.

    The astrometric information (AGIS coordinates, OGA3 and the Gaia Ephemeris) is used to associate to each sample of the spectrum the FoV coordinates (η,ζ) of the source at the time when the sample crosses the CCD fiducial line, and the barycentric velocity correction (Section 3.4.6) is associated with each spectrum.

    The transits of potential contaminants are identified. These correspond to the transits of potential contaminant sources selected in SourceInit that are brighter than external_apparent_grvs ∼15 and do not have an RVS window (fainter contaminants do not affect the bright sources used for calibration). Transits with a relatively bright and nearby contaminant are then removed during the Calibration preparation step.

  • •

    Calibration Preparation: This step is in charge of selecting the potential calibrators, to clean their spectra and to apply the initial calibration model (Section 6.2.2). See Sartoretti et al. (2026) for more details.

    • –

      Bias and bias non-uniformity is first removed using appropriate calibration coefficients (see Section 6.3.1).

    • –

      Saturated samples (above 50 000  ADU; in practice such pixels carry the numerical maximum of 65 535  ADU) are flagged. The spectra presenting a saturated sample are later removed from the Calibration pipeline.

    • –

      The fixed CCD gain that was measured on ground (see Table 6.11) is applied.

    • –

      The dark current that was measured on ground, is subtracted (see Section 6.3.2).

    • –

      The straylight background is removed by subtracting the flux from the RVS ScatterMap, interpolated to match the processing window’s position, time, and pixel sampling. Spectra with a total negative flux resulting from excessive background subtraction are removed from the pipeline, as are spectra for which the background exceeds 100 electrons,pixel−1,s−1.

    • –

      The flux loss outside the window is estimated using the initial LSF-AC calibration model.

    • –

      Windows that contain any columns from the cosmetic defect list (see Section 6.3.2) are flagged and filtered from the pipeline.

    • –

      Windows having a nearby relatively bright contaminant (i.e. a source with no RVS window and with a magnitude brighter than the target source magnitude + 2 mag, and within a relevant contamination area around the target source of about 2500 AL ×20 AC pixels), are flagged and filtered from the pipeline.

    • –

      Cosmic rays are removed from both 2D and 1D windows and the affected samples are flagged. If pixels are saturated due to cosmic rays and the cosmic ray is successfully removed, the saturation flag is turned off and the window can proceed in the pipeline, otherwise it is filtered from the pipeline. The spectra presenting a saturated sample are removed from the pipeline.

    • –

      Spectra identified as contaminated by brighter sources, even those located beyond the contamination area mentioned above, are removed from the pipeline. A transit of a calibration star (the target) is considered bright contaminated if: The distance and magnitude difference with the contaminant source satisfy:

      |ΔAL|<1000⁢pixelsand|ΔAC|≤10(0.13×Δmag+1.3)⁢pixels

      where

      Δmag=GRVS⁢(target)−GRVS⁢(contaminant)

      , and the magnitude of the two sources are given by their external_apparent_grvs values.

    • –

      2D windows are optimally collapsed into 1D spectra.

    • –

      The initial wavelength coefficients are applied to the field angles and wavelength range is cut to 846–870 nm to avoid the RVS filter wings.

    • –

      The total flux of the spectrum, TotFlux, is estimated by summing the fluxes of all samples between 846 and 870 nm (after replacing the flux of any flagged sample with the median flux of all valid samples). It is then corrected for the total flux loss outside the window and divided by the 4.4 s exposure time, to be expressed in units of electrons⁢s−1.

    • –

      The RVS filter response that was measured on ground, is removed.

    • –

      The spectra are normalised to their pseudo-continuum using a 2nd-degree polynomial fitting. The stellar lines are iteratively rejected using a sigma-clipping with interval [−3,+10]⁢σ.

    • –

      Emission-line spectra are detected and removed from the pipeline.

    • –

      Determine the atmospheric parameters (see Section 6.4.5.1) to associate to the stars for which there is no information available from the input data (Section 6.2.3.2 or Section 6.2.1).

    • –

      Select the reference stars for each calibration task: The wavelength calibration module needs high SNR spectra presenting deep absorption lines. Therefore the calibrators are selected based on their magnitude (external_apparent_grvs <9.3 mag) and on their atmospheric parameters (4500<Teff<6500 K). Figure 6.4 shows an example of a wavelength calibration star spectrum.

      The calibration of the LSF-AC profile and peak position requires very bright stars with 2D window (external_apparent_grvs <7 mag); the LSF-AL calibration requires the RVS spectra of the stars for which the ground-based spectrum is available (Section 6.2.3.6) and with external_apparent_grvs ≤10 mag. The calibration of the GRVS zero point requires the RVS spectra of the stars for which the reference magnitude is available (Section 6.2.3.5) and with external_apparent_grvs ≤10 mag.

  • •

    Calibration and trending

    The wavelength calibration coefficients, the LSF-AL profile, the LSF-AC profile and peak position coefficients, and the GRVS zero point are derived for each calibration unit within every trending epoch, according to the calibration models (see Section 6.3). The duration of a calibration unit is 30 hours for the wavelength, AC-peak position and GRVS zero point calibrations, and 1 hour for the LSF-AL calibration, to ensure that most calibration units contain enough RVS observations of the auxiliary data required for the calibration. The calibration unit duration is 0.5 hours for the LSF-AC profile and peak position, where variations are more rapid due to the AC motion of the sources.

    Trending consists of fitting a function to each calibration coefficient as a function of time (see Figure 6.21 for an example). Having a trend function with respect to time means that missing calibration results in individual calibration units is not critical, provided it does not occur too frequently. Additionally, fitting with outlier rejection makes the trend functions more robust to noise and anomalous data.