skip to main content

gaia data release 4 documentation

3.3 Calibration models

3.3.5 Point and Line Spread Function models

Author(s): Nicholas Rowell, Michael Davidson, Lennart Lindegren

The combination of 2D and 1D (AL) observations made by Gaia necessitates the modelling and calibration of both the 2D Point Spread Function (PSF) and 1D Line Spread Function (LSF), referred to collectively as the PLSF. These provide models of the distribution of photoelectrons appropriate for a particular observation, and are the profiles used to determine the image parameters for each window in a maximum-likelihood estimation (see Section 3.3.7.3), specifically the along-scan (AL) image location (observation time), source flux, local background, plus across-scan location in the case of 2D windows. Of these, the observation time is of greatest importance in the astrometric solution, and this is reflected in the higher requirements on the AL locations when compared to the AC locations (Lindegren et al. 2012). Indeed, to increase the signal-to-noise, the majority of windows are binned in the across-scan direction and are observed as 1D profiles, for which the LSF is the appropriate model. The modelling and calibration of the PLSF is among the most challenging tasks in the overall Gaia data processing, due to the complex secondary dependences and the reliance on numerous auxiliary input calibrations, such as the background, CCD health, satellite attitude, geometric instrument calibration and source astrometry, the final three of which are provided by AGIS.

A major advance in the Gaia DR4 PLSF models relative to Gaia EDR3 is the introduction of semi-analytic modelling of numerous effects related to the drift-scan mode of operation, particularly the associated smearing in the AC and (to a lesser extent) AL directions due to the motion of stellar images relative to the transferring charge. This significantly reduces systematic errors in the PLSF models, especially around the ∼11th–13th magnitude range. The linear part of the PLSF is now considered to be well understood. However, the observations themselves exhibit several nonlinear effects that depend on the signal level, and which are not yet incorporated into the PLSF models. These include charge transfer inefficiency in both the parallel (pCTI) and serial (sCTI) directions, and the brighter-fatter effect. Discussion of pCTI and sCTI can be found in Section 1.3.5.5 and Section 1.3.5.6, as well as Fabricius et al. (2016); Pagani et al. (2026).

The PLSF models used in Gaia DR4 are comprehensively described in the companion paper Rowell et al. (2026), and will not be repeated here. In this section we present some details of the calibration pipeline that differ from Gaia EDR3, the majority of which is unchanged, and some additional properties of the PLSF models that were omitted from the paper for reasons of brevity.

3.3.5.1 Selection and preparation of calibrating observations

The PLSF is calibrated using a subset of the science observations that contain single, well-measured sources that meet certain criteria. Source locations in the window coordinates are obtained from AGIS, with numerous calibration terms disabled for those features that should be calibrated within the PLSF; this includes, for example, the source colour. This defines the origin of the calibrated PLSF. Windows are selected and prepared for use closely following the same procedure as in Gaia EDR3, which is described in Rowell et al. (2021, section 4.1). A few changes have been made for Gaia DR4. First, the background subtraction uses an improved algorithm described in Section 3.3.4.1. We now reject any windows that contain a saturated sample, since saturation can affect the neighbouring unsaturated samples in complex ways that are not reproduced by the PLSF model. Empirical location estimates for each source are now based on the Tukey biweight rather than centre-of-flux, since the Tukey biweight is less colour-sensitive. The error on each sample is estimated as the combination of readnoise, shot noise in the source counts, background, bias and dark signal; specifically, we no longer add a term to account for the uncertainty in the predicted location, since this was found to down-weight steeper parts of the profile that contain more astrometric information. We have improved the reference PLSF that is used to normalise the samples within each window, as required by the PLSF model, and also to perform a coarse outlier rejection based on the deviation of individual windows from the reference profile. This can identify windows with unmasked cosmic rays, for example. We have introduced a new stage of fine outlier rejection based on the colour-dependent normalisation factor distribution; this can, for example, identify windows containing a source for which the mean colour (used by the calibration) deviates from the colour at the time of the observation. Finally, we have increased the maximum number of 2D windows used within each PSF partial solution from 125 to 500.

3.3.5.2 The PLSF basis components

The LSF and PSF models described in Rowell et al. (2026) are based on sets of orthogonal 1D functions in the AL and AC dimensions, denoted fi⁢(u) and hj⁢(v) respectively. These represent the means (f0⁢(u), h0⁢(v)), first derivatives (f1⁢(u), h1⁢(v)) and basis components (f2+⁢(u), h2+⁢(v)) of the marginalised 1D AL and AC LSFs. Linear combinations of the fi⁢(u) functions are used in the LSF model, and linear combinations of the (2D) outer products fi⁢(u)⁢hj⁢(v) are used in the PSF model. They are derived from idealised simulations of the optical system that closely follow the procedure employed in earlier data releases, and which is described in Lindegren (2009, 2010c). However, some updates have been introduced for Gaia DR4 in order to meet the requirements of the new PLSF models. Specifically, we now need the derivative(s) of the mean with respect to the AL (LSF and PSF) and AC (PSF only) directions to be included in the set of orthogonal basis components. These are used to enforce constraints on the PLSF origin, as explained in Rowell et al. (2026, section 5.1.3). The procedure for generating these is as follows. Briefly, many random realisations of the Gaia wavefront error map are used to generate a large set of discretely sampled monochromatic PSFs of various wavelengths, assuming a Fraunhofer diffraction model of Gaia’s optical system and applying a modulation transfer function to model the four-phase charge transfer, pixel binning and charge diffusion. Note that the smearing effects of AL and AC motion are not included, and are instead applied analytically when fitting to observations; according to the terminology adopted in Rowell et al. (2026) this procedure simulates the instantaneous effective PSF. The monochromatic PSFs are blended to produce a large set of physically plausible polychromatic PSFs for different stellar spectral energy distributions, then marginalised to obtain sets of AL and AC LSFs. These sets are then doubled in size by including the reversed LSFs obtained by reflecting in the AL and AC directions. The mean AL and AC LSFs are then computed, along with the corresponding first derivatives. Each simulated AL and AC LSF is then processed to subtract the mean, and the residuals are then further processed to subtract their projection onto the derivative of the mean via Gram-Schmidt orthogonalisation. A principal components analysis is applied to each set of residuals to determine the basis components for the AL and AC dimensions, resulting in two sets of orthogonal functions that are also orthogonal to the corresponding derivative of the mean. All the 1D functions described so far (the means, first derivatives and principal components) are discretely sampled, and must be interpolated for use in the PLSF model. A bespoke 1D interpolating function was developed for this purpose, and is described in Section 3.3.5.3. This results in the final set of (continuous) fi⁢(u) and hj⁢(v) functions. These can be used to model both the LSF and (by forming outer products fi⁢(u)⁢hj⁢(v)) the PSF via appropriately weighted linear combinations, with the amplitude of the derivative of the mean accounting for small shifts in the PLSF origin, and the remaining basis components accounting for variations in the PLSF shape about the mean. Note that the mean is normalised such that the integral is unity, and the derivative of the mean and all the basis components are normalised such that their integrals are zero. This guarantees that the full model is normalised to unity regardless of the linear combination factors (the mean is fixed at 1.0). The first 16 fi⁢(u) and hj⁢(v) functions are depicted in Figure 3.12 and  Figure 3.13.

Refer to caption
Figure 3.12: The first 16 1D functions fi⁢(u). Note that the inclusion of the reflected LSFs in the simulation has the effect of imposing odd or even symmetry on the mean LSF and the principal components. This does not imply that the calibrated LSF formed by a weighted sum of the bases has any such symmetry – indeed, the calibrated LSF is quite asymmetric.
Refer to caption
Figure 3.13: The first 16 1D functions hj⁢(v). Note that the inclusion of the reflected LSFs in the simulation has the effect of imposing odd or even symmetry on the mean LSF and the principal components. This does not imply that the calibrated LSF formed by a weighted sum of the bases has any such symmetry – indeed, the calibrated LSF is quite asymmetric.

These functions are derived from simulations of the optical system that consider a wide range of possible wavefront error maps, and as such they are rather inefficient at modelling the in-flight PLSF, since this depends on the specific wavefront errors in the real optical system. There is also significant variation in the PLSF across the focal plane and between the two telescopes, so that a single set of basis components is suboptimal. It is also important that the mean PLSF is not too far from reality, in order that the derivative of the mean can model small shifts of the PLSF accurately (see Rowell et al. 2026, section 6.3). We therefore precompute fixed linear combinations of the 1D functions fi⁢(u) and the 2D outer products fi⁢(u)⁢hj⁢(v) that are trained on the real Gaia observations, and which provide a reduced set of bases optimised for modelling the true in-flight PLSF. This procedure is described in Lindegren (2010a). We have adapted it slightly for the new PLSF model to ensure that the reduced bases remain orthogonal to the derivative of the mean, once again using Gram-Schmidt orthogonalisation. This step corresponds to equation 21 in Rowell et al. (2026). This procedure results in the two matrices αin and αi⁢jn that define the 1D LSF basis components Hn⁢(u) and 2D PSF basis components Gn⁢(u,v) with orders n=0,1,2,… via linear combinations of fi⁢(u) and fi⁢(u)⁢hj⁢(v), respectively, according to

Hn⁢(u)=∑i=0I−1αin⁢fi⁢(u)Gn⁢(u,v)=∑i=0I−1∑j=0J−1αi⁢jn⁢fi⁢(u)⁢hj⁢(v). (3.1)

For the Hn⁢(u) functions the correct normalisation is maintained by enforcing α00=1 and α01+=0, with n=0 corresponding to the mean, n=1 the derivative of the mean in the AL direction, and n=2,3,… corresponding to the basis components. For modelling the LSF, we produce two sets of independent Hn⁢(u) functions tailored to FOV1 and FOV2 and used to model the LSF in each telescope. These are depicted in Figure 3.14.

For the Gn⁢(u,v) functions the correct normalisation is maintained by enforcing α000=1 and α001+=0, with n=0 corresponding to the mean, n=1 the derivative of the mean in the AL direction, n=2 the derivative of the mean in the AC direction, and n=3,4,… corresponding to the basis components. For modelling the PSF, we produce twenty sets of independent Gn⁢(u,v) functions that are tailored to each of the ten CCD strips (SM1 or SM2, followed by AF1-9) in each of the two FOVs. These are depicted in Figure 3.15 and Figure 3.16.

Refer to caption
Figure 3.14: The first few Hn⁢(u) functions used by the LSF model. The two columns on the left correspond to FOV1, and the two columns on the right correspond to FOV2. Within each FOV the panels correspond to different orders of component, with the order n indicated in the top right of each panel. The mean LSF (order 0) is on the lower left, followed by the AL derivative of the mean (order 1), and the first six basis components (orders 2–7).
Refer to caption
Figure 3.15: The first few Gn⁢(u,v) functions used by the PSF model for FOV1. Each row corresponds to a different strip according to the labels on the left, from SM (bottom row) to AF9 (top row). Each column corresponds to a different order n of component according to the labels at the top. The mean PSF (order 0) is on the left, followed by the AL and AC derivatives of the mean (orders 1 and 2), and the first three basis components (orders 3–5).
Refer to caption
Figure 3.16: The first few Gn⁢(u,v) functions used by the PSF model for FOV2. Each row corresponds to a different strip according to the labels on the left, from SM (bottom row) to AF9 (top row). Each column corresponds to a different order n of component according to the labels at the top. The mean PSF (order 0) is on the left, followed by the AL and AC derivatives of the mean (orders 1 and 2), and the first three basis components (orders 3–5).

3.3.5.3 Representation of the 1D functions f and h

In this section we describe the special 1D interpolating function that is used to represent the fi⁢(u) and hj⁢(v) functions in the LSF and PSF models.

The simulation procedure described in Section 3.3.5.2 produces 1D functions in the AL and AC dimensions that are discretely sampled. The AL functions span −20≤u≤20 TDI1 at a sampling cadence of 0.125 TDI1, and the AC functions span −15.066≤u≤15.066 pixels at a sampling cadence of 0.1205 pixels. The difference is due mostly to the different AL and AC sizes of the entrance pupil and pixels. In order to be physically realistic the interpolating function must extend to infinity in each dimension, and thus needs to extrapolate sensibly beyond the finite range of the discrete samples.

Over the region spanned by the discrete samples we fit a set of S-spline basis functions. The S-spline, denoted S0⁢(u) was introduced in Lindegren (2003), and has long been used in the modelling of Gaia’s PLSF due to its favourable mathematical properties: it has a shift-invariant sum, which means that the sum of samples spaced one pixel apart is invariant to the sub-pixel location of the sample points, as required by the conservation of flux (although see below). Note that elsewhere in Gaia documentation, mostly internal DPAC technical notes, the S-spline is sometimes referred to as a ‘bi-quartic’ spline; however, that term should be reserved for two-dimensional quartic splines, and may be particularly confusing in the context of PSF modelling. In Prod’homme et al. (2012), the S-spline is referred to as a ‘special quartic spline’. The S-spline is defined according to

S0⁢(u)={0if⁢32≤x23⁢(32−x)4if⁢1≤x<3223⁢(32−x)4−83⁢(1−x)4if⁢12≤x<1112⁢(11−24⁢x2+16⁢x4)if⁢0≤x<12 (3.2)

for x=|u|, and is non-zero only over −1.5≤u≤1.5. For use as basis functions, a series of S-splines are spaced 0.5 pixels apart. In Figure 3.17 we depict the S-spline centred on zero.

Refer to caption
Figure 3.17: The black curve is the S-spline S0⁢(u) in Equation 3.2, with the knots indicated by the vertical dashed lines. The S-spline is used in the representation of the PLSF basis functions fi⁢(u) and hj⁢(v).

To the S-splines we add two analytic tail functions denoted t+⁢(u) and t−⁢(u) that extend beyond the discretely sampled region in the positive and negative directions respectively, and which model the behaviour in the far wings where the profile is expected to drop off as u−2. The analytic tail function was introduced in Lindegren (2009), and we use it in modified form here. t+⁢(u) has the functional form

t+⁢(u)={0if⁢u≤0γ1⁢u3+γ2⁢u4if⁢u≤βγ3⁢u−2if⁢u>β (3.3)

This is equivalent to equation 14 in Lindegren (2009) with α=0. The negative tail function t−⁢(u) is obtained by reflection over the origin. The fi⁢(u) functions that span the AL dimension use the tail function with parameters γ1=2.5×10−5, γ2=−1.0417×10−6, γ3=13.333 and β=20. The hj⁢(v) functions that span the AC dimension use the tail function with parameters γ1=7.763×10−5, γ2=−4.294×10−6, γ3=10.044 and β=15.066. These are depicted in Figure 3.18.

Refer to caption
Figure 3.18: The AL (left) and AC (right) analytic tail functions that are used to extrapolate beyond the range of the S-splines and model the behaviour of the PLSF in the far wings. The β location is marked with the vertical dashed line. Only the positive tail functions are plotted; the corresponding tail functions used to model the behaviour on the negative side of the profile are obtained by reflection over the origin.

Note that the tail functions do not satisfy the shift-invariant sum requirement. However, they make a very small contribution to the model over the range spanned by observations, and are useful mainly for defining the normalisation of the model over all space.

Within the −β≤u≤β range the interpolating function is the sum of the S-splines and analytic tails, whereas beyond ±β the S-spline part is ignored and the only the tail function contributes. The S-splines themselves extend slightly further than ±β due to the addition of five knots beyond ±β; this is required in order to reduce artefacts around the transition point (see section 5.1 of Montegriffo 2017, for further discussion). The interpolating function is defined by the number of S-splines and their knot spacing (nominally 0.5 pixels in previous data releases; however, see the remark below), the tail attachment point β, and the amplitudes of each S-spline basis function and the two tails. When solving for the amplitudes to fit the function to the sampled data, we constrain the solution so that at the ±β transition points the S-spline part is zero in value and first derivative. This ensures that the total function is continuous in value and first derivative. In Figure 3.19 and Figure 3.20 we depict the interpolation of the discrete samples of one particular AL basis function (f11⁢(u), depicted in Figure 3.12) using the bespoke function described in this section.

Refer to caption
Figure 3.19: Example of the interpolation of one of the discretely sampled 1D LSF basis components (black points) using the bespoke S-Spline function with analytic tails (magenta line, upper panel). The vertical lines indicate the knots in the S-spline part of the interpolation function. The lower panel depicts the difference between the samples and the interpolating function. The particular basis function corresponds to f11⁢(u) in Figure 3.12.
Refer to caption
Figure 3.20: Equivalent to Figure 3.19 but depicting the different contributing terms in the interpolation function around the transition point β at u=−20.

Note that the tail-only regions are never actually sampled during processing since they are beyond the range of the window, even for significantly off-centre sources.

There is one caveat to point out in this section. In the processing for Gaia DR4 we transformed the S-spline to make it narrower in order to improve the interpolation of higher spatial frequency components, and the knot spacing was reduced from 0.5 to 0.127 TDI1 for the fi⁢(u) functions and 0.123 pixels for the hj⁢(v) functions. This had the unintentional side-effect of producing a function that violated the shift-invariant-sum requirement, meaning in practise that when the LSF or PSF model is used to fit an observation, the instrumental flux parameter will depend on the sub-pixel location of the source, thus introducing a bias in the photometry. Extensive tests carried out after the processing indicated that the shift-invariant-sum property is only very weakly violated, and that the effect on the photometry is far below the existing noise floor.

3.3.5.4 Time dependence

The PLSF dependences on source colour, AC position and TDI line number are calibrated empirically by performing partial solutions over independent 1 revolution intervals, as explained in Rowell et al. (2026, section 5.2). The PLSF is also highly time dependent due to varying levels of mirror contamination and changing instrument focus. The time dependence is handled in a different way to the other dependences, and makes use of the running solution methodology used in the Hipparcos data reduction (see van Leeuwen 2007a, appendices C and D). This provides a convenient way to merge successive time-independent calibrations of the PLSF parameters to achieve a solution that evolves smoothly in time. This procedure is virtually unchanged from Gaia EDR3 and is described in Rowell et al. (2021, section 3.4.5). For Gaia DR4 we have doubled the time interval used in the running solution from 0.5 to 1.0 revolutions, mainly to reduce the volume of calibration products since the 0.5 revolution time resolution was found to be unnecessary. We have also introduced additional breakpoints in the calibration to handle discontinuities in the PLSF evolution occurring during the later mission time range processed in Gaia DR4. The full set of breakpoints is listed in Table 3.2.

Table 3.2: Details of breakpoints in the PLSF calibration during the Gaia DR4 period. The first two columns give the time of the breakpoints; these are associated with the events listed in the third column. A tick in the fourth and/or fifth column indicates that the solutions for the corresponding FOV were reset.
OBMT [rev] UTC [date] Event FOV1 FOV2
1192.62† 2014-08-22 EPSL→NSL transition ✓ ✓
1329.00 2014-09-26 Decontamination #4 ✓ ✓
1443.96 2014-10-24 Refocus (FOV2) ✓ ✓
2342.00 2015-06-06 Decontamination #5 ✓ ✓
2574.65 2015-08-03 Refocus (FOV1) ✓
4124.00 2016-08-24 Decontamination #6 ✓ ✓
5270.00 2017-06-07 Safe Mode ✓ ✓
5406.21 2017-07-11 Refocus (both FOV) ✓ ✓
6335.00 2018-02-28 Safe Mode ✓ ✓
7447.70 2018-12-03 Refocus (both FOV) ✓ ✓

† included only in the ELSF-4.8 calibration used to produce the Gaia DR4 astrometry; see Section 3.4.11.