4.4.3 Secondary-source processing
Author(s): Jose Hernandez, Lennart Lindegren, Ulrich Bastian
The secondary-sources solution consists of one execution of the source update block, using the calibration, attitude and global parameters from the primary solution. Like in earlier data releases, in the secondary solution the astrometric parameters were computed for all sources, including the primary sources. However in the Gaia DR4 secondary solution a number of things were improved compared to Gaia DR3:
-
•
As already described in Section 4.3.5, a six-parameter update with a prior for the colour was performed on all sources. Only if the quality of that solution was not acceptable, a five-parameter solution with a Galactic prior was used, and then for the corresponding sources only the mean position was published (see Section 4.4.3.1). Therefore, and in contrast to Gaia DR3, in Gaia DR4 there is only one type of AGIS secondary solution giving all five astrometric source parameters (it is flagged as having astrometric_params=95).
-
•
The way the observations were weighted in the secondary update was also different in Gaia DR4. As described in Section 3.6 of Hernandez et al. (2026), the Heaviside step function was used. The source update was done in two steps: in the first step the source excess noise and the weights using the Huber downweight (see Lindegren et al. (2012)) were estimated, but then the final source update was done using only 1 or 0 as the downweight factor, so that the strongly downweighted outliers were effectively not used in the solution. This makes the source update statistics more consistent and easier to interpret. In particular, the degree of freedom becomes well defined. A slight drawback of this improved weighting scheme is detailed in Section 4.6 of Hernandez et al. (2026).
-
•
As described in the section on the primary solution, the across-scan coordinate was calculated using the latest source astrometry, attitude, calibration and global parameters. As is used to evaluate some of the along-scan calibrations, its value will be different after the source update. In order to deal with this interdependency between the source parameters and the calculated a new loop was introduced. In practice it was seen that two iterations of that loop were enough to reach convergence. This loop also ensured that the Epoch Astrometry to be generated from the secondary solution is fully consistent with the AGIS solution.
-
•
Another important difference in Gaia DR4 has been the treatment of blended observations. When two sources happen two be very close on the sky, the IDU-DIPD did treat them either separately (non-blended) or together (blended), depending on the scan direction. In reality this meant that for a given source there would be a mixture of FoV transits, where some would be blended and some non-blended. The detailed strategy to treat those sources is described in Section 4.3 of Hernandez et al. (2026).
A new flag was introduced, distinguishing whether only the non-blended observations were used and the blended ones where discarded (blended flag=0), or whether only the blended observations were used and the non-blended ones where discarded (blended flag=1), or whether the solution mixed blended and non-blended observations (blended flag=2). It is expected that the sources with blended flag=2 will mostly have poor quality. There are 14.1 million of these in Gaia DR4.
It is worth mentioning that the blended or non-blended treatment of each individual FoV transit is recorded in the epoch_astrometry table (in the blended field of that table). In addition, the number of blended transits matched to each source is also available in the all_source_astrometry and gaia_source tables (in the blended_transits field of those tables).
A new field of the all_source_astrometry table, called quality_flag, indicates whether the resulting astrometric parameters of a given source are considered of high or low confidence. It is set as a bitwise code, mapping the different reasons for which the source astrometry could be considered of a low level of confidence. A value of 0 means that the source astrometry is considered of high confidence. The details of the definition and the meaning of each bit are described in the online table description and in Section 4.3 of Hernandez et al. (2026), and the numbers of sources affected by the various reasons are given in Table 8 within that section.
The secondary solution processed nearly 115 billion FoV transits, generating converged solutions for 2.72 billion sources, of which 1855 million have six-parameter, and 865 million have two-parameter solutions. All the converged secondary AGIS Gaia DR4 sources are available in the all_source_astrometry table without any filtering. The selection astro_pipeline=3 will retrieve the 2.72 billion sources with astrometry from AGIS Gaia DR4. The remaining sources in the all_source_astrometry table were included in order not to lose their observations despite the fact that AGIS was unable to do a solution, specifically in order to make a ‘Datalink’ reference to their epoch astrometry and epoch image data possible (see Section 23.1.2).
Only sources with high confidence, i.e. with quality_flag=0 will appear in the gaia_source table with their AGIS solution. Note, however, that a non-zero value of this flag does not necessarily imply that the source does not appear at all in gaia_source: A low-confidence AGIS solution in all_source_astrometry may get superseded by a higher-quality one from some other DPAC process.
4.4.3.1 Acceptance criteria and fallback (2p) solutions
If the astrometric observational history of a Gaia source is not sufficient for a good 6-parameter solution, only the position is published, but no parallax and proper motion. It should be noted that the catalogue positions for these 2p sources do not have the same meaning and character as those for the 6p sources. In particular, they cannot in a simple way be connected to non-Gaia position measurements at other epochs, for e.g. the derivation of proper motions (for 6p solutions this can be done directly and consistently, by using the full covariance matrix given). Instead, the Gaia data of stars with 2p solutions can only be combined with external astrometry by using the Gaia DR4 epoch astrometry (e.g. by applying the Python tool ‘Gaiasupdate’ provided along with Gaia DR4), see Section 4.5.1.5. This complication has two reasons: Firstly, the covariances are not published. Secondly – and more importantly – the Galactic prior (see below) mixes with the real observational Gaia data in a way that cannot be recovered or removed a posteriori.
The decision whether a converged secondary solution is accepted as a six-parameter solution depends on two quantities: and . Both are calculated in the course of the source update process. (visibility_periods_used) is the number of distinct observation epochs (‘visibility periods’) used in the solution, where a visibility period is a group of observations separated from other groups by a gap of at least four days, and (astrometric_sigma5d_max) is the five-dimensional equivalent to . The latter is calculated as described in Section 4.3 of Lindegren et al. (2021), but with yr for the time coverage of the data used in the Gaia DR4 astrometric solution. Note that the calculation of ignores the uncertainty of the pseudocolour.
For every source, a solution with six parameters was first tried. This was accepted if it converged and satisfied the criterion
| (4.127) |
The acceptance criterion has been relaxed compared to Gaia DR3 (see Lindegren (2020)): the minimum was set to 8 instead of 9, and the threshold on was set to 50 mas for all sources, independent of magnitude (cf. Equ. 21 in Lindegren (2020)). This relaxation of the thresholds was done in order to retain some potentially good sources, taking advantage of the almost twice as long time coverage. But it also means that the number of spurious solutions with very large (positive or negative) parallaxes or proper motions has increased. To help the user identify potentially spurious solutions, a new flag unreliable_astrometry was introduced in Gaia DR4, as described in Section 4.4.3.2 below.
Like in Gaia DR3, if the six-parameter solution did not converge, or failed to satisfy Equation 4.127, prior information on the parallax and proper motion was added, based on the Galactic model described in Michalik et al. (2015) and Section 4.3 of Lindegren et al. (2018). In such cases only the position parameters (, ) at epoch J2017.5 and their covariances were retained out of the full five-parameter solution. As explained in Michalik et al. (2015), the purpose of the Galactic prior is to provide more realistic uncertainties for the positions of sources with a very small number of observations, by making some reasonable assumption about the sizes of their parallaxes and proper motions. The resulting published position is called a two-parameter solution (astrometric_params=3), although in reality all five parameters are estimated.
It is worth mentioning that in the gaia_source table the same filters that were used in Gaia DR3 were applied to the sources produced by AGIS, and only those two-parameter solutions were accepted for publication that satisfied the criterion
| (4.128) |
where is the number of astrometric field-of-view transits assigned to the source.
With regard to the treatment of duplicate sources, the radius to consider a source as solitary (i.e. not being part of a source duplication) was reduced from 0.18 arcsec (Gaia DR3) to 0.12 arcsec (Gaia DR4). If multiple sources are found at smaller separations, only one source is kept, namely, in order of precedence: (i) a source previously identified as relevant for the extragalactic reference frame; (ii) the six-parameter solution with the smallest ; (iii) the two-parameter solution with the smallest . In such cases the retained source has the flag duplicated_source set in all relevant tables of the public Gaia archive.
As already mentioned, only the sources satisfying the quality filter described above have a chance to enter the gaia_source table (in addition there is a photometric filter requiring that the source has got a calibrated magnitude from the photometric processing system in Cycle 4). Additionally, some of the high-confidence AGIS solutions will be replaced by those from a different astrometric processing system of the Gaia consortium. Specifically, these systems are the non-single stars processing chain, the source environment analysis process, the special bright-star treatment and the astrometric treatment by the crowded-field system. These special processes take precedence over AGIS whenever their solution is considered better. The astrometry_origin field in the gaia_source table reflects this, and the original AGIS solution is always available in the all_source_astrometry table, using the selection astro_pipeline=3.
4.4.3.2 Potentially unreliable solutions
Spurious solutions may happen when the AL positions combined in the astrometric solution of a given (nominal) source were in fact produced by two or more actual (physical) sources. It is therefore essentially a problem created by inconsistent cross-matching between detections and sources. With the aim to create an inventory of point sources as complete as possible down to the resolution limit of Gaia (0.15 arcsec), the detection and cross-matching algorithms in Cycle 4 are considerably more sophisticated than in previous cycles, see Section 3.4.15. Unfortunately, this has also greatly increased the risk of getting a spurious solution, where the erroneous cross-matches accidentally fit the standard source model of Section 4.1.5.
To mitigate this problem, an additional diagnostic flag was introduced and added to the two main astrometric catalogue tables, all_source_astrometry, and gaia_source. For a given source, the new flag unreliable_astrometry is defined by a complex function of the observation history, magnitude, ecliptic latitude, parallax, duplication and blending status, and the covariances of the 6-parameter solution. Full details of the definition, and an illustration of the underlying problem, are given in Section 4.5 of Hernandez et al. (2026).
In the all_source_astrometry table accepted two-parameter solutions have the flag unreliable_astrometry set to false (i.e. not unreliable), while the flag is left undefined (NULL) for solutions not originating in AGIS (astro_pipeline3) or having quality_flag.
It is important to note that many perfectly good solutions will have this flag set. The flag should be regarded as a warning to the user, in the absence of other information that might confirm or refute the validity of the solution. An example is the quasar sample used by the AGIS frame rotator. Of the 1.88 million sources in the frame rotator list, as many as 8% are classified as ‘unreliable’ by this criterion. But because this quasar sample has been extensively validated using Gaia astrometry (parallaxes and proper motions) as well as cross-correlation with external catalogues, it is safe to ignore the flag for these sources. Similar considerations could for example be made based on photometric information. However, in the absence of such supporting information, the flag could advantageously replace a conventional cut based on ruwe or astrometric_gof_al. Overall, among the sources in all_source_astrometry with astro_pipeline=3, quality_flag=0, astrometric_params=95, and having a Gaia DR4 magnitude, about 24% are classified as unreliable (unreliable_astrometry=true). The overwhelming majority of them are faint; their median magnitude is 20.7. Of the sources with (), only 0.6% (1.7%) are classified as unreliable.