3.4.15 Cross-match processing
Author(s): Javier Castañeda, Ferran Torra
The cross-match (XM) provides the link between Gaia detections and entries in the Gaia working catalogue. It consists of a single source link for each detection, and consequently a list of linked detections for each source. When a detection has more than one source candidate fulfilling the match criterion, in principle only one is linked, the principal match, unless the detection is identified as a result of sources blending.
A first, preliminary cross-match is done on a daily basis, in IDT, mainly to bootstrap downstream DPAC systems during the first months of the mission, and later predominantly to process the most recent data before it reaches cyclic pre-processing in IDU. By definition, such daily cross-match cannot be completely accurate, as some data will typically arrive with a delay of some hours or even days to IDT.
On the other hand, the final cross-match is executed by IDU over the complete set of accumulated data (fully described in (Torra et al. 2021)). This provides better consistency since having all of the data available allows a more efficient resolution of dense sky regions, multiple stars, high proper motion sources, and other complex cases. Additionally, in the cyclic processing, the cross-match is revised using the improvements on the working catalogue (see Section 3.2.4), of the calibrations, and of the removal of spurious detections (see Section 3.4.15.3).
Some of the cross-match algorithms and tasks are nearly identical in the daily and cyclic executions, but the most important ones are only executed in the final cross-match done by IDU.
For the cyclic executions of the cross-match, the data volume is small. However, the number of detections at the end of the mission will reach records. Ideally, the cross-match should handle all these detections in a single process, which is clearly not an efficient approach, especially when deploying the software in a computer cluster. The solution is to arrange the detections by spatial index, such as HEALPix (Górski et al. 2005), and then distribute and treat the arranged groups of detections separately. However, this solution presents some disadvantages:
-
•
Complicated treatment of detections close to the boundaries of the adopted spatial arrangement.
-
•
Complicated handling of detections of high proper motion stars which cannot be easily bounded to any fixed region.
-
•
Repeated accessing to time-based data, such as attitude and geometric calibration, from spatially distributed jobs.
These issues could, in principle, be solved but would introduce more complexity into the software. Therefore, another procedure that is better adapted to Gaia operations has been developed. This procedure splits the cross-match task into three different steps.
- Detection Processor
- Sky Partitioner
-
In the second step (described in Section 3.4.15.5), results from the previous step are grouped according to the source candidates provided for each individual detection. The objective is to determine isolated groups of detections, all located in a rather small and confined sky region which are related to each other according to the source candidates. Therefore, this step does not perform any scientific processing but provides an efficient spatial data arrangement by solving region boundary issues and high proper motion scenarios. Therefore, this stage acts as a bridge between the time-based and the final, spatial-based processing.
- Match Resolver
-
In this final step (described in Section 3.4.15.6), the cross-match is resolved and the final data products are produced. This step is ultimately a spatial-based processing where all detections from a given isolated sky region are treated together, thus taking into account all detections of the sources within that region from the different scans.
In the following subsections, we describe the main processing steps and algorithms involved in the cross-match, focusing on the cyclic (final) case.
3.4.15.1 Sky coordinates determination
The images detected on board, in the real-time analysis of the sky mapper data, are propagated to their expected transit positions in the first strip of astrometric CCDs, AF1, i.e., their transit time and AC column are extrapolated and expressed as a reference acquisition pixel. This pixel is the key to all further on-board operations and to the identification of the transit. Until Gaia DR3, the cross-match did not use any image analysis parameter other than the on-board detection, and was therefore based on the reference pixel of each detection, even if the actual image in AF1 may be slightly offset from it or contained more than one source. This decision was made because, in general, we do not have the same high-resolution SM and AF1 images on ground as the ones used on board due to the pixel binning and reduction to 1D windows applied to decrease the data volume. However for Gaia DR4, thanks to the enhancement in the image parameters determination module (DIPD) used to confirm the Gaia detection but also to detect all additional sources visible in an individual transit (see Section 3.4.13, this task also takes into account the derived location for each one of the sources to improve the solution and allow the identification of unresolved source pairs, i.e. unresolved or occasionally resolved sources in the on-board SM detection which are resolved in AF in a much wider range of scans due to the better angular resolution. This change has improved the completeness of the source catalogue in Gaia DR4.
The first step of the cross-match is the determination of the sky coordinates for all Gaia detections. First of all, reference sky coordinates for each input observation are computed using the reference acquisition pixel in AF1 (with a precision limited by the pixel resolution as well as by the precision of the on-board image parameter determination). Additionally to these reference sky coordinates, the relative coordinates for each source identified by the on-ground image parameter task are also computed for its later usage in the final resolution stage.
The conversion from the observed positions on the focal plane to celestial coordinates, e.g., right ascension and declination, involves several steps and reference systems, as shown in Figure 3.29.
The reference system for the source catalogue is the Barycentric Celestial Reference System (BCRS/ICRS), which is a quasi-inertial, relativistic reference system that is non-rotating with respect to distant extra-galactic objects. Gaia observations are more naturally expressed in the Centre-of-Mass Reference System (CoMRS), which is defined from the BCRS by special relativistic coordinate transformations. This system moves with the Gaia spacecraft and is defined to be kinematically non-rotating with respect to the BCRS/ICRS. The BCRS is used to define the positions of the sources and to model the light propagation from the sources to Gaia. Observable proper directions towards the sources as seen by Gaia are then defined in the CoMRS. The computation of observable directions requires several pieces of additional data such as the Gaia orbit in the Solar system, a Solar system ephemerides, etc. As a next step, we introduce the Scanning Reference System (SRS), which is co-moving and co-rotating with the body of the Gaia spacecraft, and is used to define the satellite attitude. Celestial coordinates in the SRS differ from those in the CoMRS only by a spatial rotation given by the attitude quaternions. The attitude used to derive the sky coordinates for the daily system is the IDT OGA1 whereas the cyclic cross-match used the IDU SDMOGA reconstruction (similar to OGA1 in method and quality) both described in Section 3.4.5.
We now introduce separate reference systems for each telescope, called the Field-of-View Reference Systems (FoVRSs) with their origins at the centre of mass of the spacecraft and with the primary axis pointing to the optical centre of each of the fields, while the third axis coincides with the one of the SRS. Spherical coordinates in this reference system, the already mentioned field angles (), are defined for convenience of the modelling of the observations and instruments. Celestial coordinates in each of the FoVRSs differ from those in the SRS only by a fixed nominal spatial rotation around the spacecraft rotation axis, namely by half the basic angle of (Section 1.1.3.3).
Finally, and through the optical projections of each instrument, we reach the Focal Plane Reference System (FPRS), which is the natural system for expressing the location of each CCD and each pixel. It is also convenient to extend the FPRS to express the relevant parameters of each detection, specifically the field of view, CCD, TDI gate, and pixel. This is the Window Reference System (WRS). In practical applications, the relation between the WRS and the FoVRS must be modelled. This is done through a geometric calibration, expressed as corrections to nominal field angles as detailed in Section 4.3.2.
The geometric calibration used in the cross-match in the daily pipeline is derived by the First-Look system in the ‘One-Day Astrometric Solution’ (ODAS; Section 3.4.5.3). For the cyclic cross-match runs up to Gaia DR3, the geometric calibration was the combination of ODAS solution for the more recent data segments and the ‘Astrometric Global Iterative Solution’ (AGIS; Section 4.4.2) from the previous cycle for the rest. For Gaia DR4, the cross-match fully switched to the attitude and geometric calibration solutions from IDU; Section 3.4.5.4 to completely break dependencies from the daily and previous cycle solutions. Only the cross-match of SIF CF detections (see Section 9.3.2) can use the attitude and geometric calibration from an AGIS run from the same cycle as this is already available when the SIF CF cross-match is run.
3.4.15.2 Scene determination
The scene is in charge of providing a prediction of the objects scanned by the two fields of view of Gaia according to the spacecraft attitude and orbit, the planetary ephemerides, and the source catalogue. It was originally introduced to track the illumination history of the CCD columns for the parametrization of the CTI mitigation. However, this information is also relevant for:
-
•
The astrophysical background estimation and the LSF/PSF profile calibration, to identify nearby sources that may be affecting a given observation. The scene can easily reveal if the transit is disturbed or polluted by a parasitic source.
-
•
The cross-match, to identify bright sources that will probably not be detected directly, but still leave many spurious detections, for example from diffraction spikes or internal reflections.
Therefore, the scene does not only include the sources actually scanned by both fields of view but it also identifies:
-
•
Sources without the corresponding Gaia observations. This can happen in case of, e.g.:
-
–
Very bright sources (brighter than magnitude) or transits of solar-system objects (SSOs) that are not detected in the Sky Mapper (SM) or not confirmed in the first CCD of the Astrometric Field (AF1).
-
–
Fast SSOs, detected in SM but not successfully confirmed in AF1.
-
–
High-density regions in which the on-board resources (windows) are insufficient in number to cover all detected objects.
-
–
Close neighbours on the sky for which the detection and acquisition of two separate observations is impossible (Section 1.1.3.5).
-
–
Data losses due to on-board storage overflow, data transfer issues, or processing errors.
-
–
-
•
Sources falling into the edges and between CCD rows.
-
•
Sources falling out of both fields of view but so bright that they may disturb or pollute nearby observations.
It must be noted that the scene is established not from the individual observations, but from:
-
•
the Gaia working catalogue sources,
-
•
a complementary very bright source list (with sources brighter than magnitude) compiled from other surveys and
-
•
planetary ephemerides.
The scene is therefore limited by the completeness and quality of those input tables.
3.4.15.3 Spurious detections identification
The Gaia on-board detection software was built to detect point-like images on the SM CCDs and to autonomously discriminate star images from cosmic rays, etc. For this, parametrised criteria of the image shape are used, which need to be calibrated and tuned. There is clearly a trade-off between a high detection probability for stars at the faint end and keeping the detections from bright-star diffraction spikes (and other disturbances) at a minimum. A study of the detection capability, in particular for non-saturated stars, double stars, unresolved external galaxies, and asteroids is provided by de Bruijne et al. (2015).
The main problem with spurious detections arises from the fact that they are numerous (15–20% of all detections), and that each of them may lead to the creation of a (spurious) new source during the cross-match. Therefore, a classification of the detections as either genuine or spurious is needed to only consider the former in the cross-match.
As described in Torra et al. (2021), the main categories of spurious detections found in the data so far are:
-
•
Spurious detections around and along the diffraction spikes of sources brighter than about . Detections are classified as spurious detections if they fall within a predefined set of regions and ranges of magnitude, centred on the bright source. These regions are determined from detection density maps as shown in Figure 3.30. For very bright objects ( mag), we even check the detections in the opposite field of view to catch spurious detections coming from unwanted light paths in the instrument.
-
•
Phantom detections; detections considered bright on board ( mag) but without the expected saturated samples in the centre of the SM window. They are caused by confusion of several bright sources by the on-board detection.
-
•
Spurious detections due to cosmic rays; rather bright detections in the SM but with very low signal in the remaining AF windows.
-
•
Spurious detections around transits of the major planets (see Figure 3.32); as for the diffraction spikes, we use predefined regions and magnitude limits to identify the spurious detections.
-
•
Detections with odd flux signal profiles in the acquired windows, typically from diffraction spikes. This module analyses the window samples looking for meaningful point-like signals within the window core region.
-
•
Detections from extended and diffuse objects. Figure 3.33 shows that Gaia is actually detecting not only stars but also filamentary structures of high surface brightness. These detections are not strictly spurious, but require a special treatment. Their CCD images may differ too much from the expected PSF or LSF profile, in which case they may be classified as spurious detections.
-
•
Detections during periods with very noisy attitude solutions and spacecraft attitude issues.
Identifying spurious detections around fainter sources (down to 16 mag) is more difficult, since there are often only very few or none. In these cases, a multi-epoch treatment is required to know if a given detection is genuine or spurious, i.e., checking if more transits are in agreement and resolve to the same source entry. For Gaia DR4, with much more information available for each region of the sky, a first attempt has been implemented that provides a classification of the sources as described in Section 3.4.16.
The spurious detections categories for which no countermeasures are yet in place include – amongst others – the spurious detections that happen randomly on the sky due to CCD defects and unwanted light paths. In general, these detections have poor astrometric and photometric parameters and are filtered out in the downstream processes.
The fraction of spurious detections in Gaia DR4 is very similar to Gaia EDR3 but as anticipated in (Torra et al. 2021) a non-negligible fraction of valid detections of close objects when more than one peak was visible and the window was not well centred on the brighter peak remained rejected in Gaia EDR3. This limitation implied that some of these close sources may have very few matched detections only. For this reason, a major update was applied for Gaia DR4 to include the prompt identification of these detections. Thanks to the new feature in Gaia DR4 to detect such additional sources in the window and the usage of higher resolution locations from the DIPD results to account for the window decentering (see Section 3.4.13), these detections are no longer rejected improving the completeness of the resulting source catalogue.
3.4.15.4 Detection processor
After the computation of the sky coordinates of all input observations (described in Section 3.4.15.1) and the classification of spurious detections (see Section 3.4.15.3), the subsequent processing step is in charge of providing an initial list of source candidates for each individual detection.
This step is executed in multiple jobs split by time interval blocks. All Gaia observations enter this step, with the exception of Virtual Objects, and data from dedicated calibration campaigns. Also, all the observations positively classified as spurious detections are filtered out. In each job, the detection sky coordinates are compared with a list of candidate sources extracted from the Gaia working catalogue taking into account the expected sky region seen by Gaia in the time interval of each job. These sources are propagated with respect to parallax, proper motion, orbital motion, etc. to the relevant epoch of the target detections.
The candidate sources are selected based on a pure angular distance criterion. The decision of only using distance was taken because the position of a source changes slowly and predictably, whereas other parameters such as the magnitude may change in an unpredictable way. Starting with Gaia DR3, when the accuracy levels and errors in the working Gaia catalogue became more homogeneous, the match criterion was improved to take advantage of the better accuracy of the detection in the along-scan direction. Basically, the task was updated to use an ellipse with the major axis oriented across scan which benefits and reduces the complexity of the resolution of the most complex cases.
Also, as described in Torra et al. (2021), a match candidate radius of 5was selected in Gaia DR3, balancing the wish to avoid the creation of too large groups (see Section 3.4.15.5) on the one hand, and the objective to find some unknown high proper motion sources on the other hand. This value was chosen taking into account that Gaia completes a full scan of the sky in 6 months and that the fastest-moving star in Earth’s skies, Barnard’s Star, annually travels 103. Note that, if a source is moving faster or the time gaps between consecutive scans are too large, some of its observations could end up in separated groups of detections. However, if several scans are grouped together, we should be able to determine a sufficiently good proper motion from the detections in one of the groups enforcing the regrouping of all its detections in the next cycle when the proper motion is available in the catalogue and applied when computing the candidate sources.
No specific updates were deemed necessary for Gaia DR4 in this processing step, but during validation, cases of duplicate sources were detected due to a lack of proper identification of candidate sources in observations with more than one source or with the detection very off-centre in the window (see Section 3.5.5.9). For the next release, a major update will be carried out to fix this issue and properly account for all cases.
A special case is the treatment of solar system objects observations. The processing of these objects are the responsibility of CU4 (Section 1.2.2.3) and for this reason, no special considerations have been implemented in the cross-match. These observations will have Gaia Catalogue entries and those entries will remain, so the corresponding detections will be matched again and again to their respective sources without any major impact on the other objects.
An additional processing may be required when detections without source candidates are left after the observation-to-source matching process. In principle, this situation should be rare but, unmatched detections may arise because of updates in the detection classification, updates in the source catalogue, or simply the usage of a more strict match criterion in IDU. Thus, this additional process is basically in charge of processing the unmatched detections and creating temporary sources as needed just to remove all the unmatched detections in a second run of the source-matching process. The new sources created by these tasks will ultimately be resolved (by confirmation or deletion) in the last cross-match step.
Summarising, the result of this first step is a set of MatchCandidates for the whole accumulated mission data. Each MatchCandidate corresponds to a single on board detection and contains a list of source candidates. Together with the MatchCandidates, an auxiliary table is produced to track the number of links created to each source, the SourceLinksCount table. Results are stored in a spatial-based structure using HEALPix (Górski et al. 2005), for convenience of the subsequent processing steps.
3.4.15.5 Sky partitioner
The sky partitioner task is in charge of grouping the results of the observation-to-source matching (Section 3.4.15.4) according to the source candidates provided for each individual detection (Torra et al. 2021). The purpose of this process is to create self-contained groups of MatchCandidates. The process starts loading all MatchCandidates for a given sky region. From the loaded entries, the unique list of matched sources is identified and the corresponding SourceLinksCount information is loaded. Once loaded, a recursive process is followed to find the isolated and self-contained groups of detections and sources. The final result of this process is a set of MatchCandidateGroups (as shown in Figure 3.34) where all the input observations are included. In summary, within a group, all observations are related to each other by links to source candidates. Consequently, sources present in a given group are not present in any other group.
As mentioned above in Section 3.4.15.4, the match radius used is large enough to keep detections of high proper motion stars in the same group of detections. However, this also increments the complexity of the groups and, occasionally, the groups produced in crowded areas could be too large and complex for the final resolution described below in Section 3.4.15.6. This complexity naturally increases when more data segments are added.
As explained in Torra et al. (2021), starting in Gaia EDR3 a source-candidates-crop algorithm was implemented to limit the complexity of these groups. This new algorithm reduces the size of the largest groups by discarding some of the links between match candidates and source candidates, and recomputes the groups again. The links discarded are the optimum to reduce the size of the group, based on the detection-to-source distances and the total number of links to the same source candidate. By discarding these links, the original group is split into subgroups which can be processed later on.
After this process, each MatchCandidateGroup can be processed independently from the others as the observations and sources from two different groups are fully independent.
3.4.15.6 Cross-match resolution
The final step of the cross-match is the most complex, namely resolving the final matches and consolidating the new sources. Three main cases need to be solved:
-
•
Duplicate matches: when two (or more) detections close in time are matched to the same source. This will typically be either newly resolved binaries or spurious double detections. In this case, two (or more) new sources are created and the source in the working catalogue is superseded by split.
-
•
Duplicate sources: when a pair of sources from the catalogue has never been observed simultaneously, thus never identifying two detections within the same time frame, but has the same matches. This can be caused by double entries in the working catalogue. In this case, a new source is created and the sources in the working catalogue are superseded by merge.
-
•
Unmatched observations: observations without any valid source candidate. In this case, a new source is created from scratch.
For the first cyclic processing and Gaia DR1, the resolution algorithm has been based on a nearest-neighbour solution in which the conflict between two given observations was resolved independently from the other observations included in the group. This was a simple and quick conflict resolution algorithm. However, this approach did not minimize the number of new sources created when more than two observations close in time had the same source as primary match.
The cross-match resolution algorithm in Gaia DR2 was based on a much more sophisticated algorithm. In particular, it uses tailored clustering and resolution algorithms in which all the relations between the observations contained in each group are taken into account to generate the best possible resolution.
For Gaia EDR3 the model of cluster analysis was updated to improve the results for high proper motion sources and variables stars, using a hierarchical clustering algorithm with a linear source model (Torra et al. 2021). Moreover, it includes a post-processing algorithm to reduce the constraints of the clustering algorithm and the small number of sources with faulty significant negative and large parallax values listed in Gaia DR2 (see Gaia Collaboration et al. 2018b; Lindegren et al. 2018, appendix C). Figure 3.35 shows an example of a high proper motion source that benefits from the updated clustering model.
For Gaia DR4, a major updated has been implemented for the treatment of close source pairs so cross-match can go beyond the single-source model, and the Gaia on-board precision detecting additional sources besides the main one. Figure 3.36 shows an example of a bright close source pair resolved on-board. On the other hand, Figure 3.37 shows an example of a faint close source pair resolved on-board where the AF windows of the ‘loser’ detection are truncated. In previous releases, the fainter detections were often classified as spurious detections which implies that these additional close sources were not included in those releases.
The new cross-match developments for Gaia DR4 introduce novel transforms based on the mathematical properties of the input data and the duality principle applicable to the cross-match data space, and resolve the partition and clustering of such transformed inputs using the Random Sample Consensus (RANSAC) method (Fischler and Bolles 1981). RANSAC method estimates parameters of a trend within a point cloud (the source parameters in this case) containing significant percentage of outliers. The full new algorithm implemented for the identification and resolution of close source pairs in Gaia DR4 is described in Bernet et al. (2026).
Finally, after the clustering solution, remaining spurious detection candidates are classified with a global spatial treatment using the cluster information in order to prevent the creation of new sources from spurious detections (Torra et al. 2021).