5.3.5 Internal calibration
Author(s): Giorgia Busso, Francesca De Angeli
The internal calibration of the spectra follows a flow similar to that of the photometric calibration. Also in this case, no external data are used in the calibration process and therefore the reference catalogue of mean source spectra needs to be established in an iterative way, alternating between an instrument model step, which solves for the calibration parameters given the current mean spectra, and a source update step, which solves for each source’s mean spectrum given the current calibration.
5.3.5.1 Flux and LSF calibration
A set of calibrators (see Section 5.3.5.2) is selected trying to maximize the number of sources in less-populated instrument configurations and the mixing between different calibration units. A full description of the flux and LSF model can be found in Carrasco et al. (2021) and it includes sensitivity and LSF variations, deviation from the nominal dispersion function and AC flux loss. Only a summary is given here.
Before entering the internal calibration, spectra are calibrated for the differential dispersion function to bring all sample AL locations in the same internal system, called pseudo-wavelength. Using the pseudo-wavelength it is possible to represent the spectrum of a source observed in the calibration unit as a discrete convolution of the mean spectrum defined as a linear combination of some bases with the following equation (corresponding to Equation 9 in Carrasco et al. 2021)
| (5.1) |
where the convolution kernel , representing the actual calibration, is a linear combination of bases and can be described as
| (5.2) |
and is a reference pseudo-wavelength chosen in a convenient way. For Gaia DR3, the bases were simple polynomials, of degree 2 for the pseudo-wavelength dependency, while the coefficients were themselves a polynomial of degree 3 in the AC coordinate. While the AC dependency is still the same, the bases were changed for Gaia DR4 to cubic B-spline bases, using a non-uniform knot sequence (different for and ) that concentrates knots in the central part of the spectrum. In Gaia DR4, a new AC flux-loss term has also been introduced: this is parametrized as a second-degree polynomial in the AC centring error and a constant term in AC rate.
Before the partially calibrated spectra enter the instrument model - source update iterative loop, an outlier detection is carried out to check misalignments, wing-offset (in case of wrong background), low integrated flux outliers, positive outliers due to undetected crowding, producing a sample mask that both steps then just consume.
As already mentioned, the initialization of the reference spectra is an iterative process starting with an identity calibration and performing at each step an update of the mean source spectra (Source Update) using the latest calibration and a new calibration computation based on the latest reference catalogue (Instrument Calibration). The initialization process only uses data from the INIT period, chosen to cover a range of time when the contamination level was at its minimum. For Gaia DR4 this is the same used for the photometric processing and corresponds to in OBMT Rev.
Once the reference catalogue is established, calibrations covering all times and configurations can be computed using all observations for the calibrators. These can then be applied to all sources to generate a complete BP/RP mean spectra catalogue. For more details see De Angeli et al. (2026).
5.3.5.2 Calibrator selection
The main criteria used to select the calibrators are the following: first of all, the selected sources should not show signs of variability during the time range in which they have been observed, and they should be isolated, i.e., they are not contaminated by the flux of other stars, be this a faint star inside the window or the tail of a bright star. Furthermore, their observations should not be affected by detector issues, for instance read-out problems, dead pixels, or charge injections. A calibrator should also have a minimum number of good observations in all bands: 90 for G, 10 for BP and 10 for RP.
There should also be sources that have occasionally been observed in different configurations, for instance, some 1D and some 2D observations, or with different gates, to help constrain the mixing between different calibration units.
Since all kinds of sources need to be calibrated, the calibrators have to cover the widest ranges of magnitude and colour: for Gaia DR4, sources in the colour range and in the magnitude range were selected. To prevent the calibration from being dominated by the most common types of objects, the distribution of calibrators was flattened in magnitude and colour, ensuring a more uniform sampling of the parameter space.
The Spectro-Photometric Standard Stars (SPSS) and Passband Validation Library (PVL) sources (see Section 5.6 and Section 5.6.1) are included as well.
See also De Angeli et al. (2026) for further criteria used for the selection. With the application of these criteria, 14.3 million internal calibrators were used in Gaia DR4, corresponding to about 120 billion BP/RP epoch spectra.
5.3.5.3 Mean spectra generation
The mean spectra are defined as a superposition of basis functions (see Equation 5.1). In Gaia DR4, cubic B-splines were used as bases, with a clamped, non-uniform knot sequence covering the pseudo-wavelength range (tuned separately for BP and RP). As in Gaia DR3, an optimized, reduced set of bases can then be derived to concentrate the majority of the spectral information into the lower-order coefficients. For more details on the generation of the BP/RP mean spectra catalogue, see De Angeli et al. (2026).
The mean spectra data are released as xp_continuous_mean_spectrum. The data include the coefficients for the basis functions for both BP/RP. Sampled spectra can be obtained with the software package GaiaXPy (Ruz Mieres et al. 2026), which can be found here.
The mean spectra are then externally calibrated (Section 5.3.6) and can be used to obtain synthetic photometry in several photometric systems (generated externally by GaiaXPy, see also Section 5.7).
Synthetic photometry in the , and bands produced using nominal passbands was used early on in the processing to generate colour information and reference fluxes for the photometric calibration.