16.2.3 Use of BP and RP spectra in Apsis
Upstream processing provides BP/RP spectra in the format of basis-function coefficient vectors and their corresponding coefficient covariance matrices. There is one coefficient vector plus a covariance matrix for the BP spectrum and another for RP spectrum. For usage in Apsis processing, these BP/RP spectra are then sampled as described in Section 16.3.1, i.e., they are converted from coefficients to a more intuitive format of wavelengths and fluxes.
Most Apsis modules work with the combined, time-averaged, mean BP/RP spectra. Only QSOC and ESP-UCD make use of epoch BP/RP spectra, as described in Section 16.3.11 and Section 16.3.9.
We emphasize that BP/RP spectra are not flux-normalized in any way. Instead, BP/RP spectra come on an absolute-flux scale. This is important, e.g., for GSP-Phot using the flux level of BP/RP spectra to constrain a star’s radius and distance as described in Section 16.3.3.5.
16.2.3.1 Simulations
In order to use the BP/RP spectra to infer parameters, Apsis modules are trained on an empirical training set or they rely on a pre-computed set of simulated Gaia BP/RP spectra. The training samples are defined for each Apsis module and are described in the relevant section of each module description (see Section 16.3). To produce the simulated spectra, we rely on the set of synthetic stellar libraries described in Section 16.2.5.1. For DR4, only modules producing stellar APs are trained on synthetic spectra. Synthetic spectra are pre-computed at fixed values of , and (see Section 16.3), however, upon request interpolated stellar libraries were produced (no extrapolation).
A synthetic spectrum provides the emission of a unit surface area of the star, and to simulate a star’s spectral energy distribution, at least a radius is needed. This crucial parameter is provided via a best match against a large synthetic population, produced as described in Section 16.2.5.3. We notice that the parameter space covered by stellar-structure models is a subsample of the one covered by synthetic spectra. A flag indicates for each spectrum if the best-match procedure was able to find a close-enough point in the synthetic population, based on the distance in , and and criteria variable in the HR diagram. This in turn provides to the Apsis module a way to select only sources with a coherent set of parameters. The uniformity of the underlying synthetic stellar population ensures a good match also for the very fast-evolving regions in the HR diagram.
Interstellar extinction effects need to be simulated too, and this is done following the recipe in Section 16.2.3.2.
Once a synthetic source is created by the combination of a synthetic spectrum and a given amount of extinction, CU8 uses a simulator available to DPAC (see Section 16.2.3.3) to produce a BP/RP-simulated BP/RP spectrum. Its fundamental parameters are passed to Apsis modules using an auxiliary file. This auxiliary file includes a large set of parameters (e.g. extinction values in Gaia passbands) and will be made available to the community as part of DR4, see the Gaia DR4 software and tools we pages.
16.2.3.2 Extinction curve and extinction coefficients
Observed spectra are attenuated (i.e. dimmed and reddened) by the amount of interstellar dust present between the observer and the source, so if is the source spectral energy distribution, is the extinction curve, then the attenuated, observed flux is:
| (16.4) |
As the extinction is determined uniquely by the dust column density along the line of sight to a given source, extinction can be considered an additional astrophysical parameter of the source, and can be inferred using the spectra. To properly train the algorithms, simulations must be provided at different levels of extinction.
For Gaia DR4, we adopted the extinction curve from Gordon et al. (2023) for the simulations supporting the CU8 data analysis. This extinction curve is provided as a function of wavelength normalized at a specific wavelength, that is, in the form , where is the monochromatic extinction at the reference wavelength. An additional extinction parameter that controls the shape of extinction curve with respect to wavelength is , and we adopt as our baseline, as recommended by Gordon et al. (2023). The reference wavelength for , as stated in Gordon et al. (2023), is 550 nm, however we note that is equal to unity at the wavelength of 542.9 nm for (see Figure 16.2). While is approximately equal to , the total-to-selective extinction in the band, there is an important offset between and that will depend on the spectral energy distribution of the attenuated source.
We note to the user that our notation for the two extinction parameters and differs from that adopted in Gordon et al. (2023), who use the notation ‘’ and ‘’. However, in the Gaia context, with the extremely high accuracy of the photometry, we need to make a careful distinction between the parameters that control a formulation of the extinction curve, and empirical quantities that depend not only on the effective extinction to a source, but also on the spectral energy distribution of the source, as shown in the following. In any case, the Gordon et al. (2023) extinction curve was adopted as is, with no renormalization.
If is the spectral energy distribution from the star, is the extinction law, then the attenuated, observed flux is:
| (16.5) |
For the bulk of CU8 simulations, we adopt =3.1, while can vary in a wide range from 0 up to 10 magnitudes, according to the requirements for CU8 simulations. For some modules, variations in are explored, at fixed values. Gordon’s extinction curve is defined for in the range [2.3, 5.6]. We extrapolated outside the validity range, to assess border effects, see Figure 16.2.
For each spectral energy distribution, the extinction in a given band is computed by integrating the spectra and (i.e., with and without applied extinction) over the chosen passband to obtain integrated fluxes,
| (16.6) |
and
| (16.7) |
where denotes the transmission curve of the Gaia passband. We then take the ratio of and . Using the Gaia band as an example, this is equivalent to:
| (16.8) |
The same procedure is used to compute extinction coefficients and for the Gaia and passbands, and for the Johnson band, together with the colour excesses () and . We also compute extinction coefficients in the Johnson B, V, I bands, and in the IR passbands Johnson H, J, K and AllWise W1 and W2 if the spectral coverage allowed it (MARCS library only), and these will be published in Gaia DR4.
We want to stress further the intrinsic difference between the extinction parameter and the extinction in the Johnson band, , as these two are often confused in literature. The first is a monochromatic extinction that is proportional to the dust column density to the source, while the second is proportional to the flux lost in a specific passband. In particular, the actual extinction in a given band is coupled with the spectrum of the emitting source: i.e. a given corresponds to different values of for stars having a different spectral type, as shown in Figure 16.3 (left panel), using Gaia DR4 passbands. As is evident from Figure 16.3 (right panel), the same effect also applies to , but since the Gaia band is significantly broader than the Johnson V band, the effect is even more pronounced in than in . Also note the non-linearity of the response in and with respect to the monochromatic extinction , showing that extinction ratios cannot be constant, even for stars with the same effective temperature.
16.2.3.3 BP/RP simulator
CU5 maintains a BP/RP simulator available to DPAC (a porting of this simulator in Python will be made available to the community for Gaia DR4, GaiaXP). This simulator applies a BP/RP Instrument Model to an input SED (Spectral Energy Distribution). This BP/RP Instrument Model is obtained through an external calibration process that have been described in Montegriffo et al. (2023) for Gaia DR3, while improvements for Gaia DR4 are described in Montegriffo et al. (2026).
The result of this external calibration procedure are statistical ensembles of BP/RP instrument models – 1000 models for BP and 1000 models for RP – that have been drawn from MCMC sampling (Foreman-Mackey et al. 2013). Since the actual BP/RP instrument is assumed to show a linear response (e.g. Carrasco et al. 2021), the BP/RP instrument model is assumed linear as well. It implies that the BP/RP model is a matrix that maps a given SED model (denoted with ) into the BP/RP coefficients we denote with :
| (16.9) |
Using the aforementioned MCMC ensemble of instrument models, , , , , we compute the BP/RP coefficients of model SEDs as Monte-Carlo average over all samples:
| (16.10) |
This ensures that the uncertainties of the BP/RP instrument models resulting from the external calibration process are fully propagated into the BP/RP model coefficients used in Apsis processing.
As a side note, it would also be possible to compute an ensemble of BP/RP model coefficients, , instead of the Monte-Carlo average of (Equation 16.10). This could be done, e.g., in order to estimate the uncertainties of the BP/RP model coefficients and compare them to the measurement uncertainties.
While the simulator produces the BP/RP coefficients, many Apsis modules rely on internally calibrated sampled spectra: SMS-gen (see Section 16.3.1 produces those spectra during Apsis processing, while a porting of the same software in python is used to produce simulated BP/RP mean spectra. For DR4 we adopt the same sampling scheme (wavelength array) used in DR3, and available at this link.