# 4.4.2 Signal processing at CCD level

Author(s): Aldo Dell’Oro

## Input data

In Gaia DR2 the signal processing at CCD level for SSOs was largely based on the output of Image Parameters Determination (IPD) performed by Initial Data Treatment (IDT) and updated by the Intermediate Data Update (IDU), both described in this document (Chapter 2) and in Gaia Collaboration et al. (2016) and Fabricius et al. (2016).

The basic input for IPD consists of ten arrays storing the electron counts collected by the SM and by each of the astrometric CCDs (from AF1 to AF9) during a transit on the focal plane. The whole collection of the arrays is represented by a matrix storing the numbers of electrons $C_{s,i,j}$ collected in the $(i,j)$ sample of the $s$-th CCD strip, where $s=0$ for SM and $s=1$, …$9$ for AF1, …, AF9 respectively. The ranges of the indexes $i=1,...,N_{s,x}$ and $j=1,...,N_{s,y}$ depend on the particular geometry of the read-out window for the corresponding CCD strip. Index $i$ represents the along-scan position of the sample, while $j$ is the across-scan position. The order of the samples corresponds to the read-out sequence, so that sample $(1,1)$ is the first one, $(1,2)$ the second one, and so on. In turn, each sample is the composition of an array of $B_{s,x}$ along-scan binned CCD pixels and $B_{s,y}$ across-scan binned CCD pixels, according to the binning rule of each window. Each pixel inside a window is labelled with integers $i^{\prime}=1,...,N^{\prime}_{s,x}$ and $j^{\prime}=1,...,N^{\prime}_{s,y}$, where $N^{\prime}_{s,x}=B_{s,x}N_{s,x}$ and $N^{\prime}_{s,y}=B_{s,y}N_{s,y}$, where $(i^{\prime}=1,j^{\prime}=1)$ is the first read-out pixel. Associated to each $N_{s,x}\times N_{s,y}$ array, a window-related system of coordinate $(x,y)$ is defined in such a way that the centre of the sample $(i.j)$ has coordinates $x=i$ and $y=j$. Another pixel-based coordinate system $(x^{\prime},y^{\prime})$ is defined such that the coordinates of the centre of the pixel $(i^{\prime},j^{\prime})$ are $x^{\prime}=i^{\prime}$ and $y^{\prime}=j^{\prime}$.

The purpose of IDT/IDU IPD is to carry out an analysis of the recorded arrays $C_{s,i,j}$ in order to estimate for each strip the following parameters of the image:

• the mean position $(x_{s},y_{s})$ (centroid) of the source during the window integration time, expressed in terms of sample-based coordinates $(x,y)$ or pixel-based coordinates $(x^{\prime},y^{\prime})$

• the flux $f_{s}$, namely the number of collected electrons per unit of time, producing the $N_{s,x}\times N_{s,y}$ counts $C_{s,i,j}$

The IPD algorithm is based on a mathematical signal model $M_{s,i,j}$, depending on the unknown $x_{s}$, $y_{s}$, $f_{s}$ parameters. For details, see Gaia Collaboration et al. (2016) and Section 2.4 in this document.

Apart from SM, in the vast majority of cases the observed windows are one-dimensional, therefore $N_{s,y}=1$ and the information about the across-scan electron distributions is not collected. In these cases it is not possible to determine the $y$ coordinate of the centroid. Moreover, one-dimensional windows do not permit a direct 2-D reconstruction of the actual flux, because the recorded signal consists in these cases of the across-scan integral of the fraction (always $<1$) of the total signal falling within the across-scan limits of the window.

In details, the list of the data produced by IDT/IDU for each transit and used for SSO signal analysis is the following:

• the value of the magnitude determined on-board by VPU, as a preliminary estimation of the magnitude;

• the window class, a parameter from which it is possible to reconstruct the window geometry for each strip;

• the along-scan and across-scan window coordinates, related to the timing and position of the window in the corresponding CCD;

• the list of along-scan centroids $x_{s}$;

• the list of the fluxes $f_{s}$ (photo-electrons per second);

• the list of the across-scan centroids $y_{s}$, for bi-dimensional windows (SM always included);

• a list of flags describing the quality of the IPD output and the encountered issues.

Unlike along-scan centroids $x_{s}$, the across-scan coordinates $y_{s}$ of the centroids are not provided in term of across-scan coordinates inside the window, but rather in terms of across-scan coordinates in the corresponding CCD chip-set.

## Analysis principles

For the specific purposes of SSO analysis, the relevant IDT/IDU outputs have been subjected to a general quality control and filtering, described in details in Section 4.5.1, in order to mitigate the effects of some biases introduced by the peculiarities of the signals of SSOs, not taken into account in IDT/IDU. It is important to stress that at this stage the values of the IDT/IDU centroids were not modified in any way, but they were only removed from the data pipeline whenever they did not fulfill some quality control requirements.

The main difference between the signal of a “fixed” star and the signal of an SSO, both observed by Gaia, consists of an additional AL/AC spread produced by the motion of the moving source and, in several cases, by a non-zero angular size of the image (since some asteroids can be sufficiently large and close to produce non-perfectly point-like images). While the effect of a spread due to the angular size of the image is important only in a very minority of cases (about 1000 transits out of a total of about half a million SSO transits collected so far), the angular spread due to the motion of the source plays always an important role and can never be neglected. On the other hand, IDT/IDU centroids are obtained by fitting the observed signal $\Phi_{s}$ (in red in Figure 4.17) to a pure Point Spread Function (PSF) $\phi_{s}$ (in black in Figure 4.17) taking into account all instrumental effects, but not including the additional perturbations peculiar to the SSO signals. The best fit is obtained by translating the $\phi_{s}$ function along scan and rescaling it across scan, in such a way as to maximize an adopted likelihood function (or minimize the $\chi^{2}$). Obviously, this process involves the evaluation of the functions $\Phi_{s}$ and $\phi_{s}$ at the positions of the window samples. Of course, a rescaling in the ordinates is equivalent to rescale the integral of $\phi_{s}$, namely the estimator of the integral of $\Phi_{s}$, which is the basic information needed to estimate the collected flux, together with the centroid position.

Let us assume for sake of simplicity both $\Phi_{s}$ and $\phi_{s}$ to be symmetric functions. In this case, if the centroid of the observed $\Phi_{s}$ is exactly at the centre of the window, the centroid of $\phi_{s}$ that minimizes the $\chi^{2}$ is also found in the centre of the window. In other words, it is the real centroid (Figure 4.17, left panel). It does not matter whether the window size is infinite or limited, because the truncation of the signals outside the limits of the window does not modify the symmetry of the configuration.

The situation is different, however, if the centroid of the observed signal is not exactly at the centre of the window, but closer to one of its edges. In this case, the centroid of $\phi_{s}$ that minimize the $\chi^{2}$ is no longer coincident with the centroid of $\Phi_{s}$. The difference $\Delta x_{s}$ between the measured centroid and the real centroid in this case is not a purely random error but a systematic bias. The closer the observed signal is to the window edges, the larger is $\Delta x_{s}$. A similar situation affects the evaluation of the integral of the signal, i.e., the flux of the source, and a systematic off-set $\Delta f_{s}$ in the flux measurement appears. In more general terms, a non-zero $\Delta f_{s}$ is present even when the signal is centred in the window, as a consequence of the AL truncation of the signal. Although in general the window width is large enough to make $\Delta f_{s}$ negligible for well centred signals, in most practical situations the functions $\phi_{s}$ and $\Phi_{s}$ are not perfectly symmetric, as assumed so far. As a consequence, a small bias in centroid determination is present even when the signal is close to the window centre. The biases $\Delta x_{s}$ and $\Delta f_{s}$ depend on:

• the window geometry, and in particular the number of AL samples (AL window size)

• the distance of the real centroid from the centre of the window

• the amount of the spread in the AL direction due to source motion (AL velocity of the SSO).

It is important to note that the flux bias $\Delta f_{s}$, produced by the interplay between the mismatch PSF/signal and the along-scan limited size of the window, has nothing to do with the much larger flux loss due to across-scan truncation of the window. As mentioned before, one-dimensional windows do not permit the reconstruction of the total flux of the source. The amount of flux loss has to be determined in another section of the pipeline of data reduction, specifically devoted to analysis of photometry (see Chapter 5), together with the calibration of other observational effects. The only one strip that is never affected by flux loss is the SM. Preliminary magnitude determinations in this data release have been therefore based only on the value of the SM flux $f_{0}$:

 $G=-2.5\log_{10}f_{0}+C$ (4.4)

where $C=25.6196$ is the nominal value of the magnitude zero point, and $f_{0}$ is expressed in electrons per second. Only in cases in which IDT/IDU IPD for SM provides for any reason an invalid result, then $G$ is set as the value determined on-board by VPU.