3.4.5 On-ground attitude reconstruction and geometric calibration
Author(s): David Hobbs, Michael Biermann, Jordi Portell, Javier Castañeda
The processing of attitude telemetry from the Gaia spacecraft is unique due to the high accuracy requirements of the mission. Normally, for science missions, the on-board measured attitude from the star trackers, in the form of attitude quaternions, would be sufficient for the scientific data reduction but perhaps requiring some degree of smoothing and improvement before use. Such a raw attitude would be accurate to the order of a few arcseconds () but for the Gaia mission, an attitude accurate to a few tens of as is required. This is achieved through a series of processing modules and data products as illustrated in Figure 3.26.
The raw attitude is received in telemetry and it is passed to IDT, which first performs the Initial On-Ground Attitude (IOGA) reconstruction, which fits a set of B-spline coefficients to the available telemetry, resulting is an array of B-spline coefficients and the associated knot times (see Section 4.3.4). The output from IOGA can then be used as the input to the first On-Ground Attitude (OGA1) reconstruction, which is a Kalman filter designed to smooth the attitude and to improve its accuracy to the order of 50 mas using a preliminary cross-match information against the ASC (see Section 3.2.3). At this point, more Gaia specific processing begins. For Gaia, a First Look (FL) process is employed to do a direct astrometric solution on a single days worth of data, known as the One Day Astrometric Solution (ODAS). This is basically a quality check on the Gaia data but also results in an order of magnitude improvement in the accuracy of the attitude together with an update of the geometric calibration if necessary. After ODAS, the attitude is known as OGA2 and is available in the form of B-splines and quaternions. OGA2 was the intended nominal input to other daily and cyclic downstream systems including AGIS, although it would also be possible to use OGA1 from IDT as input. However, in practice, mainly due to data gaps and discontinuities in the daily processing, it has been found that a simple spline fit to the commanded attitude (see Section 1.3.2) is sufficient for initializing the cyclic systems as AGIS or IDU.
AGIS is the final step in the attitude and geometric calibration improvement, where all the available observations for primary stars are used together with the latest available cross-match, attitude and calibration parameters to iteratively arrive at the final attitude solution. This AGIS final attitude is referred to as the OGA3 (Section 4.3.4.3).
Starting with Gaia DR3, IDU also performs its own attitude refinement, known as SDMOGA. This new attitude fit has better time coverage than the IDT and FL daily products and assure a more consistent and uniform accuracy and precision of the attitude throughout the complete data reduction cycle time extent.
Although IDU could have combined OGA3 with OGA2 or OGA1 for the most recent observations, it was decided to perform a new general refinement to prevent potential gaps, deficiencies and problems in the daily systems or in the previous cycle solution from propagating to the new cyclic solutions.
SDMOGA was introduced for all IDU tasks running before the first AGIS solution is available in a given cycle, which basically included the scene, detection classifier and cross-match tasks (SDM tasks). Starting with Gaia DR4, IDU also includes a new module for determining the instrument geometric calibration (known as SDMAC) along with the attitude, to further reduce dependence on daily and previous cyclic solutions. Only the basic angle calibration still comes from AGIS (see Section 4.2.4).
Furthermore, in Gaia DR4, an initial run of the calibration of the PSF/LSF model (see Section 3.3.5) and the image parameter determination (see Section 3.3.7 were carried out using the SDMOGA and SDMAC solutions (see Section 2 in Hernandez et al. (2026)). These runs reinforce the objective of decoupling the results of previous cycles, but also allow the use of the new set of detections from the additional sources visible in a single transit, as described in Section 3.3.7.1 and Section 3.4.15.
3.4.5.1 Daily Initial On-Ground Attitude (IOGA)
In IDT, the raw attitude values from the AOCS are processed to obtain a mathematical representation of the attitude as a set of spline coefficients. The details of the spline fitting are outlined in Appendix A of Lindegren et al. (2012). The result of this fitting process is the Initial OGA (IOGA). The time intervals processed can be defined by natural boundaries, like interruptions in the observations, e.g., due to micro-meteorites. The boundaries can also be defined by practical circumstances, like the end of a data transmission contact, or the need to start processing.
Using IOGA, a list of sources is extracted from the Attitude Star Catalogue (ASC; Section 3.2.3) in the bands covered by Gaia during the time interval being processed. In the early phases of the mission (for Gaia DR1), the ASC was a subset of the IGSL, but in Gaia DR2, the ASC has been replaced by stars from the MDB catalogue. This allows the next process, OGA1, to run efficiently, knowing in advance if a given observation is likely to belong to an ASC star.
3.4.5.2 Daily first On-Ground Attitude (OGA1)
The main objective of OGA1 is to reconstruct the First On-Ground Attitude (OGA1) for the Gaia mission with high accuracy for further processing. The accuracy requirements for the OGA1 determination (along and across scan) are 50 mas. OGA1 relies on an Extended Kalman filter (EKF) to estimate the orientation, , and angular velocity, , of the spacecraft with respect to the Satellite Reference System (SRS), defining the state vector
| (3.14) |
3.4.5.2.1 System model
The system model is fully described by two sets of differential equations, the first one describing the satellite’s attitude following the quaternion representation
| (3.15) |
where
| (3.16) |
and the second one using the Euler’s equations:
| (3.17) |
where is the moment of inertia of the satellite and is the total of disturbance and control torques acting on the spacecraft. The satellite is assumed to be represented as a freely rotating rigid body, which implies to set the external torques to zero in Equation 3.17. If this simplification does not work well when reconstructing the Gaia attitude then the proper , including external torques, that is required to follow the NSL should be taken into account.
3.4.5.2.2 Process and measurement model
The process model predicts the evolution of the state vector and describes the influence of a random variable , the process noise. For non-linear systems, the process dynamics is described as follows:
| (3.18) |
where and are functions defining the system properties. For OGA1, is given by Equation 3.15 and Equation 3.17, and is a discrete Gaussian white noise process with variance matrix :
| (3.19) |
The measurement model relates the measurement value to the value of the state vector and describes also the influence of a random variable , the measurement noise of the measured value. The generalized form of the model equation is:
| (3.20) |
where is the function defining the measurement principle, and is a discrete Gaussian white noise process with variance matrix (with standard deviations of 0.1 mas and 0.5 mas along and across scan respectively):
| (3.21) |
In order to estimate the state, the equations expressing the two models must be linearized in order to use the KF model equations, around the current estimation () for propagation periods and update events.
This procedure yields the following two matrices to be the Jacobian of the and functions with respect to the state:
| (3.22) |
and
| (3.23) |
3.4.5.2.3 KF propagation equations
The KF propagation equations consist of two parts: the state system model and the state covariance equations. The first one,
| (3.24) |
can be propagated using a numerical integrator, such as the fourth-order Runge-Kutta method. The matrix is called the transition matrix, the system noise covariance matrix, and the system noise covariance coupling matrix.
The transition matrix can be expressed as:
| (3.25) |
where
| (3.26) |
and
| (3.27) |
Here, the matrix notation represents the skew symmetric matrix of the generic vector . For the state covariance propagation, the Riccati formulation is used:
| (3.28) |
Its prediction can be carried out through the application of the fundamental matrix (i.e., first order approximation using the Taylor series) about , which becomes:
| (3.29) |
where represents the propagation step. The process noise matrix used for the Riccati propagation Equation 3.28 is considered to be
| (3.30) |
since OGA1 depends more on the measurements (even if not so accurate at this stage) than on the system dynamic model.
3.4.5.2.4 KF update equations
The KF update equations correct the state and the covariance estimates with the measurements coming from the satellite. In fact, the measurement vector consists of the so-called measured along-scan angle , and the measured across-scan angle , and they are the values as read from the AF1 CCDs.
On the other hand, the calculated field angles () are the field angles calculated from an ASC for each time of observation. The set of the update equations are listed below:
| (3.31) | |||
| (3.32) | |||
| (3.33) |
where the measurement sensitivity matrix is given by:
| (3.34) |
and the measurement noise matrix is chosen such that:
| (3.35) |
The standard deviation for the field angle errors along and across scan are computed and provided by IDT.
3.4.5.2.5 The processing scheme
The OGA1 process can be divided in three main parts: input, processing, and output.
The inputs are:
-
•
Oga1Observations (OGA1 needs these in time sequence from IDT) composed essentially by:
-
–
transit identifiers (TransitId)
-
–
observation times (TObs)
-
–
observed field angles (FAs) including geometry calibration
-
–
-
•
A raw attitude (IOGA), with about 7 noise (in B-splines).
-
•
A cross-match table with SourceId–TransitId pairs plus a proper direction to the star at the instance of observation.
The OGA1 determination is a Kalman Filter (KF) process, i.e., essentially an optimization loop over the individual observations, concluded by a spline-fitting of the resulting quaternions. The main processing steps are:
-
•
Sort the list of elementaries by time. Then sort the list of cross-match sources by the transit identifier with the ones from the sorted list of elementary. The unmatched elementary transits are simply discarded.
-
•
Initialize the KF: interpolate the B-spline (IOGA attitude format) in order to get the first quaternion and angular velocity to start the filter. Optionally, the external torque can be reconstructed in order to have a better accuracy for the dynamical system model.
-
•
Forward KF: for a generic time , predicting the attitude quaternion from the state vector at the time of the preceding observation.
-
•
Backward KF: for a generic time , predicting the attitude quaternion from the state vector at the time of the preceding observation. Backward propagation is needed to reduce errors near the start of the time interval.
-
•
Compute the field coordinates from the pixel coordinates for SM and AF measurements, using a Gaia calibration file. OGA1 uses the AF2 values as observed field angles.
-
•
Compute field coordinates of known stars (from the ASC).
-
•
Correct the state using the difference between the observed and the calculated measurements in the along-scan () and across-scan () directions.
-
•
Generate a B-spline representation for the whole time interval at the end of the loop over the measurements.
-
•
Remove any attitude spike that may appear, for example due to a wrong cross-match record.
The outputs are the improved attitude (for each observation time ) in two formats:
-
•
Quaternions in the form of arrays of doubles.
-
•
A B-spline representation from the OGA1 quaternions.
The OGA1 process, being a Kalman filter, needs its measurements in strict time sequence. In order to keep the OGA1 process simple, the baseline is to separately use the CCD transits. OGA1 relies on two-dimensional (2D) astrometric measurements from Gaia. That is, CCD transits of stars used by OGA1 must have produced 2D windows. OGA1 furthermore requires at least about one such 2D measurement per second and per FoV, in order to obtain the required precision.
3.4.5.3 Daily second On-Ground Attitude (OGA2) and ODAS source positions
The main objective of the ODAS (see Section 3.5.2.2) is to produce a daily, high-precision astrometric solution that is analysed by First Look Scientists in order to judge Gaia’s instrument health and scientific data quality (see also Section 3.5.2.2). The resulting attitude reconstruction, OGA2, together with source position updates computed in the framework of the First Look system, is also used as input parameter by the Daily spectroscopic wavelength calibration. For the first two data segments (Table 1.9), OGA2 was accurate to the 50 mas level because it was (like OGA1) tied to the reference system of the ground-based ASC. After switching to the Gaia DR2 based reference system, the OGA2 for the third data segment is accurate to the 5-mas level. For all data segments the OGA2 is, however, precise at the sub-mas level, i.e., internally consistent, except for a global rotation with respect to the ICRF.
The computation of OGA2 is not a separate task but one of the outputs of the ODAS (One-Day Astrometric Solution) software of the First Look System (see Section 3.5.2.2). This process can be divided into three main parts: input, processing, and output:
-
1.
The OGA2 inputs are outputs of the IDT system, namely:
-
•
AstroElementaries with transit IDs and observation times,
-
•
OGA1 quaternions ,
-
•
a source catalogue with source IDs, and
-
•
a cross-match table with pairs of source IDs and transit IDs.
-
•
-
2.
The processing steps: the OGA2 attitude is determined in one go together with daily geometric instrument calibration parameter updates and updated source positions in the framework of the First Look ODAS system (which is a weighted least-square method).
-
3.
The OGA2 output is a B-spline representation of the improved attitude (as a function of observation time ).
Along with OGA2 and the daily geometric calibration updates, First Look produces on a daily basis improved sources positions which also are used as input parameters by the Daily photometric and spectroscopic wavelength calibrations for the more recent data received from the spacecraft. The accuracy and precision levels of the source positions are the same as those of OGA2.
3.4.5.4 Cyclic first On-Ground Attitude (SDMOGA) and geometric calibration (SDMAC)
Up to Gaia DR2, cyclic processing was initiated using the on ground attitude and geometric calibration from the Daily pipelines (OGA1 from IDT and OGA2 and AC from FL) which were were subsequently refined by AGIS. This was already identified as problematic in Gaia DR1 and confirmed in Gaia DR2 as the gaps, deficiencies and problems in the daily products persisted in the final products throughout the cycles. Therefore, a new attitude refinement (SDMOGA) was implemented in Gaia DR3 within IDU to be used to bootstrap the cyclic processing. The SDMOGA solution is more robust and stable as it runs over a more complete and consolidated set of inputs and contrary to the daily processing approach, this implementation does not pursue a near-real-time processing and therefore can benefit of the already known events on the spacecraft.
SDMOGA processing is split in time intervals aligned with all known events on the spacecraft, which are executed in parallel as separate jobs. Each job loads data from the preceding and following time intervals to ensure continuity of the fitting at the time interval edges. Every job performs the following processes:
-
1.
Compute preliminary sky coordinates for all observations from 7th to 14th magnitude using the commanded attitude (see Section 1.3.2).
-
2.
Perform a cross-match against a subset of reference sources from the working source catalogue (see Section 3.2.4) using a large matching radius of the order of 60 arcsec to account for the low accuracy of the spacecraft following the commanded attitude.
-
3.
Process all candidate sources for each observation, applying an outlier rejection procedure to reduce the match ambiguity. This is achieved by discarding candidate sources that do not match the magnitude of the observation and of which the distances exceed a given threshold on the trimmed mean of the distances of nearby observations using a sliding time window of few seconds. After this step only observations with only one source candidate are used.
-
4.
Process the distance measurements of the surviving observation-source pairs computing the corrections to be applied to the original commanded attitude quaternions to remove the common offset observed. These corrections are computed as the trimmed mean of the distances of the observation-source pairs using a sliding time window of a few seconds at a regular time step typically of 15 seconds. Finally B-spline coefficients to the available telemetry, resulting is an array of B-spline coefficients and the associated knot times (see Section 4.3.4).
-
5.
Finally, a B-Spline is fitted over the corrected quaternions generating the necessary SDMOGA records (see Section 4.3.4).
All these steps are iterated until we reach a convergence of the final residuals below 1 milliarcsecond.
Based on the performance of Gaia DR3, it was observed that a geometric calibration bootstrap was also necessary to further reduce the dependence of the solutions of the daily and previous cyclic solutions, so a new geometric calibration (SDMAC) was integrated in new task within IDU (known as AttAc). The SDMAC model provides a constant calibration for each FoV and gate combination for the 9 across scan stitches of the SM and AF CCD devices (see Figure 1.4). The calibration is reset after major spacecraft events affecting the focus performance (see Figure 1.11); these include decontamination and refocus operations listed in Table 1.13 and the two safe modes described in Section 1.3.4.1. The only external input integrated in SDMAC solution is the basic angle variation (see Section 3.4.4). This is the only time-dependent component and it is generated by AGIS from the BAM measurements as described in Section 4.2.4.
The calibration of the SDMAC is iterated with the SDMOGA determination. A preliminary calibration is partially derived within the SDMOGA iterative loop as a pre-processing step of the distance measurements of the surviving observation-source pairs. These partial calibrations are then averaged and consolidated in a final solution which is then used in a final run of the SDMOGA loop to derive the final solution.
SDMOGA attitude is accurate in the along scan direction to the 5-mas level and precise at the sub-mas level (similar to the latest OGA2 solutions).
In Gaia DR4, SDMOGA has been used for the computation of the sky coordinates provided in the new onboard_detection_af_xp and onboard_detection_rvs tables due to its wide coverage.