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:
In the table all_source_rvs: radial_velocity_single_is_valid and rv_invalid_reason; vbroad_is_valid and vbroad_invalid_reason; grvs_mag_is_valid and grvs_mag_invalid_reason.
In the table rvs_epoch_parameters_single: rv_validity_flag and rv_invalid_reason; vbroad_validity_flag and vbroad_invalid_reason; grvs_validity_flag and grvs_invalid_reason.
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).
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 ), Table 6.18 (faint stars, external_apparent_grvs ), 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.
| 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_grvs12 mag and rv_template_teff8500 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 |
| bit9_invalid_ccf | 26 648 |
UMAP dimensionality reduction technique (see Katz (2026)) |
| bit12_out_of_range | 0 |
or |
| 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 K rv_template_teff 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 |
| 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 |
| 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 |
| bit9_invalid_ccf | 0 |
This check is not performed in Faint mode |
| bit12_out_of_range | 0 |
or |
| 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 | |
| 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 |
| 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 and grvs_mag_nb_transits or nb_transits_total ; or grvs_mag and grvs_mag_nb_transits or nb_transits_total |
| bit5_excessive_uncertainty | 6 457 |
grvs_mag_error mag |
| bit6_out_of_range | 75 884 |
grvs_flux MinFlux; |
| 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 or nb_transits_total |
| bit5_excessive_uncertainty | 40 746 |
grvs_mag_error mag |
| bit6_out_of_range | 109 659 294 |
grvs_flux MinFlux; |
| 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 |
| bit4_cool_star | 222 647 |
rv_template_teff K (i.e. K on the template grid) |
| bit6_too_few_transits | 34 431 626 |
vbroad_nb_transits |
| 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, and no epoch vbroad values for stars fainter than external_apparent_grvs. 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 ) 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 ) 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 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.
| rv_invalid_reason (epoch) | Occurrences | Criterion |
|---|---|---|
| bit1_hot_star | 23 934 986 |
external_apparent_grvs mag and rv_template_teff K; or external_apparent_grvs mag and rv_template_teff K. |
| bit3_emission_line | 337 417 |
emission_lines=true, or fraction_emission_lines0.4, or detected as emission-line star during validation. Not used for multi-transit RVs. |
| bit6_large_uncertainty | 27 379 |
radial_velocity_error . |
| 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 , or rv_outlier_condition. |
| 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 . |
| 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 , for stars with external_apparent_grvs11 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. |
| 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 |
| bit2_outside_range | 91 357 678 |
Below lower limit of 4.5 . 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 K (i.e. 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. |
| 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 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 |
| 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 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 |
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 ) indicate likely variability. It is computed only for bright stars with 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 () about their median (), relative to their uncertainties ():
where is the number of transits stored in rv_nb_transits, and are stored in the rvs_epoch_parameters_single table in the fields radial_velocity and radial_velocity_error, respectively, and 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 () 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:
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 corresponds to a probability of variability of . 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 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.