skip to main content

gaia data release 4 documentation

16.4 Results and Quality Assessment

16.4.3 Products in the ap_xp and ap_xp_supp tables

Author(s): René Andrae, Orlagh L. Creevey, Yves Frémat, Luis M. Sarro, Maximiliano Dirk

16.4.3.1 GSP-Phot products

GSP-Phot has processed 1 082 339 439  sources with parallaxes down to G=20 and produced 998 981 564  best-library results (92.3%) and 2 996 944 058  results total. This processing took 465 hours wall time. Detailed numbers of how many results are available from which of the three libraries are given in Table 16.33 and Figure 16.29 shows the completeness of GSP-Phot results as a function of apparent G magnitude, which is the ratio of the total completeness discussed in Section 16.1.5. We can see that GSP-Phot’s completeness is about 90% at the bright end, peaks around 98% at G∼12, dips to about 95% between G=13 and G=14, rises back to 97% between G=14.5 and G=16, and then the completeness drops to about 78% at G=20. The decline in completeness towards G=20 is mainly due to the completeness of BP/RP spectra declining towards G=20, but while the BP/RP spectra also show a dip in completeness between G=13 and G=14, the BP/RP completeness still is 98% there and therefore cannot account for the GSP-Phot completeness dipping down to 95%. Figure 16.30 shows how much each library contributes as a function of apparent G magnitude.

Table 16.33: Number of results from each library in GSP-Phot as best library as well as among all results including those which are not selected as best library. For the best library, we also quote the percentages that each library contributes. For all results, we quote the completeness given the total number of processed sources.
library name best-library percentage all completeness
MARCS 916 844 734 91.78% 998 981 563 92.30%
A 78 428 360 7.85% 998 980 944 92.30%
OB 3 708 470 0.37% 998 981 551 92.30%
sum total 998 981 564 – 2 996 944 058 –
Refer to caption
Figure 16.29: Completeness of GSP-Phot results w.r.t. gaia_source as a function of apparent G magnitude. GSP-Phot did not process sources fainter than G=20, i.e., the completeness for G>20 is zero.
Refer to caption
Figure 16.30: Contribution of each library to the best library as a function of apparent G magnitude for a random subset of 100 million stars. The contributions change because the underlying stellar population is changing. GSP-Phot did not process sources fainter than G=20.

Comparisons to ground-based spectroscopic surveys are essential in order to validate the GSP-Phot results. Figure 16.31 shows a comparison to APOGEE DR17 (Abdurro’uf et al. 2022), Figure 16.32 shows a comparison to GALAH DR4 (Buder et al. 2025), and Figure 16.33 shows a comparison to the HotPayne (Xiang et al. 2022). All comparisons show that GSP-Phot estimates effective temperature with a median offset of around +100K but the median absolute error is only mildly larger, suggesting that while the temperature estimates may be biased, they are otherwise very precise. Surface gravities are very reliable, too.

Estimates of interstellar extinction still exhibit systematic errors. As discussed in Section 16.4.10.1, comparisons with extinction maps such as from Planck reveal a systematic overestimation of A0 by about 0.1mag. The same effect is also seen in the Local Bubble where A0 values are systematically too high (Fabricius 2026).

Metallicity estimates from GSP-Phot are showing systematic offsets, but remain overall useful. All these parameters show significant improvements in comparison to GSP-Phot results from Gaia DR3.

Refer to caption
Refer to caption
Refer to caption
Figure 16.31: Validation of GSP-Phot results with APOGEE DR17 (Abdurro’uf et al. 2022). Panel a: Comparison of effective temperatures. Panel b: Comparison of surface gravities. Panel c: Comparison of metallicities. In each panel, we quote the median error, the median absolute error, and the root-mean-squared error.
Refer to caption
Refer to caption
Refer to caption
Figure 16.32: Validation of GSP-Phot results with GALAH DR4 (Buder et al. 2025). Panel a: Comparison of effective temperatures. Panel b: Comparison of surface gravities. Panel c: Comparison of metallicities. In each panel, we quote the median error, the median absolute error, and the root-mean-squared error.
Refer to caption
Refer to caption
Refer to caption
Figure 16.33: Validation of GSP-Phot results with HotPayne (Xiang et al. 2022). Panel a: Comparison of effective temperatures. Panel b: Comparison of surface gravities. Panel c: Comparison of metallicities. In each panel, we quote the median error, the median absolute error, and the root-mean-squared error.

The comparison to asteroseismic surface gravities is shown in Figure 16.34 from Korn et al. (2026). These results have improved significantly in comparison to Gaia DR3, with bias and median absolute errors shrinking by a factor of two. For illustration purposes, Figure 16.35 demonstrates that when using scaling relations for solar-like oscillators, GSP-Phot’s temperatures, masses and radii predict well the frequencies νmax and Δ⁢ν as observed by the Kepler satellite. This may be useful, e.g., to initialize the lightcurve analysis for solar-like oscillators in PLATO.

Refer to caption
Figure 16.34: Comparison of GSP-Phot log⁡g estimates vs. asteroseismic values from Yu et al. (2018) and Serenelli et al. (2017). The step functions indicate the 16th, 50th and 84th percentiles of the differences as function of asteroseismic log⁡g. Figure taken from Korn et al. (2026).
Refer to caption
Refer to caption
Figure 16.35: Comparison of predicted and observed νmax (panel a) and Δ⁢ν (panel b) for Kepler stars from Serenelli et al. (2017) and Yu et al. (2018). Predictions use the standard scaling relations for solar-like oscillators and are based on GSP-Phot’s temperatures, masses and radii. Solid lines show the median value in each bin and the shaded region shows the central 68% confidence interval.

As an overview of reliability, Figure 16.36 shows how absolute difference of GSP-Phot parameters and literature parameters change with apparent G magnitude. Temperatures are reliable to better than 10% (including errors from literature values themselves) for all kinds of stars down to G∼18. For stars fainter than G>18, cool stars remain reliable to within ∼20% even down to G=20, but hot stars (as probed by the HotPayne) become very unreliable very quickly. Surface gravities are reliable to within 0.2 dex down to G∼16 (again this includes errors from literature values) and the typical differences to literature values rise to about 0.5 dex around G∼18 for hot stars (probed by the HotPayne) and G∼19 for cool giants (probed by APOGEE). Metallicity estimates are reliable to within 0.25 dex down to G∼16 for cool stars. For hot stars, the metallicity is overall only reliable to within 0.3 dex for G<16. Overall, Figure 16.36 demonstrates that the reliability of GSP-Phot estimates degrades gracefully towards the faint end, except for the temperatures and metallicities of hot stars where there is a sudden degradation around G∼18.

Refer to caption
Refer to caption
Refer to caption
Figure 16.36: Comparison of GSP-Phot parameters against literature parameters as function of apparent G magnitude. Literature values are taken from APOGEE DR17 (Abdurro’uf et al. 2022), GALAH DR4 (Buder et al. 2025), and the HotPayne (Xiang et al. 2022). We emphasize that the differences are not only due to GSP-Phot but also include the parameter errors of the respective literature catalogues. Panel a: Absolute temperature. Panel b: Surface gravity. Panel c: Metallicity.

A general impression of GSP-Phot results is given in Figure 16.37, showing the Hertzsprung-Russell diagram and the Kiel diagram. Both look considerably better than GSP-Phot results from Gaia DR3. We note some low-density artefacts that, on the one hand, originate from the boundaries between the various libraries having different temperature coverages and, on the other hand, stem from non-stellar sources such as galaxies and QSOs (see Figure 16.8). Furthermore, Figure 16.38 shows a skymap of the extinction parameter A0. It exhibits the usual and well known interstellar dust features. Dust maps are also derived using GSP-Phot A0 values by the TGE module in Section 16.3.12.

Refer to caption
Refer to caption
Figure 16.37: Hertzsprung-Russell diagram (panel a) and Kiel diagram (panel b) from GSP-Phot for all sources processed by GSP-Phot. This is likely to include non-stellar sources such as galaxies or QSOs. The colour indicates logarithmic number density, emphasising the low-density regions. Artefacts in unusual locations are likely due to sources which are not single stars and thus break the GSP-Phot assumptions, such as quasars or galaxies (see Figure 16.8). In the Kiel diagram (panel b) we highlight the RGB bump, red clump and AGB bump.
Refer to caption
Figure 16.38: Skymap of extinction A0 from GSP-Phot for the full sample. Using source_id, the data has been binned into HEALPix level 12 and Mollweide projection. The resulting coordinate system is ecliptic, not Galactic.
Refer to caption
Figure 16.39: Mass-radius relation for 12 645  randomly selected cool dwarfs (teff_gspphot<4000K and logg_gspphot>3.75). In total, there are 126 534 551  such cool dwarfs within GSP-Phot results. Note that since GSP-Phot goes forward through PARSEC isochrones (see Section 16.3.3.5), the mass-radius relation implemented in PARSEC models is baked into GSP-Phot parameters.

GSP-Phot also provides a large catalogue of stellar radii and angular diameters. Figure 16.39 shows the mass-radius relation for cool dwarfs. Concerning angular diameters, that is

θ=2⋅radius_gspphot/distance_gspphot⁢, (16.77)

a comparison to ground-based interferometry is shown in Figure 16.40. There is a generally good agreement to within 6-9%. Furthermore, Figure 16.41 shows all 26 995  stars with θ>1mas and how parallax_error and ruwe respond. There are 57 stars with θ>10mas, the faintest of which has G∼9.14mag. While Figure 16.40 demonstrates good agreement to within 6-9% between GSP-Phot’s angular diameters and ground-based interferometry, the selection θ>1mas operates at the extreme end of the population. Therefore, many of these stars are likely to be outliers, but the ones with lowest parallax_error might be most promising for follow up.

Refer to caption
Refer to caption
Figure 16.40: Comparison of 2⁢R/d to apparent angular diameters from ground-based interferometry of Boyajian et al. (2012a, b, 2013) (blue dots) and Duvert (2016) (red dots). Panel (a) shows apparent angular diameter assuming a uniform disk. Panel (b) shows apparent angular diameters with limb darkening. Percentage numbers quote the median absolute error.
Refer to caption
Refer to caption
Figure 16.41: Angular diameters of all 26 995  stars with θ>1mas from GSP-Phot. Panel a: The parallax_error increases for large, cool stars because the centre of light is ‘wobbling’. Panel b: The ruwe does not scale with angular diameter though.

Last but not least, selecting all stars with metallicity below −1.2, Figure 16.42 reproduces the Poor Old Heart of the Milky Way (Rix et al. 2022).

Refer to caption
Figure 16.42: Skymap of all 41 030 829  low-metallicity stars where mh_gspphot<−1.2. Apart from the two Magellanic clouds and various globular clusters, this reproduces the Poor Old Heart of the Milky Way (Rix et al. 2022). Brightness scales with logarithmic number of stars.

16.4.3.2 FLAME products

Results from FLAME are available in the ap_xp table for a total of 527 470 860  sources. Figure 16.43, Figure 16.44, and Figure 16.45 illustrate the distribution of parameters from FLAME in this table, while Table 16.34 lists the statistics of the parameters.

Figure 16.43 illustrates the 1-D distributions of the main stellar parameters as found in the archive using a random sample of 1 000 000  sources from each table. The blue colours represent the distributions in the ap_xp table while the orange colour illustrates these same parameters but for the ap_rvs table, see Section 16.4.4.2 for quality assessment of those products. In ap_xp, the radius parameter shows a peak corresponding to main sequence stars (log⁡R∼0) with a secondary peak (excess around the distribution) for the red clump / giant stars (log⁡R∼1), as expected (note the log scale on the y-axis). However, ap_rvs contains a much larger fraction of more-evolved stars due to the G limitation in RVS spectra and the fact that the astrophysical parameters derived from the RVS spectra by GSP-Spec are filtered by signal-to-noise ratio. A similar distribution is noted for the luminosities. The masses range from 0.13 to 10  ℳ⊙. However, the majority of stars are assigned a mass of between 0.5 and 1.5  ℳ⊙, while the ages span the full allowed range. Due to the slightly higher masses found in ap_rvs, we find a corresponding larger distribution of smaller ages. A peak is found near 0 Gyr, and this is partially due to the fact that our models span only the main sequence, sub-giant, and giant evolutionary phases, and any star outside of these ranges (e.g. red clump or pre-main sequence) could have a misclassified mass (too high) and thus an incorrect age (too low). Finally, the [M/H] parameter shows the fitted [M/H] from FLAME, and one can see that we are entirely dominated by stars with −0.5<[M/H]<+0.5 as expected.

Figure 16.44 (a) and (b) illustrate the 2D histogram distribution of the sources as a function of parallax_over_error and phot_g_mean_mag, colour-coded by stellar parameter. These figures have been produced by choosing a random selection of 250 000  sources. Panel (a) shows the stellar luminosity distribution, where one can see the more intrinsically luminous objects are found on the left-hand side of the parallax quality, i.e. for worse parallax quality at a given magnitude we tend to find the brightest stars, while most of the faintest stars are found only with high parallax quality. This makes sense as the more luminous objects are seen by Gaia out to much further distances, where parallax measurements become dominated by errors. Panel (b) shows the distribution of quality of radius, defined as R/σR where σR is taken here simply as half the difference between the upper and lower confidence levels. The highest quality radius estimates are found typically with a SNR of the parallax larger than 100. At the fainter end, we see that the highest quality radii do not coincide with the highest quality parallaxes, because in this regime other factors will dominate (quality of photometry, and input astrophysical parameters).

Refer to caption
Figure 16.43: One dimensional normalised parameter distributions of the FLAME output parameters. Blue and orange lines represent the results available in ap_xp and ap_rvs, respectively. The figures have been produced using a random sample of 1 000 000  sources.
Refer to caption
Figure 16.44: FLAME luminosity (left) and inverse of radius precision (right) heatmaps as a function of G and parallax quality for results in ap_xp.

The distribution of number of sources as a function of G is illustrated in Figure 16.45. Panel (a) shows the completeness of the FLAME results calculated by evaluating the fraction of sources with FLAME results in a specific magnitude bin, compared to the total number of sources in Gaia DR4 in that same bin (from the all_source_photometry table). Panel (b) gives the actual number of counts of FLAME results in each of these same bins.

Refer to caption
Figure 16.45: FLAME results in ap_xp. (a) Completeness of FLAME as a function of G. (b) Number of sources with FLAME results as a function of G.
Table 16.34: Statistics of the FLAME parameters available in the ap_xp table.
column headings units 1% 10% 50% 90% 99%
lum_ flame [ ℒ⊙ ] 0.02 0.12 1.35 17.57 248.08
radius_ flame [ ℛ⊙ ] 0.38 0.63 1.10 3.21 17.53
gravredshift_ flame [ km⁢s−1 ] 0.05 0.26 0.58 0.66 0.70
mass_ flame [ ℳ⊙ ] 0.39 0.67 0.99 1.61 2.97
evolstage_ flame 108 158 267 497 1058
age_ flame [Ga] 0.3 1.4 6.4 8.9 11.5

Figure 16.46, Figure 16.47, and Figure 16.48 illustrate some comparisons of FLAME results with existing values in the literature.

Refer to caption
Figure 16.46: (a) Comparison of FLAME luminosity from ap_xp with those of Gaia DR3 as a function of the G mag from Gaia DR4. (b) Comparison of FLAME luminosity with those of the Gaia Benchmark Stars (Soubiran et al. 2024), colour-coded by GSP-Phot  Teff from Gaia DR4.

Figure 16.46 shows the comparison of FLAME luminosity estimates to two separate catalogues. Panel (a) shows a density plot comparing lum_flame with the luminosities estimated in Gaia DR3 using the same methodology as Gaia DR4 for a random set of 100 000  sources. As the luminosity depends critically on the distance and the amount of extinction, we restricted the sources to those who have agreement in distances in both releases to within 100 pc, agreement in extinction to within 1 mag, and relative parallax error of less than 10%. The figure illustrates the comparison as a function of G mag, and we obtain a median relative difference of +7% and MAD 7%. Further restricting the sample to 1% parallax errors and agreement in extinction to less than 0.05 mag (∼10% of the sample) reduces the median relative offset to +2% with MAD 2%. Panel (b) compares the latest version of the Gaia Benchmark Stars catalogue (Soubiran et al. 2024) who exploit photometry from the literature spanning a wide range of wavelengths to derive bolometric fluxes. The luminosities are derived by combining the bolometric fluxes with the Gaia DR3 parallax. We find a median difference of −2% and a MAD of 3% between the two catalogues, with a mean difference of over 100%. This mean difference is due to some very large outliers, and reduces to 5% when restricting teff_gspphot <7000 K.

Figure 16.47 illustrates the comparison of radii with two separate catalogues. Panel (a) illustrates the comparison of the angular diameter derived using the FLAME radius and the Gaia DR4 parallax with the catalogue of predicted angular diameters by Bourges et al. (2017) for nearly half a million sources. The figure shows a density plot, with the vast majority of sources being in agreement at the 5% level with a MAD of 2%. However, one can also observe a large number of stars with differences reaching over 50%. Some of the reasons for these differences include the fact that the angular diameters are predicted values from photometry-colour scaling relations, the FLAME radii depend on the distance (through the luminosity), and there are also several parameter spaces where either the predicted angular diameter or the FLAME may not perform as well. Overall, the statistical agreement is very satisfactory. Panel (b) illustrates the comparison of FLAME radius with the asteroseismic radius from Pinsonneault et al. (2018) for about 6000 stars. The figure is a density plot where one can clearly see the red clump at log⁡R close to 1.0. The median difference and MAD are −3% and 2% respectively.

Refer to caption
Figure 16.47: (a) Comparison of FLAME predicted angular diameters from ap_xp with those from surface brightness relations (Bourges et al. 2017). (b) Comparison of FLAME radii with asteroseismic radii for giants (Pinsonneault et al. 2018). The colour-code represents number of sources in the bins in both panels.

Figure 16.48 illustrates the comparison of mass and age from FLAME with asteroseismic results on main sequence and subgiant stars from Serenelli et al. (2017). The colour-code indicates the difference in the metallicities between the two catalogues. As expected, a large difference in metallicity results in a large offset in both mass and age, and these can be clearly seen in both panels for the data showing more than 0.5 dex difference. For the mass one can also see that a small gradient with metallicity and offset is seen, indicating that if we used the same input values we would get an improved agreement. This point is discussed in detail in Creevey et al. (2026b), where we show that by using the same input data we retrieve results in very high agreement. Given the many differences in the input parameters (Teff, log⁡g, [M/H]) we still obtain a very reasonable agreement with a median and MAD for mass at 4% and 5%, and those for age 0.1 ± 0.7 Ga.

Refer to caption
Figure 16.48: Comparison of FLAME mass (a) and age (b) from ap_xp with asteroseismic results from Serenelli et al. (2017).

Further quality assessment is illustrated for ages in the scientific validation paper for Apsis (Heiter 2026), and further quality assessment on other parameters is also provided in Section 16.4.13.

16.4.3.3 ESP-ELS products

The ESP-ELS module provides spectral type labels for 334 million sources, and an estimate of the pseudo-equivalent width (pEW) of Hα for 344 million sources. The Hα pEW measurement is performed on the observed BP/RP spectra (ew_espels_halpha), as well as on the synthetic spectrum that matches best the astrophysical parameters provided by GSP-Phot (ew_espels_halpha_model). The validation of these measurements is discussed in Frémat et al. (2026).

The ESP-ELS spectral type label is obtained by training a random forest classifier on synthetic spectra (UCD, M, K, G, F, A, B and O labels) and on observed Gaia data (WD and AGBC labels), see Section 16.3.6.2. The SIMBAD spectral types are used to assess the quality of the classification of the former labels, whereas the latter are evaluated by using a test sample of known WD and AGBC stars not used for the training. Figure 16.49 shows the confusion matrix of the classifier. The precision (i.e. purity within the test sample) and recall (i.e. completeness within the test sample) scores are indicated along the top X-axis and the right Y-axis, respectively. The scores are usually above 60%, except for the O-type stars, which are often confused with B-type stars. These values are valid within the test sample. When comparing the labelling results with the effective temperature determined by GSP-Phot, we find that the classifier’s purity for the ‘B’-type label deteriorates beyond G=15. At fainter magnitudes and for flags_espels_spectraltype <5, the ‘B’ label counts 58% of targets having GSP-Phot Teff<7000⁢K. When these cooler misclassified stars have an entry in the SIMBAD database, they are often classified as RR Lyrae stars. However, one may expect that RR Lyrae stars are overrepresented in the database. In Figure 16.50, we present the magnitude distribution of the spectral type labels. Below G=15, the distributions are in good agreement with those derived from the Gaia DR3 MOCK data (broken lines). At fainter magnitudes, the curves tend to deviate from each other, particularly for ‘B’ and ‘UCD’ labels.

Refer to caption
Figure 16.49: Confusion matrix of SIMBAD (CDS) targets that were not used during the training of the spectral type classifier. The colour coding represents the classifier precision and is normalized relative to the number of predicted labels. Precision and recall scores are provided along the upper X-axis and right-hand Y-axis, respectively. The counts are indicated in each cell.
Refer to caption
Refer to caption
Figure 16.50: Magnitude distribution of the main spectral type labels determined by ESP-ELS. No filtering is applied. The observed distribution (solid lines) is compared to the one expected from the Gaia DR3 MOCK catalogue (Rybizki et al. 2020, broken lines)

AGB carbon stars (spectraltype_espels = ‘AGBC’)

A total of 15 740  bona fide carbon stars were identified in Gaia DR3 (Gaia Collaboration et al. 2023c). In Gaia DR4, applying the same criteria, 30 996  targets were labelled ‘AGBC’ with flags_espels_spectraltype =0. These are the candidate carbon stars exhibiting the strongest measured C2 and CN molecular bands. Cross-matching these targets with the LMC (p>0.33) and SMC (p>0.31) best membership catalogues (Gaia Collaboration et al. 2026f) provides 6110 and 1705 candidate carbon stars in the LMC and SMC, respectively. Additionally, 5 375 682  other targets also received the ‘AGBC’ label, most of them (94 %) with a quality flag worse than 4. These numbers include the additional sources processed after the end of operations (correcting a pre-selection issue, as described in Section 16.4.6.1).

Since the classifier was trained on a different sample of carbon stars and on a different version of the Gaia data, differences with the Gaia DR3 golden sample are expected. Among the 15 740  Gaia DR3 carbon stars, 13 287  were identified as ‘AGBC’ in Gaia DR4 with flags_espels_spectraltype =0. Of the remaining targets, 275 received a lower quality ‘AGBC’ label, 1179 received no label, and 734 were assigned a different spectral type. In the left-hand panel of Figure 16.51, we present the distribution of the quality flag values in the latter sample. Most of these stars were labelled ‘K’ or ‘M’, or received a quality flag greater than 4.

In the right-hand panel of Figure 16.51, we show the Kiel diagrams for the different values of the quality flag. The astrophysical parameters that we adopted are those derived by GSP-Phot. Since no synthetic spectra computed for carbon stars (or other peculiar objects) are present in the spectral libraries, GSP-Phot parameters of carbon stars are expected, and known to be biased. Despite this, the candidate AGBC stars are generally found in the same place of the diagram, most being red giants. As the quality of the classification decreases (i.e. for higher quality flag value), more candidates belong to the known artefacts of GSP-Phot’s classification, which often reproduce segments of the isochrones used in the parameter determination.

Refer to caption
Refer to caption
Figure 16.51: Left/top panel: Distribution of the quality-flag values, flags_espels_spectraltype, for Gaia DR3 bona-fide carbon stars that were not classified as ‘AGBC’ in Gaia DR4. Right/bottom panel: Kiel diagram of the Gaia DR4 targets with spectraltype_espels = ‘AGBC’ as a function of the quality flag. GSP-Phot’s astrophysical parameters were used. The features that reproduce segments of the isochrones used in the parameter determination are shown by coloured curves and numbered in the ‘QF flag = 2’ subplot.

After comparing the bona fide ‘AGBC’ stars with the latest version of the Suh (2024) catalogue and excluding the targets used for the training (number of remaining reference targets: 4622), 3745 matches were found, which represents a completeness of 81%.

Refer to caption
Figure 16.52: Colour-magnitude diagrams of the objects labelled ‘WD’ by ESP-ELS for different values of flags_espels_spectraltype. The gray shaded region indicates the location of 95% of the catalogue objects brighter than G=18.25. The reddening and extinction parameter values of GSP-Phot were adopted to compute the absolute magnitudes and colours.

White Dwarf candidates (spectraltype_espels = ‘WD’)

For Gaia DR4, and in order to help clean the sample of massive OBA stars, we introduced a new label to identify white dwarfs by training the spectral type classifier on the BP/RP spectra and absolute G magnitudes of targets selected among the candidate WDs of Gentile Fusillo et al. (2021) (Section 16.3.6.2). In total, 158 700  objects were flagged with the label ‘WD’.

In practice, the sample of objects labelled ‘WD’ contains various classes of sub-luminous stars located, in a colour-magnitude diagram, below the main sequence. This includes both hot subdwarf stars and white dwarfs. Figure 16.52 shows the colour-magnitude diagram of the subsample of these stars having relative parallax uncertainties smaller than 30%.

16.4.3.4 ESP-UCD products

Effective temperature estimates The ESP-UCD module produces effective temperatures for a total of ≈1.7 million sources. Given the shape of the luminosity function, the vast majority of these sources have temperatures near the hot limit of the ESP-UCD range of 3000 K. For reference, results for 94 158 potential UCDs with Teff <2700 K were published in Gaia DR3. In Gaia DR4 we publish results for a total of 1 694 574  sources, 156 880  of which have Teff <2700 K.

As described in Section 16.3.9.6, the definition of the set of sources with ESP-UCD Teff estimates in Gaia DR4 is defined in two stages. The first stage is based primarily on the RP spectrum cumulative fluxes (percentiles) and results in more than 22 million sources. Here we take advantage of the fact that UCDs have RP spectra fluxes mainly concentrated in the middle and red-third of the spectrum. This selection, however, does not exclude similarly red RP spectra of evolved stars or very noisy spectra with RP cumulative fluxes that fulfil the selection criterion. Hence, a second post-processing stage is necessary to remove contaminants, ideally without removing true UCDs. We use the GUCDS (Smart et al. 2017) in order to define the selection criteria of the second stage. Two important diagnostic plots are used to define them. In Figure 16.53 we show from left to right the position of the GUCDS, quality classes 0, 1 and 2, and quality class 3 in these two diagnostic spaces: the astrometric signal-to-noise ratio plane (top row) and the log⁡(τ)–log⁡(dTS) plane (bottom row; see Section 16.3.9.4). In the left column we show the 22 million sources selected based on the RP percentiles as black dots, and a kernel density estimate of their distribution as white iso-contours in 10 equispaced levels. It shows as well the position of the GUCDS sources, which we use as guidance for the final selection of sources. In the bottom left panel, two separate branches merge at log⁡(dTS)≈−1.5 dex and log⁡(τ)≈−4.2. Most of the GUCDS sources belong to the upper diagonal branch upon which most of the quality class 0, 1 or 2 fall (bottom middle panel). There are, however, GUCDS sources in the lower, vertical branch at log⁡(dTS)≈−2 dex. The lower part of this vertical branch is populated by evolved giants as determined by the position in the HR diagram, and SIMBAD identifications. The middle segment before merging with the upper branch, has a mixture of UCDs (as demonstrated by the bottom left panel), young pre-Main Sequence TTauri stars and early- and mid-M spectral type dwarfs affected by extinction (again, according to SIMBAD identifications available). The quality class definitions ensure that sources in the lower branch are assigned quality class 3. In the top row, we see that quality class 3 (right panel) also includes sources with cool temperatures and parallax values (and associated uncertainties) inconsistent with the GUCDS distribution (those near the turquoise diagonal line). They appear in the colour-absolute magnitude diagram (CAMD) shown in Figure 16.54 as the yellow-blue cloud of points with MG<15 to the right of the Main Sequence visible in the left- and middle panels. Given these diagnostic diagrams, we warn against the a critical use of quality class 3 sources.

Refer to caption
Figure 16.53: Diagnostic plots used for the selection of ESP-UCD sources. The top row shows the distribution of sources in the parallax–parallax uncertainty plane in logarithmic units. The bottom row represents the same sources in the plane of minimum distance to the set of templates (dTS) and median RP spectrum curvature (τ), again in logarithmic units. The left column represents the 22 million sources selected in stage 1 as black dots, with a kernel density estimate as iso-contour lines in white. The coloured squares represent the GUCDS used a guidance for completeness of the post-processing selection. The middle column shows the distribution of sources in quality classes 0, 1 and 2, and the rightmost column that of sources in quality class 3. Cooler temperatures are plotted after hotter ones, and with bigger symbols in order to enhance their visibility in regions with mixed temperatures. The colour code reflects the effective temperature derived from GUCDS literature spectral types using Stephens et al. (2009) (left) or the ESP-UCD estimates of Teff in K (middle and right). The turquoise line in the upper row is defined by log⁡(σϖ)=−0.8+1.3⋅log⁡(ϖ) (see Section 16.3.9.6).

Figure 16.54 shows the resulting colour-absolute magnitude diagram of the full set of UCDs for quality classes 0, 1, and 2 (middle), and 3 (right), together with the 22 million sources selected in stage 1 and the GUCDS (left).

Refer to caption
Figure 16.54: G−GRP colour-absolute magnitude diagram of UCDs colour-coded according to effective temperature. From left to right, the panels represent the 22 million sources selected in stage1 and the GUCDS used as reference, sources with quality classes flags_espucd=0, 1 or 2 (middle) and sources with quality class 3 (right). Cooler temperatures are plotted after hotter ones, and with bigger symbols in order to enhance their visibility in regions with mixed temperatures. The colour code reflects the effective temperature derived from GUCDS literature spectral types using Stephens et al. (2009) (left) or the ESP-UCD estimates of Teff in K (middle and right).

Although the GUCDS was used as reference for the definition of the post-processing filters, not all of its members are actually selected for publication. In the following, we present the outcome of the two selection stages on the GUCDS as an illustration of the boundaries of the ESP-UCD sample:

  • •

    There are 11 879  sources with spectral type M6 or later in the GUCDs reference set. All of them were presented to ESP-UCD during Operations.

  • •

    Out of the 11879 GUCDS sources, 10961 are selected in stage 1 and 918 are filtered out.

  • •

    Amongst the 918 rejected sources (each of the following items represent incremental explanations upon preceding ones):

    • –

      104 do not have a parallax measurement

    • –

      32 have a parallax less than 0.35 mas

    • –

      13 do not have GRP measured or G−GRP<1.0 mag

    • –

      441 have less than 15 valid RP spectra

    • –

      328 have inconsistent RP-percentiles. This is due mostly to the spectra having percentiles characteristic of earlier spectral types or being too noisy (percentiles then are meaningless due to strong oscillations).

  • •

    523 sources are further removed during stage 2 (postprocessing) due to the following reasons:

The GUCDS contains literature spectral types that we can use to validate the ESP-UCD temperature estimates. We convert spectroscopic spectral types to effective temperatures using the calibration by Stephens et al. (2009). Figure 16.55 shows a comparison of these calibrated temperatures with the ESP-UCD predictions for the subset of GUCDS sources inside the calibration validity range (spectral type M6 or later). Red circles denote sources with RP spectra inconsistent with their spectral type either due to wrong cross-matches, wrong literature spectral types or low signal-to-noise ratio spectra. The RMSE calculated with the rest of sources not included in the training set is 116 K, and the MAE is 67 K. These figures are dominated by the high temperature regime. If we restrict the sample to sources with spectral types later than M7, the RMSE is 169 K and the MAE, 108 K.

Refer to caption
Figure 16.55: Comparison of ESP-UCD effective temperatures with GUCDS temperatures derived from literature spectroscopic spectral types using the calibration by Stephens et al. (2009). The red circles denoted as noise correspond to stars with RP spectra that depart significantly from the median RP spectrum of its corresponding 100 K GUCDS temperature bin, and with large median curvatures τ and distances from the templates (log⁡(dTS)).

The number of sources with ESP-UCD Teff estimates has increased significantly with respect to Gaia DR3. This occurs for two reasons: first, because we have extended the upper limit of temperatures from 2700 K to 3000 K, but also because the publication criteria have been made more inclusive in order to publish results for the majority of previously known UCDs in the literature with a Gaia cross-match (GUCDS). Since this objective of completeness comes at the cost of contamination, we have redefined the quality class definitions. In Gaia DR4, quality classes 0, 1, and 2 contain relatively good UCD candidates as demonstrated by the CAMDs in Figure 16.54, while quality class 3 clearly contains significant contamination from lower quality measurements (both in astrometry and photometry). Also, as mentioned above, investigation of selected subsets of sources in the literature reveals contamination from severely reddened sources of spectral types earlier than those corresponding to the ESP-UCD range. The three best quality classes represent 37% of the sources with Teff <2700  K and 42.5% of all sources.

The subset of Gaia DR4 sources with ESP-UCD Teff <2700 K (the subset that can be compared with the Gaia DR3 results) is divided as follows: 63% (98 553) of the sources are in quality class 3, while 15 252  are in quality class 0, 28 081  in quality class 1, and 14 994  in quality class 2. Figure 16.56 shows that the Gaia DR4 distribution is more parsimonious than that of Gaia DR3. The apparent decrease in Gaia DR3 counts for temperatures in the range 1700–2000 K due to the difficulty of the classifier to identify the subtle changes in the RP spectrum in that temperature range has disappeared thanks to the improved quality of the Gaia DR4 RP spectra and to improvements in the training set. Furthermore, Gaia DR4 results have also corrected for the apparent overestimation of temperatures visible in comparisons with the literature such as those shown in Figure 20 of Gaia Collaboration et al. (2023c).

88 604  of the 94 158  sources with ESP-UCD effective temperatures published in Gaia DR3 are also included in Gaia DR4 (2663 rejected in the selection stage 1 and 2891 in stage 2 or post-processing). The main reason for the rejection in stage 1 is the number of valid RP spectra (2024 with less than 15 valid spectra). The main reasons for rejection in stage 2 (post-processing) are those related to the astrometric quality filters astrometric_chi2_al (1364), astrometric_n_good_obs_al (1473) and signal-to-noise ratio (1177).

Refer to caption
Figure 16.56: Histogram of ESP-UCD Teff predictions for Gaia DR3 (turquoise) and Gaia DR4 (white for all classes and gray for classes 0, 1, and 2). Note the logarithmic counts in the y axis.

In addition to the GUCDS, we also assessed the ESP-UCD results through comparisons against eight reference sets from Dieterich et al. (2014), hereafter Dieterich; Cifuentes et al. (2020), hereafter Cifuentes; SIMBAD sources with spectral types M6 V or later; West et al. (2011), hereafter West; Wang et al. (2022), hereafter Wang; Rajpurohit et al. (2018), hereafter Rajpurohit; López-Valdivia et al. (2019), hereafter López-Valdivia; and a subset of the sources with high-quality determinations of their astrophysical parameters in the literature (hereafter HQ). For this analysis, we exclude sources from the reference sets with effective temperatures Teff exceeding 3000 K. We also exclude sources in SIMBAD with MG lower than 7.5, as high luminosity at these colour indices is an indication of post-main sequence evolution of a more massive star.

The impact of the post-processing quality filters is illustrated in the Colour-Absolute Magnitude Diagrams (CAMD) presented in Figure 16.57. These visualizations provide a categorical comparison between validated sources (black circles) and those excluded from the final selection (orange squares). Analysis of the rejection statistics shows that source exclusion is primarily driven by the selection filter defined in terms of log⁡(τ) and log⁡(dTS). It accounts for nearly 100% of the removals in several catalogues, including West and Wang, with the astrometric SNR filter having a significantly smaller impact.

Quantitative comparisons between literature and ESP-UCD Teff estimates are shown in Figure 16.58. To ensure an unbiased performance assessment, the validation sample was partitioned into two subsets: the full sample and the independent (not used in the training of the Gaussian Process model) subset. The corresponding performance summary statistics for both partitions are included in Table 16.35 and Table 16.36, respectively. We include the median absolute error (MAE) and the root mean square error (RMSE) as accuracy evaluation metrics. The Mean Bias Error (MBE) and Median Absolute Deviation (MAD) are also included in order to quantify systematic offsets and the spread of the ESP-UCD Teff estimates.

Table 16.35: Teff error summaries for ESP-UCD reference sets.
Reference Set NS⁢o⁢u⁢r⁢c⁢e⁢s MAE [K] RMSE [K] MBE [K] MAD [K]
Dieterich 57 57.50 80.72 6.41 28.26
Cifuentes 122 103.58 141.36 -29.65 70.89
Simbad 5293 127.30 160.54 -78.27 80.65
West 10849 132.10 157.73 -114.31 68.65
Wang 302 71.36 87.28 63.21 33.13
Rajpurohit 14 141.09 155.27 107.47 44.13
López-Valdivia 4 215.19 235.12 215.19 43.31
High Quality 42 49.18 69.00 3.53 23.86
Table 16.36: Teff error summaries for ESP-UCD reference sets excluding training set sources.
Reference Set NS⁢o⁢u⁢r⁢c⁢e⁢s MAE [K] RMSE [K] MBE [K] MAD [K]
Dieterich 47 61.86 85.62 10.55 29.62
Cifuentes 107 108.17 144.16 -28.09 71.72
Simbad 5255 127.69 160.92 -78.66 80.72
West 10843 132.09 157.73 -114.30 68.65
Wang 221 71.26 88.12 62.51 32.36
Rajpurohit 11 131.66 144.74 102.93 35.83
López-Valdivia 4 215.19 235.12 215.19 43.31
High Quality 33 52.92 72.97 9.97 27.39

For the SIMBAD and West datasets, effective temperatures were derived from spectral types using the calibration of Stephens et al. (2009). Figure 16.58 shows that, while four reference sets (Dieterich, Cifuentes, SIMBAD, and HQ) show a reasonable agreement between the literature temperatures and the ESP-UCD estimates, for three other sets (Wang, Rajpurohit, and López-Valdivia) the ESP-UCD estimates show systematic differences. For Wang temperatures, this is expected since, as noted in Section 16.3.9.2, the temperatures and spectral types in Wang et al. (2022) are inconsistent with the Stephens et al. (2009) calibration adopted as the basis for the training set. The same applies to the Rajpurohit set with a similar offset (≈100 K in the ESP-UCD range).

Refer to caption
Figure 16.57: Colour-absolute magnitude diagram for all reference sets. Progressing from top-left to bottom-right, the panels represent: Dieterich, Cifuentes, SIMBAD, West (top row); and Wang, Rajpurohit, López-Valdivia, and High Quality (bottom row). See text for references. Black points designate sources that successfully passed the quality filters, while orange squares indicate excluded sources.
Refer to caption
Figure 16.58: Comparison between the ESP-UCD Teff estimates and the literature values for the different referent datasets. Progressing from top-left to bottom-right, the panels represent: Dieterich, Cifuentes, SIMBAD, West (top row); and Wang, Rajpurohit, López-Valdivia, and High Quality (bottom row). See text for references. Sources used in the training set are plotted as orange squares.

Youth index. Figure 16.59 shows a histogram of the py values obtained in the different quality classes (cyan for quality class 0, orange for quality class 1 and grey for quality class 2). It shows that the vast majority of sources get py values close or equal to 0 as expected (its value is set to zero below the G+5⋅(log⁡(ϖ/1000)+1)>−6.4+13⋅(G−GRP) line). Sources with values of py greater than 0.2 are distributed mainly in two modes, one centred above 0.8 and a second one close to one. This bi-modality arises from the shape of the Diffusion Map shown in Figure 16.14. The first mode corresponds to the main area of the map (with positive values of the Diffusion Map coordinate 2), and the second mode, to the spike of negative values.

Refer to caption
Figure 16.59: Histogram of the ESP-UCD youth indices. Cyan denotes counts in quality class 0, orange is quality class 1, and grey is quality class 2.

A search in SIMBAD (Wenger et al. 2000) with the Gaia DR3 identifiers of the sources with py>0.2 (used as arbitrary threshold for youth) returns object types, the most frequent of which (more than 100 counts, excluding the general category ’*’ for stars) are shown in Table 16.37. It shows a clear predominance of young source types. The most frequent SIMBAD spectral types are in the range M4.5 to M7, and the latest spectral types found are 8 L0 sources and one L1.5.

Table 16.37: Table of SIMBAD identifications for sources with py>0.2.
Y*? Y*O Or* LM* PM* TT*
1829 897 622 614 608 300

Figure 16.60 shows the distribution in Galactic coordinates (left panel) and the vector point diagram (VPD, right panel) of the sources with py>0.2. As in Sarro et al. (2023), we apply the Hierarchical Mode Association Clustering (Li et al. 2007; Cheng and Ray 2014) algorithm to the set of sources with py>0.2, in the representation space constructed with the Galactic coordinates (l,b), tangential velocities (vR⁢A,vD⁢e⁢c), and the parallax. HMAC is a flexible clustering algorithm that does not impose cluster shapes of any kind. Clusters are identified with the modes of kernel density estimates that do not need to be calculated explicitly. We use spherical kernels with 5 radii: 0.01, 0.02, 0.04, 0.1, and 0.2. Each level produces a set of clusters that merge as the kernel radius increases, thus naturally producing a hierarchy of clusters or dendrogram. At the level of a kernel size equal to 0.1, we obtain 415 clusters with more that 10 members comprising a total of 43 001  sources (50%). The remaining 50% of the sources with py>0.2 are assigned to clusters with less than 10 members and still show clear over-densities over large spatial scales (hence low densities) in celestial coordinates without a corresponding clustering in proper motions or parallax. At the largest kernel size (0.2) no residual over-density is visible and 12% of the sources (10 322 ) fall in clusters of less than 10 sources.

We cross-match the set of sources with py>0.2 with the catalogue of Hunt and Reffert (2024), hereafter HR24, and find only 1457 sources in common, belonging to 347 of the HR24 stellar groups. The HR24 catalogue contains 1 291 929  sources selected from a subset of 729.7 million in Gaia DR3 with v⁢1 quality flags Rybizki et al. (2022) greater than 0.5, and is dominated by Main Sequence dwarfs at distances up to 4 kpc. This could explain the low number of matches despite the conspicuous clustering of sources shown in Figure 16.60. 79% of the sources with a cross-match in the HR24 catalogue belong to groups of ages less than 50 Myr and 87% of them to clusters with ages less than 100 Myr. At level 4 (kernel size 0.1) 39 212  sources with py>0.2 belong to the same HMAC clusters as these 1457 sources in the catalogue by Hunt and Reffert (2024).

We also analyse the py values of the subset of GUCDS sources with very-low gravity classifications in the literature: the optical spectral-type suffix γ, indicating very low-gravity as defined by Cruz et al. (2009) or the near-IR gravity class VL-G, as defined by Allers and Liu (2013). We find 26 sources above the G+5⋅(l⁢o⁢g⁢(ϖ/1000)+1)=−6.4+13⋅(G−GRP) line, 14 (11) of them with py>0.1 (0.2), which results in a detection efficiency of 54% (42%).

Finally, we have cross-matched the ESP-UCD set of 86 542  sources with py>0.2 with the catalogue of young stellar object (YSO) candidates by Marton et al. (2019). This catalogue contains Gaia DR2 sources with matches in the 2MASS (Skrutskie et al. 2006) and AllWISE (Cutri et al. 2013) catalogues and in regions of the sky with Planck (Planck Collaboration et al. 2016a) dust opacity values higher than 1.3×10−5. We require that the probability of being a YSO (using only the AllWISE Cutri et al. 2013, W1 and W2 bands) is greater than all other class probabilities, and use the Gaia DR3 and Gaia DR4 neighbourhood tables to match the original Gaia DR2 source_ids to Gaia DR4. For the Gaia DR2-Gaia DR3 mapping we require that the two sources are at angular distances below 100 mas and the G magnitude difference is less than 0.1 mag. This in practice may remove photometrically variable YSOs. For the Gaia DR3-Gaia DR4 mapping we require that probable_match is set to true. These constraints reduce the number of sources in the catalogue from 101 838 724  to 97 893 655 . We find that 19 415  of the ESP-UCD candidates are matched to the YSO candidates as defined above. Figure 16.61 shows the distribution in Galactic coordinates and the VPD of the sources matched (top) and not matched (bottom) to sources in the Marton et al. (2019) catalogue. As expected, all ESP-UCD sources out of the Galactic disk (where the Planck dust opacities are low) are not matched. The figure shows clear indications that a significant fraction of the sources not matched to sources in the Marton et al. (2019) catalogue belong to the same stellar associations as those that are matched.

Refer to caption
Figure 16.60: Galactic coordinates (left) and vector point diagram (right) of ESP-UCD sources with youth index py>0.2.
Refer to caption
Figure 16.61: Galactic coordinates (left) and vector point diagram (right) of ESP-UCD sources with youth index py>0.2 with (top) and without (bottom) matches in the Marton et al. (2019) catalogue.