skip to main content

gaia data release 4 documentation

16.2 Properties of the input data and models

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 Teff, log⁡g and [Fe/H] (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 Teff, log⁡g and [Fe/H] 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 F⁢(λ) is the source spectral energy distribution, A⁢(λ) is the extinction curve, then the attenuated, observed flux f⁢(λ) is:

f⁢(λ)=F⁢(λ)⋅10−0.4⁢A⁢(λ) (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 (A⁢(λ)/A0), where A0 is the monochromatic extinction at the reference wavelength. An additional extinction parameter that controls the shape of extinction curve with respect to wavelength is R0, and we adopt R0=3.1 as our baseline, as recommended by Gordon et al. (2023). The reference wavelength for A0, as stated in Gordon et al. (2023), is 550 nm, however we note that (A⁢(λ)/A0) is equal to unity at the wavelength of 542.9 nm for R0=3.1 (see Figure 16.2). While R0 is approximately equal to R⁢(V)≡A⁢(V)/E⁢(B−V), the total-to-selective extinction in the V band, there is an important offset between R0 and R⁢(V) 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 A0 and R0 differs from that adopted in Gordon et al. (2023), who use the notation ‘A⁢(V)’ and ‘R⁢(V)’. 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 F is the spectral energy distribution from the star, A⁢(λ) is the extinction law, then the attenuated, observed flux f is:

f⁢(λ)=F⁢(λ)⋅10−0.4⋅A0⋅(A⁢(λ,R0)/A0) (16.5)

For the bulk of CU8 simulations, we adopt R0=3.1, while A0 can vary in a wide range from 0 up to 10 magnitudes, according to the requirements for CU8 simulations. For some modules, variations in R0 are explored, at fixed values. Gordon’s extinction curve is defined for R0 in the range [2.3, 5.6]. We extrapolated outside the validity range, to assess border effects, see Figure 16.2.

Refer to caption
Figure 16.2: Effect of R0 variation on Gordon et al. (2023) extinction curve, in the range explored in CU8 simulations. The dashed horizontal line highlights where A0=1, and is used to infer the position of the reference wavelength (542.9 nm for R0=3.1).

For each spectral energy distribution, the extinction in a given band is computed by integrating the spectra F and f (i.e., with and without applied extinction) over the chosen passband to obtain integrated fluxes,

FG=∫TG⁢(λ)⁢F⁢(λ)⁢𝑑λ (16.6)

and

fG=∫TG⁢(λ)⁢f⁢(λ)⁢𝑑λ (16.7)

where TG denotes the transmission curve of the Gaia G passband. We then take the ratio of FG and fG. Using the Gaia G band as an example, this is equivalent to:

AG=−2.5⋅log⁡(fG/FG) (16.8)

The same procedure is used to compute extinction coefficients ABP and ARP for the Gaia GBP and GRP passbands, and AV for the Johnson V band, together with the colour excesses E⁢(GBP−GRP) (=ABP−ARP) and E⁢(B−V). 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 A0 and the extinction in the Johnson V band, AV, 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 A0 corresponds to different values of AV 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 AG, but since the Gaia G band is significantly broader than the Johnson V band, the effect is even more pronounced in AG than in AV. Also note the non-linearity of the response in AG and AV with respect to the monochromatic extinction A0, showing that extinction ratios cannot be constant, even for stars with the same effective temperature.

Refer to caption
Figure 16.3: Difference between the extinction coefficient A0 and the extinction values computed by spectrum integration in the V (left panel) and G (right panel) bands respectively, colour-coded by effective temperature for models from the MARCS library (Teff > 3000 K) and assuming R0=3.1.

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 IBP/RP that maps a given SED model (denoted with 𝒔) into the BP/RP coefficients we denote with 𝒄BP/RP:

𝒄BP/RP=IBP/RP⋅𝒔 (16.9)

Using the aforementioned MCMC ensemble of instrument models, IBP/RP,1, IBP/RP,2, …, IBP/RP,N, we compute the BP/RP coefficients of model SEDs as Monte-Carlo average over all N=1000 samples:

⟨𝒄BP/RP⟩=1N⁢∑n=1NIBP/RP,n⋅𝒔 (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, {𝒄BP/RP,n=IBP/RP,n⋅𝒔}n=1N, 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.