skip to main content

gaia data release 4 documentation

6.5 Quality assessment and validation

6.5.2 Validation and Post-processing

When the spectroscopic Gaia DR4 processing was completed, CU6 carried out a catalogue-level validation campaign on the pipeline products in order to assess the properties of the entire dataset and to identify low-quality data to be flagged as invalid. The majority of the recipes used to identify spurious data, flag them as invalid, and populate the associated invalidreason field were developed in the Post-processing module. However, a few invalid flags on the epoch results were already set during the processing of the STA pipeline.

Contrary to previous data releases, where data flagged as invalid were not published, in DR4 these results are also made available, although such cases constitute the majority of the RVS outputs. They are accompanied by the invalidreason indicator and various quality metrics, enabling users to decide whether to prioritise data completeness or purity according to their research needs. Both valid data and those flagged as invalid are published in the tables all_source_rvs (per-source data) and rvs_epoch_parameters_single (epoch data). However, CCD spectra invalidated during FullExtraction are still excluded from the pipeline and not published, although the invalid reason is stored in the table rvs_transit_description.

The main task of Post-processing is to flag as invalid the spurious per-source and epoch radial velocities, broadening velocities, and magnitudes. The validity flags and associated invalid reasons are as follows:

6.5.2.1 Invalidation of per-source data

The RVS pipeline produced radial_velocity_single for 250 019 611  sources, grvs_mag for 230 201 075  sources, and vbroad for 7 139 909  sources. After Post-processing, 84 672 577  radial velocities remain valid (Bright: 37 971 446 , Faint: 46 701 131 ), together with 130 282 133  grvs_mag values and 2 594 988  vbroad values.

The precision of the valid radial velocity measurements as a function of magnitude is shown in Figure 6.24, while the precision of the valid grvs_mag values is shown in Figure 6.26. The distribution of valid vbroad values is presented in Figure 6.25, in reasonable agreement with Głȩbocki and Gnaciński (2003).

Refer to caption
Figure 6.24: Median uncertainty of valid per-source radial velocities (radial_velocity_single_error) as a function of external_apparent_grvs magnitude, for different effective temperature (rv_template_teff) groups. Shaded regions indicate the 16th–84th percentile range for selected groups (3 500  < rv_template_teff ≤ 6 500  K, 6 500  < rv_template_teff ≤ 8 500  K, rv_template_teff > 8 500  K). Of the 84.7 million stars with valid radial velocities, 96.2% are in the (3500; 6500] K group, 3.2% in the (6500; 8500] K group, 0.4% in the Teff < 3 500  K group, and 0.2% in the Teff > 8500 K group. No valid radial velocities are present for the cool star group and the (6500; 8500] K group with external_apparent_grvs > 14 (bit26), nor for the hot stars with external_apparent_grvs > 12 (bit0), as detailed in Table 6.18. The discontinuity at external_apparent_grvs = 11 is due to the change of rv_single_method_used at this magnitude. Validation and properties of the radial velocities are described in Katz (2026).
Refer to caption
Figure 6.25: Violin plots of the distribution of valid per-source vbroad values as a function of rv_template_teff. The horizontal bars indicate the median. About 93% of the stars with a valid vbroad measurement are medium-temperature stars (3 500  K ≤ rv_template_teff < 7 500  K), while 7% are hot stars (7 500  K ≤ rv_template_teff ≤ 14 500  K). The line-broadening velocities are described in Royer (2026).
Refer to caption
Figure 6.26: Median internal precision of valid per-source grvs_mag (given by grvs_mag_error) as a function of grvs_mag, computed in 0.2 mag bins.

Validation and properties of the results are described in Katz (2026) (radial_velocity_single), Royer (2026) (vbroad), and Sartoretti et al. (2026) (grvs_mag). Extreme radial velocity candidates, especially at low signal-to-noise ratio, may be affected by spurious cross-correlation peaks and require confirmation through ground-based follow-up observations (see Katz et al. 2025). Valid radial velocities and vbroad values are consolidated and published in gaia_source, while all valid grvs_mag values are published directly. Both valid and invalid results appear in all_source_rvs.

Invalidation reasons are detailed in Table 6.17 (bright stars, external_apparent_grvs ≤14), Table 6.18 (faint stars, external_apparent_grvs >14), Table 6.19 (grvs_mag), and Table 6.20 (vbroad).

The mean spectra, rvs_mean_spectrum (see Section 6.1.1.4), are never invalidated. Their quality is indicated by the signal-to-noise ratio, stored in rvs_spec_sig_to_noise in both gaia_source and all_source_rvs; about 40% have values below unity.

Table 6.17: Number of occurrences for each invalidation reason, rv_invalid_reason, affecting the per-source (multi-transit-combined) radial velocities for sources in Bright and NSS modes (external_apparent_grvs ≤ 14 ; Section 6.4.6). A source’s radial velocity can be invalidated for multiple reasons. Note: Minor count discrepancies near external_apparent_grvs=14 may occur due to pipeline-to-archive float/double conversion. Occurrences are counted over all the entries of the table, including those for which no value was produced (bit24_no_rv); the percentages given in Sartoretti et al. (2026) refer only to the computed values, so the two sets of numbers are not directly comparable.
rv_invalid_reason Occurrences Criterion
(Bright+NSS)
bit0_hot_star 686 569

external_apparent_grvs ≤ 12 mag and rv_template_teff > 14 500  K; external_apparent_grvs>12 mag and rv_template_teff>8500 K

bit2_suspected_sb2 34 265

fraction_double_lined ≥ 0.1

bit3_emission_line 9 561

fraction_emission_lines > 0.4 + list

bit5_faint_star 0

This check is not performed in Bright and NSS modes

bit8_excessive_uncertainty 54

radial_velocity_single_error > 1000  km⁢s−1

bit9_invalid_ccf 26 648

UMAP dimensionality reduction technique (see Katz (2026))

bit12_out_of_range 0

radial_velocity_single>1000 km⁢s−1 or radial_velocity_single<−1000 km⁢s−1

bit20_template_mismatch 1 173 144

UMAP dimensionality reduction technique or rv_atm_param_origin = 888

bit22_contamination 10 424

list of stars identified using the method described in Katz et al. (2023)

bit23_outlier_probability 151 004

rv_outlier_probability = 2; only for stars with 3700 K ≤ rv_template_teff ≤6500 K

bit24_no_rv 658 745

No radial velocity provided by the pipeline (typically when fewer than two transits are available)

bit25_excessive_stddev 901

external_apparent_grvs ≤ 11 mag and rv_std_dev ≥ 577  km⁢s−1

bit26_faint_no_rv_outlier_probability 0

This check is not performed in Bright and NSS modes

bit27_no_atm_params 77 020

rv_star_teff = 0; no transits reach STAMTA

bit28_only_one_transit 68

external_apparent_grvs ≤ 11 and only one transit left after Post-processing

Table 6.18: Number of occurrences for each invalidation reason, rv_invalid_reason, affecting the per-source (multi-transit-combined) radial velocities for sources in Faint mode (external_apparent_grvs >14; Section 6.4.6). A source’s radial velocity can be invalidated for multiple reasons. Note: Minor count discrepancies near external_apparent_grvs=14 may occur due to pipeline-to-archive float/double conversion. Occurrences are counted over all the entries of the table, including those for which no value was produced (bit24_no_rv); the percentages given in Sartoretti et al. (2026) refer only to the computed values, so the two sets of numbers are not directly comparable.
rv_invalid_reason Occurrences Criterion
(Faint)
bit0_hot_star 3 876 907

rv_template_teff > 8500 K

bit2_suspected_sb2 0

No double-line detection in Faint mode

bit3_emission_line 0

No emission-line detection in Faint mode

bit5_faint_star 123 081 454

external_apparent_grvs > 16 mag

bit8_excessive_uncertainty 19 443

radial_velocity_single_error > 1000  km⁢s−1

bit9_invalid_ccf 0

This check is not performed in Faint mode

bit12_out_of_range 0

radial_velocity_single>1000 km⁢s−1 or radial_velocity_single<−1000 km⁢s−1

bit20_template_mismatch 137 640

rv_atm_param_origin = 888

bit22_contamination 44 505

list of stars identified using the method described in Katz et al. (2023)

bit23_outlier_probability 188 819 514

rv_outlier_probability>1−0.5×(external_apparent_grvs−14)

bit24_no_rv 61 569 224

No radial velocity provided by the pipeline (typically when fewer than two transits are available)

bit25_excessive_stddev 0

No epoch data in Faint mode; this check is not performed

bit26_faint_no_rv_outlier_probability 20 380 558

rv_template_teff < 3700 K or rv_template_teff > 6500 K

bit27_no_atm_params 15 572 163

rv_star_teff = 0; no transits reach STAMTA

bit28_only_one_transit 0

This check is not performed in Faint mode

Table 6.19: Number of occurrences for each invalidation reason grvs_mag_invalid_reason affecting the per-source grvs_mag for Bright+NSS and Faint sources (Section 6.4.6). A source’s grvs_mag can be invalidated for multiple reasons. Note: Minor count discrepancies near external_apparent_grvs=14 may occur due to pipeline-to-archive float/double conversion. Occurrences are counted over all the entries of the table, including those for which no value was produced (bit3_no_value); the percentages given in Sartoretti et al. (2026) refer only to the computed values, so the two sets of numbers are not directly comparable.
grvs_mag_invalid_reason Occurrences Criterion
Bright + NSS
bit1_too_faint_star 0

This check is not performed in Bright and NSS modes

bit2_contamination 10 424

list of stars identified using the method described in Katz et al. (2023)

bit3_no_value 3 344 607

No grvs_mag value provided by the pipeline

bit4_too_few_transits 945 738

Too few valid transits: grvs_mag <13 and grvs_mag_nb_transits <2 or nb_transits_total ≤5; or grvs_mag ≥13 and grvs_mag_nb_transits <3 or nb_transits_total ≤5

bit5_excessive_uncertainty 6 457

grvs_mag_error >16 mag

bit6_out_of_range 75 884

grvs_flux < MinFlux; M⁢i⁢n⁢F⁢l⁢u⁢x=10243×grvs_mag_nb_transits

Faint
bit1_too_faint_star 123 081 454

external_apparent_grvs > 16 mag

bit2_contamination 44 505

list of stars identified using the method described in Katz et al. (2023)

bit3_no_value 78 701 898

No grvs_mag value provided by the pipeline

bit4_too_few_transits 38 893 666

Too few valid transits: grvs_mag_nb_transits <3 or nb_transits_total ≤5

bit5_excessive_uncertainty 40 746

grvs_mag_error >16 mag

bit6_out_of_range 109 659 294

grvs_flux < MinFlux; M⁢i⁢n⁢F⁢l⁢u⁢x=10243×grvs_mag_nb_transits

Table 6.20: Number of occurrences for each invalidation reason affecting the per-source vbroad, vbroad_invalid_reason. A source’s vbroad can be invalidated for multiple reasons. vbroad is computed only for external_apparent_grvs≤12. Occurrences are counted over all the entries of the table, including those for which no value was produced (bit7_no_vbroad); the percentages given in Sartoretti et al. (2026) refer only to the computed values, so the two sets of numbers are not directly comparable.
vbroad_invalid_reason Occurrences Criterion
(Bright+NSS)
bit0_invalid_rv 2 695 037

Invalid radial velocity (all rv_invalid_reason cases)

bit1_too_faint_star 37 292 334

external_apparent_grvs >11

bit4_cool_star 222 647

rv_template_teff <3500 K (i.e. ≤3400 K on the template grid)

bit6_too_few_transits 34 431 626

vbroad_nb_transits ≤5

bit7_no_vbroad 33 520 757

No vbroad value provided by the pipeline

bit8_hot_star 18 521

rv_template_teff > 25 000  K

6.5.2.2 Invalidation of epoch data

The RVS pipeline produced single radial_velocity measurements for 1 349 351 185  epochs, grvs_mag measurements for 6 075 345 849  epochs, and single vbroad measurements for 247 159 539  epochs. After Post-processing, 695 483 605  single-epoch radial velocities remain valid, together with 1 106 415 873  grvs_ mag values and 56 289 316  single-epoch vbroad values. The pipeline also produced double radial velocities and double vbroad measurements for 787 312  epochs. These double radial and broadening velocities are not post-processed; however, some are invalidated during processing, mostly because of algorithmic issues, although no specific invalidation reason is provided. As a result, 777 354  double radial velocities and 575 492  double vbroad measurements remain valid. For double-lined spectra, a single grvs_mag value is computed, corresponding to the magnitude of the system.

Both valid and invalid results are published in the table rvs_epoch_parameters_single (see also Table 6.6), while the results for the detected double-lined transits are published in the table rvs_epoch_parameters_double (see also Table 6.7). There are no epoch radial_velocity values for stars fainter than external_apparent_ grvs>14, and no epoch vbroad values for stars fainter than external_apparent_grvs>12. The validation and properties of the epoch radial velocities are described in Blomme et al. (2026), those of vbroad in Royer (2026), and those of grvs_mag in Sartoretti et al. (2026).

The tables below list each invalidation reason, the corresponding criteria used to set each of them, and their occurrences:
- Table 6.21: epoch radial velocities of bright stars (external_apparent_grvs ≤14) processed in STA Bright or NSS modes (Section 6.4.6);
- Table 6.23: epoch grvs_mag processed in FullExtraction (Section 6.4.5);
- Table 6.22: epoch vbroad (external_apparent_grvs ≤12) processed in STA Bright or NSS modes (Section 6.4.6).

Some epoch values are invalidated during pipeline processing and are therefore excluded from the computation of the multi-transit data. Others are invalidated in Post-processing after validation, once the processing has taken place, and are therefore included in the multi-transit data. For example, when computing radial_velocity _single stored in the table all_source_rvs, the transits with rv_invalid_reason bit3_emission_line, bit8_contamination, bit15_duplicated_transit, and bit62_other_reasons (see Table 6.21) are discarded, whereas transits with the other rv_invalid_reason flags are used.

The epoch spectra, rvs_epoch_spectrum (Section 6.4.8.2), are not post-processed and are never invalidated. Quality indicators include the expected signal-to-noise ratio, expected_sig_to_noise, the presence of contamination (is_contaminated), and the source magnitude. Epoch spectra of sources fainter than external_apparent _grvs=14 are considered too faint for measuring epoch radial velocity; however, all spectra are published. Approximately 83% of the epoch spectra have a signal-to-noise ratio below unity.

Table 6.21: Occurrences of invalidation reasons for epoch (per-transit) radial velocities, rv_invalid_reason. A transit radial velocity can be invalidated for multiple reasons. Epoch radial velocities are not computed in Faint mode. Therefore, the counts of rv_invalid_reason flags refer only to BRIGHT+NSS sources, for which the epoch radial velocity computation is attempted. Note: Minor count discrepancies near external_apparent_grvs=14 may occur due to pipeline-to-archive float/double conversion. Occurrences are counted over all the entries of the table, including those for which no value was produced (bit11_no_rv); the percentages given in Sartoretti et al. (2026) refer only to the computed values, so the two sets of numbers are not directly comparable.
rv_invalid_reason (epoch) Occurrences Criterion
bit1_hot_star 23 934 986

external_apparent_grvs ≤12 mag and rv_template_teff >14500 K; or external_apparent_grvs>12 mag and rv_template_teff >8500 K.

bit3_emission_line 337 417

emission_lines=true, or fraction_emission_lines>0.4, or detected as emission-line star during validation. Not used for multi-transit RVs.

bit6_large_uncertainty 27 379

radial_velocity_error>1000  km⁢s−1.

bit8_contamination 5 220 682

Contaminated by bright neighbour (ccd_invalid_reason=78 or 81). Not used for multi-transit RVs.

bit9_outlier_probability 631 230 761

rv_outlier_probability=2, or ≥7.0−0.5×external_apparent_grvs, or rv_outlier_condition≥0.76.

bit10_scan_angle_signal 158 866

Significant scan-angle signal (rv_single_method_used=5).

bit11_no_rv 88 111 273

No radial velocity from pipeline.

bit12_excessive_stddev 3 705 320

rv_std_dev≥577  km⁢s−1.

bit13_template_mismatch 22 821 286

UMAP classification (see Katz (2026)) or rv_atm_param_origin=888.

bit14_method_discrepancy 20 995

Two methods differ by >200  km⁢s−1, for stars with external_apparent_grvs≤11 mag.

bit15_duplicated_transit 229 633

Duplicated transit (ccd_invalid_reason=71). Not used for multi-transit RVs.

bit16_only_one_transit 2 739 230

Only one transit after post-processing.

bit17_no_atm_params 395

No atmospheric parameters (rv_atm_param_star_teff=0).

bit62_other_reasons 139 491

rv_assumed_sb2=True. Not used for multi-transit RVs.

Table 6.22: Occurrences of invalidation reasons for epoch (per-transit) vbroad, vbroad_invalid_reason. A value can be invalidated for multiple reasons. vbroad is computed only for external_apparent_grvs≤12. Occurrences are counted over all the entries of the table, including those for which no value was produced (bit8_no_vbroad); the percentages given in Sartoretti et al. (2026) refer only to the computed values, so the two sets of numbers are not directly comparable.
vbroad_invalid_reason Occurrences Criterion
(epoch)
bit0_invalid_rv 741 981 143

Invalid radial velocity (includes all rv_invalid_reason ).

bit1_star_too_faint 1 338 673 657

external_apparent_grvs >11

bit2_outside_range 91 357 678

Below lower limit of 4.5 km⁢s−1. Not used for multi-transit vbroad.

bit4_deblended 398 518 424

Deblended or reblended transit (Bit 55 or 56 in radial_velocity_status). Not used for multi-transit vbroad.

bit5_pre_decontamination 30 685 928

Transit before decontamination at OBMT revolution 1317. Not used for multi-transit vbroad.

bit6_cool_star 4 679 690

rv_template_teff <3500 K (i.e. ≤3400 K on the template grid)

bit8_no_vbroad 1 190 305 209

No vbroad value provided by the pipeline.

bit9_hot_star 327 820

rv_template_teff > 25 000  K

bit10_grid_edge 604 344

Value at the grid edge.

bit15_other 1 818 097

Other reasons. Not used for multi-transit vbroad.

Table 6.23: Number of occurrences for each invalidation reason affecting the per-transit grvs_mag, grvs_invalid_reason for Bright+NSS and Faint samples. A transit’s grvs_mag can be invalidated for multiple reasons. Note: Minor count discrepancies near external_apparent_grvs=14 may occur due to pipeline-to-archive float/double conversion. Occurrences are counted over all the entries of the table, including those for which no value was produced (bit4_no_grvs); the percentages given in Sartoretti et al. (2026) refer only to the computed values, so the two sets of numbers are not directly comparable.
grvs_invalid_reason (epoch) Occurrences Criterion
Bright + NSS
bit1_too_faint_star 0

This check is not performed in Bright and NSS modes

bit2_deblended 401 595 581

Deblended or reblended transit (flagged in radial_velocity_status with bit 55 or 56); not used to compute multi-transit grvs_mag

bit3_contamination 151 623 774

Contamination of the flux by a nearby star (ccd_invalid_reason = 78 or 81, or bit 15 in ccd_status); not used in multi-transit values

bit4_no_grvs 4 949 200

No grvs_mag provided by the pipeline

bit5_large_uncertainty 653 475

grvs_mag_error > 16 mag

bit7_outside_range 42 795 643

grvs_flux < MinFlux, with M⁢i⁢n⁢F⁢l⁢u⁢x=10243 e−/s

bit8_duplicated_transit 235 552

Duplicated transit (ccd_invalid_reason = 71); not used in multi-transit values

bit9_unreliable_interval 48 462 707

Time interval with many unreliable grvs_mag; specifically revolutions [5853, 5905] and [5496, 5576], for sources with external_apparent_grvs >10

Faint
bit1_too_faint_star 4 934 205 910

external_apparent_grvs > 14.4 mag

bit2_deblended 1 690 383 331

Deblended or reblended transit (flagged in radial_velocity_status with bit 55 or 56); not used to compute multi-transit grvs_mag

bit3_contamination 930 666 828

Contamination of the flux by a nearby star (ccd_invalid_reason= 78 or 81, or bit 15 in ccd_status); not used in multi-transit values

bit4_no_grvs 830 916 157

No grvs_mag provided by the pipeline

bit5_large_uncertainty 174 787 970

grvs_mag_error > 16 mag

bit7_outside_range 4 539 736 816

grvs_flux < MinFlux, with M⁢i⁢n⁢F⁢l⁢u⁢x=10243 e−/s

bit8_duplicated_transit 4 102

Duplicated transit (ccd_invalid_reason = 71); not used in multi-transit values

bit9_unreliable_interval 129 522 657

Time interval with many unreliable grvs_mag; specifically revolutions [5853, 5905] and [5496, 5576], for sources with external_apparent_grvs >10

6.5.2.3 Radial-velocity renormalised goodness of fit

Another task of Post-processing was to estimate the radial-velocity renormalised goodness of fit, stored in the field rv_renormalised_gof in both the gaia_source and all_source_rvs tables. This value is intended to identify stars with variable radial velocity. For non-variable stars, its distribution is expected to be normal, centred on zero with a standard deviation of one, whereas large positive values (typically >4) indicate likely variability. It is computed only for bright stars with 5.5≤external_apparent_grvs≤12 and rv_template_teff <14 500  K. Its calculation involves several distinct stages.

Initially, the STAMTA pipeline in Bright mode (Non-Constancy Detection module) computes the Unit Weight Error (UWE) of the radial-velocity time series. This value is stored as rv_uwe in the all_source_rvs table. The UWE measures the scatter of the epoch radial velocities (Vj) about their median (V¯), relative to their uncertainties (ϵj):

𝚄𝚆𝙴=1n−1⁢∑j(Vj−V¯ϵj)2,

where n is the number of transits stored in rv_nb_transits, Vj and ϵj are stored in the rvs_epoch_parameters_single table in the fields radial_velocity and radial_velocity_error, respectively, and V¯ is stored in the all_source_rvs table in the field rv_median.

Next, offline Python code was used to produce a calibration UWE map, based on ∼6.7 million well-behaved stars selected with quality filters on transit number, radial-velocity scatter, absence of emission lines, and other parameters. The stars were grouped into bins of rv_template_teff and external_apparent_grvs. In effective temperature, 45 bins of 250 K were defined, spanning 2875–14125 K, and in magnitude, 13 bins of 0.5 mag were defined, spanning 5.5–12.0 mag. In each bin, the mode of the UWE distribution was derived, producing a 2D map of UWE modes (585 cells). To improve statistics, the four brightest bins (GRVS<7.5) were merged. Cells with insufficient data or poor estimates were flagged with NaN values (see Figure 6.27).

Finally, during Post-processing, this map was used to normalise the data. The Renormalised Unit Weight Error (RUWE) was calculated by dividing each star’s UWE (rv_uwe) by the appropriate mode from the map. The RUWE was then transformed into the final rv_renormalised_gof value:

rv_ renormalised_ gof= 4.5⁢(n−1)⁢(𝚁𝚄𝚆𝙴2/3+29⁢(n−1)−1).

As a validation, the distribution of rv_renormalised_gof was compared against ground-based catalogues of predominantly constant stars (Section 6.2.3.1) and against samples of known variable stars (SB1, SB2, Cepheids, RR Lyrae). A conservative threshold of rv_renormalised_gof>4 corresponds to a probability of variability of ≳99%. This validation also revealed some problematic regions where the estimation of the UWE mode is less reliable and can lead to overestimated rv_renormalised_gof values. These include cool stars (rv_template_teff ≲3625 K), faint hot stars (rv_template_teff ≳11 875  K with external_apparent_grvs > 11), and bright hot stars, partly due to the merged bins at external_apparent_grvs < 7.5 mag.

Refer to caption
Figure 6.27: The UWE map used to estimate rv_renormalised_gof is a function of rv_template_teff and external_apparent_grvs. The colour scale represents the UWE statistical mode. UWE > 1 is an indication of underestimated epoch radial velocity internal uncertainties and UWE < 1 of overestimated ones. Figure by David Katz.