skip to main content

gaia data release 4 documentation

3.3 Calibration models

3.3.7 Astrometric Detection and Image Parameter determination

Author(s): Michael Davidson, Claus Fabricius, Lennart Lindegren

The ultimate purpose of the pre-processing is to measure the key properties of the source within each window, specifically its location and flux. The along-scan location corresponds to a transit time, and for 2D windows the across-scan location is also determined. These quantities are the primary inputs to the astrometric and G-band photometric solutions produced by AGIS (Chapter 4) and PhotPipe (Chapter 5) respectively.

A significant change is present in the approach for Gaia DR4 compared to earlier cycles; we now attempt to detect and model additional sources visible in a single transit. The presence of a not-modelled additional source will degrade the image parameters of the target source and may lead to corrupted results within a transit if the algorithm converges on different peaks along the transit from SM to AF9. In Gaia EDR3 we had a crude mitigation of the latter effect by applying a mask to discard the samples associated with a ‘non-target’ source. This generally ensured consistent results along the transit for the target source but made no attempt at accounting for the flux from the other sources.

In Gaia DR4 we have improved the processing by attempting to detect all sources visible in an individual transit. It should be noted that the aims here are limited to reducing any induced biases on the target source image parameters. Since each transit is processed in isolation other DPAC systems will perform better at source environment analysis (Chapter 7) and non-single source characterisation (Chapter 11) as they can consider all observations of a given area of sky together.

3.3.7.1 On-ground detection

In an ideal world, the image parameter determination in IDU would recreate a scene for a given stellar observation by simulating the known sources and background in the field and hold these fixed while fitting the properties of the target source. This is not practical for several reasons, not least the formidable computing resources which would be required. Sources would need to be simulated in full 2D by sampling the PSF. The input catalogue at this stage of processing is not fully reliable either; it will miss some real sources and also contain spurious entries, as derived from on-board detections. The solutions for the real sources may also be sub-optimal, meaning their observations could be poorly predicted. We therefore wish to perform a ‘blind’ detection of the sources visible in each individual transit.

The ambitions for this on-ground detection are limited; if we cannot detect an additional source in an individual transit then its effect on the fitted parameters of the target source will be minimal. A design principle of IDU was that it should treat all transits as containing a single source so the inclusion of an on-ground detection step is constrained to be modest in scope. Other DPAC systems are better suited for analysis of non-single source systems.

However, even with analysis restricted to a single transit, we have several advantages over the on-board detection process. The on-board algorithm must declare sources based only on the SM samples (for detection) and AF1 samples (for confirmation). Both of these devices use hardware binned samples, reducing the available resolution. No PSF model fitting is done on-board and only a crude background estimate and electronic bias profile is available. Due to limitations in the on-board resources, not all detected sources are allocated a window. In contrast, after the transit has been observed we have (in general) a full set of samples from the AF2 to AF9 devices, which are acquired at TDI1 resolution rather than TDI2 mode used in SM. During on-ground processing we have the necessary attitude and geometric information to align the samples from the AF2-9 devices, and have a good set of calibrations for their analysis including bias and background levels, known defects and a PSF/LSF model. The input catalogue often gives some key information on the target detection, specifically its colour, which can be very important to avoid false detections at diffraction maxima.

With our available knowledge of the instrumental calibrations, specifically the PSF/LSF, it was hoped that a deconvolution method could be used to reveal the underlying scene, for instance using the Richardson-Lucy deconvolution technique. Unfortunately this does not work well when applied to Gaia transit-level data due to reconstruction artefacts which occur at window edges. It remains a promising approach for very close or blended situations which are not recovered by our pragmatic detection algorithm, described below.

Detection is based solely on AF2-9 samples to avoid the limitations of the SM and AF1 data which are often further binned in software before being transmitted to ground. The first step is to select AF2-9 windows with sufficient usable samples, i.e. unmasked, acquired with uniform gating and constant geometry. Estimates of the electronic bias level and background per sample are obtained, but not subtracted so that the noise properties can be considered in later statistical processing. The attitude and geometric calibrations are then used to predict the relative observation times and across-scan locations (for transits with 2D AF2-9 windows) for a putative source in the transit. These relative locations allow the samples be aligned on a common reference frame to a precision of a fraction of one pixel. The aligned samples are binned in the common frame to first exclude outliers, for instance caused by unmasked cosmics or a cosmetic defect in an individual device, and then to be used as input to the initial characterisation and detection stage.

Initial characterisation of the transit is required to exclude the relatively large number of spurious on-board detections in the diffraction spikes of nearby bright stars. In 1D windows the diffraction spikes are expected, to first order, to decrease in strength following an inverse square profile. If such a model can be fitted to an observed dataset with a satisfactory goodness-of-fit then it is discarded as a likely diffraction spike artefact. An example of a transit suspected to be a diffraction artefact is given in Figure 3.22.

Refer to caption

Figure 3.22: Example of a transit classified as a suspected diffraction artefact, for which no source detection is attempted.

The next step is the preparation of an initial list of candidate detections in the transit. This is done using the binned AF2-9 samples in the reference frame, where the median sample in each bin is found. A watershed segmentation is performed on this profile to identify sets of samples separated by a statistically significant minimum given the background levels and read-noise. Each watershed segment corresponds to a candidate detection. Various filters are applied at this stage, for instance to eliminate regions with only a single significant sample lying at the window edge. Use of a watershed segmentation algorithm demands that a clear minimum is visible; it will therefore not resolve sources separated by less than around 2 pixels (120 mas in the AL direction). These blended systems are to be handled in the dedicated DPAC systems. Some crude properties of each candidate detection are computed; their AL and AC location (for 2D transits) using a centre-of-flux method and flux as background-subtracted sum over the samples of their watershed region.

This list of candidate detections drives the rest of the processing. They are sorted by decreasing flux and then added to the window modelling for detailed assessment. A candidate detection is accepted if the window model converges while the candidate is included, and certain other criteria are fulfilled (to be discussed later). For example, we first fit the parameters of the model with a single candidate source included; the brightest of the watershed detections. If this succeeds then we add the second brightest candidate to the model and re-fit all parameters. If the model is acceptable then the second candidate is approved, if not then the fitting terminates and the single-source model parameters are returned. This method proceeds until all candidate detections have been assessed.

The model can be more fully described as follows, using the 1D case as an example. The equivalent model for the 2D case is obtained by changing from a sampled LSF to sampled PSF and addition of a fitted AC location parameter. The expected de-biased photo-electron flux N⁢(k) of a transit containing multiple stellar sources can be modelled as

λk≡E⁢(Nk)=bk+βi+αi⁢∑0jfj⁢Lk⁢(κj+Δi), (3.4)

where the indices are

  • •

    k is the index of the combined set of AF2-9 samples,

  • •

    i is the index of the AF2-9 strip (AF2 has index 0),

  • •

    j is the index of the source where 0 corresponds to the brightest watershed detection

and each term can be described

  • •

    b is the fixed background contribution for each sample, for instance containing dark signal or charge release,

  • •

    β is the local background level per strip (to be fitted),

  • •

    α is the flux in each strip of the brightest source (to be fitted),

  • •

    f is the flux factor for each source with j>0 (to be fitted) and fixed at 1 for j=0,

  • •

    L is the sampled LSF as configured for a source at location κj+Δi in the corresponding strip,

  • •

    κ is the AL location of the source in the reference strip (to be fitted),

  • •

    Δ is the pre-computed relative location between strip i and the reference strip expected from the attitude and geometry.

In this way we prepare a model of the observed samples in AF2-9, allowing for a different background level in each strip, given a system of sources with fixed relative locations and fluxes in each strip. The set of fitted parameters, 𝜽, is comprised of the local background levels, location of each source in the reference strip, flux of the brightest source in each strip, and flux factor for each secondary source. These parameters are estimated using the standard maximum-likelihood method for CCD sample data presented in Section 3.3.7.3.

It should be recognised here that we are, in effect, fitting a system template which is assumed to be constant over the duration of the transit from AF2 to AF9. Any relative motion or intrinsic rapid variation in flux of the sources will not be tracked. While it would have been possible to use a more flexible model, for instance, to determine an independent flux for each source in each strip, it would be less stable. The simplest model which would fulfil the stated requirements within IDU processing was preferred.

There are some criteria for a candidate to be accepted after a fit. Firstly, the maximum-likelihood solution must have converged successfully. The fitted location of the candidate must lie within its corresponding watershed segmentation region; this implies that the source lies within and not outside of the reference window. Its predicted flux in each strip must be greater than 50 electrons for a transit with a single detection (equivalent to around 23 mag for a NOGATE transit), or 200 electrons for a fainter secondary detection (around 21.5 mag for NOGATE). The local backgrounds are constrained to be non-negative. The inclusion of the candidate must not make the goodness-of-fit of the solution worse.

In Gaia DR4 all sources in a transit are modelled using a PSF/LSF of the same colour; that of the target source if available in the input source catalogue or a default if this is not available. This constraint arose for technical reasons and further releases allow each component to be modelled with a different colour. Furthermore, the PSF/LSF profiles are constrained only over a finite support covered by the nominal observations used for calibration. Consequently, it may not be possible to obtain a valid PSF/LSF sample far from the origin, as may be required if a secondary source lies away from the window centre. If the PSF/LSF sampler indicates that a sample is not reliable then its contribution to a given sample prediction in Equation 3.4 is assumed to be zero.

After the transit-level detection is complete, assuming more than one source has been found, the fitted template is used to declare one of the components as the target source. This is source which is predicted to lie closest to the AF1 reference sample. The fitted system template parameters and uncertainties, along with solution information such as the goodness-of-fit, are stored in the AstroElementary in a set of extra fields added in Gaia DR4. Examples of the transit detection for 1D and 2D windows are given in Figure 3.23 and Figure 3.24 respectively.

Refer to caption

Refer to caption

Figure 3.23: Example of transit detection with 1D windows in AF2-9. The top/left figure shows the aligned data, input to the watershed segmentation and the region assigned to each candidate detection. The bottom/right figure shows the aligned data and final fitted model for the two source configuration.
Refer to caption
Figure 3.24: Example of transit detection with 2D windows in AF2-9. The upper figures show the input to the watershed segmentation (left) and the region assigned to each candidate detection (right). The lower figures show the aligned data (left) and final fitted model for the two source configuration (right).

3.3.7.2 Image parameter determination

In Gaia DR4 we have performed an on-ground detection of sources visible in an individual transit using aligned AF2-9 samples. This results in a system template for the transit containing the relative location and flux of each detected source, assumed to be constant over the duration of the transit from SM to AF9. The detection configuration allows up to three sources to be modelled in a transit. In effect, the system template defines, in general, a multi-peaked composite PSF/LSF for the transit which can then be used in the processing of each SM to AF9 strip to estimate the image parameters of the target source. Recall that the target source is declared as being the one predicted to be closest to the AF1 reference pixel.

As noted in Section 3.3.4 from Gaia EDR3 onward a local additive background (assumed to be constant) is fitted as an image parameter for the majority of sources in order to better track the stray-light features. This is constrained to be positive. The background contributions from the dark signal and charge release are kept fixed in the forward model. Using the 1D case with a composite LSF L as an example, the expected de-biased photo-electron flux N⁢(k) of a CCD window observation can be modelled as

λk≡E⁢(Nk)=β+α⁢L⁢(k−κ), (3.5)

where β, α and κ are the background level, the flux of the target source, and the along-scan image location of the target source. The index k is the along-scan location of the CCD sample under consideration.

Samples are masked, for example, if they are in the non-linear regime, suspected to be cosmic rays, or are on known hot columns as discussed in Section 3.4.9. Charge injections and gate release lines are also masked. IPD is attempted only if sufficient samples are available with the same gating and geometry. The SM processing uses only a ‘sub-window’ of the central eight lines to avoid expensive and unnecessary sampling of the PSF wings. No attempt to model non-linear effects such as CTI or blooming is made, other than via masking, and so the window model is linear.

Several calibrations are necessary, from the bias through to the PSF or LSF as described in the earlier sections. Furthermore, to sample the PSF/LSF the across-scan rate of the source must be derived from the attitude and an estimate of the source colour is required. In Gaia DR4 we use wave number values from the Gaia DR3 photometric processing where available; a default value is used for the remainder. The full maximum-likelihood model described below also depends on good initial values for the image parameters. If transit-level detection has been successful then this is used to provide initial parameter estimates in each strip. Otherwise a centre-of-flux algorithm is used to estimate the initial source location apart for bright stars where the core is saturated, in which case a maximum correlation method is used with the PSF over a grid of possible locations. The integrated source counts within the window is used to initialise the flux parameter.

The final image parameters for the target source, viz. transit time, flux, and for 2D windows also the AC position, were determined with a maximum-likelihood method described in Section 3.3.7.3. For converting the fluxes from digital units to e−/s, gain factors determined before launch were used. The resulting parameters are stored as intermediate data for later use in the astrometric and photometric core processes.

3.3.7.3 A general Maximum-Likelihood algorithm for CCD modelling

The general principle for Maximum-Likelihood (ML) fitting of arbitrary models in the presence of Poisson noise is simple and can be formulated in a general framework which is independent of the precise model. In this way, it is possible to use the same fitting procedure for 1D and 2D profile fitting to CCD sample data, as well as for more complex fitting (e.g., for estimating the parameters of the LSF model). Here, we outline the basic model for this framework.

3.3.7.3.1 Model of sample data

The basic input for the estimation procedure consists of data and a parametrised model. The estimation procedure adjusts the model parameters until the predicted data agrees as well as possible with observed data. At the same time, it provides an estimate of the covariance matrix of the estimated parameters and a measure of the goodness-of-fit. The ML criterion is used for the fit, which in principle requires that the probability distribution of the data is known as a function of the model parameters. In practice, a simplified noise model is used, which is believed to be accurate enough, which leads to simple and efficient algorithms.

Let {Nk} be the sample data, 𝜽={θi} the model parameters, and {λk⁢(𝜽)} the sample values predicted by the model for given parameters. Thus, if the model is correct and 𝜽 are the true model parameters, we have for each k:

E⁢(Nk)=λk⁢(𝜽). (3.6)

Using a noise model, we have in addition:

Var⁢(Nk)=λk⁢(𝜽)+r2, (3.7)

where r is the standard deviation of the readout noise. More precisely, the adopted continuous probability density function (pdf) for the random variable Nk is given by:

p⁢(N|λ,r)=const×(λ+r2)N+r2Γ⁢(N+r2+1)⁢e−λ−r2, (3.8)

valid for any real value N≥−r2.

It is assumed that Nk, λk, and r are all expressed in electrons per sample (not in arbitrary ADU units, voltages, or similar). In particular, Nk is the sample value after correction for bias and gain, but including dark signal and background. The readout noise r is assumed to be known; it is never one of the parameters to be estimated by the methods described in this document.

The functions λk⁢(𝜽) are in principle defined by the various source, attitude, and calibration models, including the LSF, PSF, and CTI models. The set of parameters included in the vector 𝜽 varies depending on the application. For example, in the 1D image centroiding algorithm, 𝜽 may consist of just two parameters representing the intensity and location of the image; in the LSF calibration process, 𝜽 will contain the parameters (e.g., spline coefficients) defining the LSF for a particular class of stars; and so on. The intensity model λk⁢(𝜽) is left completely open here; the only thing we need to know about it is the number of free parameters, n=dim(𝜽).

3.3.7.3.2 Maximum-Likelihood estimation

Given a set of sample data {Nk}, the ML estimation of the parameter vector 𝜽 is done by maximizing the likelihood function:

L⁢(𝜽|{Nk})=∏kp⁢(Nk|λk⁢(𝜽),r), (3.9)

where p⁢(N|λ,r) is the pdf of the sample value from the adopted noise model (Equation 3.8). Mathematically equivalent, but more convenient in practice, is to maximize the log-likelihood function:

ℓ⁢(𝜽|{Nk})=∑kln⁡p⁢(Nk|λk⁢(𝜽),r). (3.10)

Using the modified Poissonian model, Equation 3.8, we have:

ℓ⁢(𝜽|{Nk})=const+∑k[(Nk+r2)⁢ln⁡(λk⁢(𝜽)+r2)−λk⁢(𝜽)], (3.11)

where the additive constant absorbs all terms that do not depend on 𝜽. (Remember that r is never one of the free model parameters.) The maximum of Equation 3.11 is obtained by solving the n simultaneous likelihood equations

∂ℓ⁢(𝜽|{Nk})∂𝜽=𝟎. (3.12)

Using Equation 3.11, these equations become:

∑kNk−λk⁢(𝜽)λk⁢(𝜽)+r2⁢∂λk∂𝜽=𝟎. (3.13)