skip to main content

gaia data release 4 documentation

14.4 Spectral analysis

14.4.1 Mean spectra

The spectral analysis part of the GravLens chain uses partially-calibrated epoch BP and RP spectra associated with each transit of the components as main input. Partially-calibrated epoch spectra of a same component however differ from one another because of the source variability, but also because of the different response function and line-spread function (LSF) associated to their observing conditions. These observing conditions are summarized in the so-called calibration units and are composed of: the field of view; the on-board mission time (OBMT); the CCD row; the across-scan (AC) coordinate; the gates activation; the windows class (1D or 2D); the AC rate and on the along-scan and AC centring errors. Before being used, partially-calibrated epoch spectra must hence be normalized to a common calibration unit and combined to produce internally-calibrated spectra. Internally-calibrated BP/RP spectra are computed based on the partially-calibrated BP/RP spectra associated with each component using the following procedure: for a given set of N partially-calibrated epoch spectra (BP or RP), 𝒇i, of which inverse uncertainties are given by the diagonal weight matrix 𝗪i=diag⁡(1/𝝈i), we compute the coefficients of the internally-calibrated spectra, 𝒄, through the minimization of

min𝒄,𝑭⁡χ2=∑i=1N‖𝗪i⁢(𝒇i−𝗔i⁢𝗕i⁢𝒄⁢Fi)‖2s.t.∑i=1NFi=N (14.1)

where 𝗔i and Fi are the calibration matrix and relative flux associated with the i-th epoch spectrum, respectively, and 𝗕i is the matrix of basis functions sampled at pseudo-wavelengths imposed by 𝗔i. The calibration matrix, 𝗔i, is associated to the calibration unit of the i-th partially-calibrated epoch spectrum. It is a discrete convolution matrix that models the flux and LSF calibration to apply to the set of the basis functions, 𝗕i, in order to reproduce the observed i-th partially-calibrated spectrum (Montegriffo et al. 2023). If 𝒇i is sampled at pseudo-wavelength 𝒙i, the calibration matrix converts an oversampled version of the basis functions, 𝗕i, to its partially-calibrated representation, sampled at 𝒙i. The linear constraint ∑i=1NFi=N, both ensures that the mean of the relative fluxes is equal to one and that the solution is bound (any solution of the form α⁢𝒄⁢Fiα is otherwise also a solution to Equation 14.1 for arbitrary values of α). The set of basis functions are cardinal B-spline functions of degree three with uniformly spaced knots at 𝒕=(−3,−2,…,63) such that the 𝗕i matrices are composed of 63 basis functions. The minimization algorithm simultaneously produces the covariance matrix on 𝒄, 𝝨𝒄, and the uncertainties associated with each relative flux, σFi.

Not all partially-calibrated spectra contribute to the computation of the internally-calibrated spectra as we reject epoch spectra for which:

  • •

    no data or no calibration is available, or the calibration application fails;

  • •

    the observation is affected by a satellite event;

  • •

    the transit is affected by truncation or multiple gate configuration;

  • •

    the predicted position computation failed or the predicted position stands outside the observation window.

Despite the filtering done on partially-calibrated epoch spectra, some of the epoch fluxes are known to be outliers, while some transits remain affected by artefacts such that their entire fluxes are deviant. In order to filter out these outliers, we implemented a rejection algorithm applied within the internal-calibration procedure. Given the normalized residuals of the partially calibrated spectra

𝒓=(𝒓1⋮𝒓N)=(𝗪1⁢[𝒇1−𝗔1⁢𝗕1⁢𝒄⁢F1]⋮𝗪N⁢[𝒇N−𝗔N⁢𝗕N⁢𝒄⁢FN]), (14.2)

we reject fluxes having |ri|>5⁢σr where the standard deviation of the residual, σr, is estimated from its median absolute value as

σr=med⁡|𝒓|2⁢erf−1⁡12≈1.4826⁢med⁡|𝒓| (14.3)

and where 2⁢erf−1⁡12 is the expected median value of a half-normal distribution of unit variance. Also, as the calibration matrices, 𝗔i, often contain strongly deviant values (up to 107 in absolute value) when reproducing partially-calibrated fluxes outside the pseudo-wavelength range 0–60, we rejected fluxes outside this range.

Similarly, outlier spectra usually have deviant relative fluxes, Fi, that are rejected if

|Fi−med⁡(𝑭)|>10⁢σFwhereσF=mad⁡(𝑭)2⁢erf−1⁡12≈1.4826⁢med⁡|𝑭−med⁡(𝑭)|, (14.4)

where mad⁡(𝑭) is the median absolute deviation of 𝑭. Note that we used a less stringent cut on the relative fluxes (10⁢σF) compared to the cut we set on the residuals (5⁢σr) so as to take into account the potentially large relative flux of the quasars coming from their intrinsic variability.

Based on Equation 14.1, we concurrently compute the signal-to-noise ratio of the mean spectrum, which is taken as the norm of the observed signal over the square root of the expected noise variance, as given by

S/N=(‖𝒄‖2𝔼⁢[‖ϵ‖2])12=(‖𝒄‖2trace⁡(𝝨𝒄))12whereϵ∼𝒩⁢(𝟎,𝝨𝒄) (14.5)

is a random vector drawn from a multivariate Gaussian distribution of mean 𝟎 and variance 𝝨𝒄 and where 𝔼⁢[⋅] represents the expectation operator.

Finally, as the area under cardinal B-spline basis functions are equal to one, the integrated flux of the internally-calibrated spectra in pseudo-wavelength space, Fxp, can be computed straightly from the B-spline coefficients, 𝒄, as

Fxp=∑iciwith squared uncertainties given byσFxp2=∑i,j[𝝨𝒄]i,j. (14.6)