next previous
Up: ISOCAM data processing


Subsections

3 Dark subtraction for the LW channel

 One has to subtract the dark current from the image, for both the SW and LW channels. This is done with measurements obtained during dedicated calibration orbits. This procedure produces acceptable results for the SW channel, but can sometimes fail for the LW channel. The reason for this is a combination of long-term drifts in the dark current, and low-signal that will make these drifts dominate the noise over photon and readout noise. This situation is quite easy to recognize as the LW dark current shows strong odd-even stripes (see Fig. 4), which are not completely gone when the dark correction fails. To provide the reader with orders of magnitudes for these effects, Table 1 lists, for all integration times, the spatial mean of the noise on the calibration dark measurement (each dark is the result of the average of a given number of frames, therefore each pixel in the dark measurement has an associated RMS, we report here the mean of these RMS), and, separately for the even and odd lines, the mean, median and rms of the dark level. Finally, this table also lists typical values of residuals (mean and rms) that can be obtained when the calibration dark is used (see also Table 2). These values were obtained by correcting very long dark measurements by the calibration dark. These long measurements are performed to derive the time behavior of ISOCAM LW dark (Biviano et al. 1998). As can be seen from the table, the dark correction is not perfect and there remains a residual whose amplitude is larger than the noise in the calibration dark. Furthermore a clear even-odd pattern remains (see Fig. 4) as indicated by the relatively large dispersion.

The offset between the calibration dark and the actual dark can only be derived from a study of the time behavior of the dark (Biviano et al. 1998). The pattern, however, can be removed with appropriate analysis (e.g. Van Buren & Aussel 1996; Starck & Pantin 1996).


  
Table 1: Dark levels and associated dispersions for the LW channel of ISOCAM. Column (1) is the integration time in seconds, (2) is the spatial mean of the noise (1$\sigma$) in the calibration dark measurement. As the LW dark shows a strong separation between the odd and even lines (due to the different amplification chains), we have listed the levels separately for the even and odd lines. The mean dark value, the median dark value, and the 1$\sigma$ dispersion around the mean are listed for the even lines (Cols. 3 to 5) and odd lines (Cols. 6 to 8). Finally in the last two columns, we have used data obtained during "dark'' revolutions (CAM is kept closed for a whole revolution and is continuously read out) to exemplify the amplitude of dark drifts by subtracting the calibration dark from these dark measurements. The spatial mean and rms are listed in Cols. (9) and (10). All dark values are in ADUg-1s-1. No values are listed for the 0.28 s integration time since due to technical constraints, it cannot be measured for a complete orbit

\begin{tabular}
{r\vert c\vert rrr\vert rrr\vert\vert rr}
\hline
$T_{\rm int}$\s...
 ...$-$1.04 & $-$1.02 & 1.05 10$^{-1}$\space & $-$0.16 & 0.05 \\ \hline\end{tabular}

  
\begin{figure}
\psfig {figure=fig_dark1.ps,bbllx=1.8cm,bblly=12.9cm,bburx=14.5cm...
 ...x=1.8cm,bblly=12.9cm,bburx=14.5cm,bbury=25.6cm,width=8cm,height=8cm}\end{figure} Figure 4: Image before dark subtraction (left) and after (right). Notice the dark pattern, which is visible as a change of the signal by comparing odd and even lines in the original image

3.1 Dark pattern removal using the maximum entropy method (MEM) filtering

In order to extract the residual dark from the data, we first derive the median image M(x,y) by taking the median of all values Image(x,y,*) for a given detector pixel. If the pixel (x,y) sees the background longer than an object, then M(x,y) (renormalized) gives a good estimate of the flat-field at this position. In a general way, M(x,y) contains less signal than I(x,y,c) for any configuration c, and we prefer to try to extract the residual dark in M than in I.

Filtering can be applied to M to suppress the visual residual dark. In order to achieve this without modifying the signal significantly, we use the vertical cross-entropy of image O(x,y) defined by
\begin{eqnarray}
E(O) &=&\!\! \sum_{x,y} (O(x,y) \!-\! O(x,y-1)) \!+\! (O(x,y) \...
 ... \ln\left( \frac{O(x,y)^2}{\mid O(x,y-1)O(x,y+1)\mid)}\right)\cdot\end{eqnarray}
(3)
This entropy definition leads to a solution where the difference between pixels in one direction is minimized while matching the data as closely as possible.

The functional to minimize is:

 
 \begin{displaymath}
J(F) = \frac{\parallel M - F \parallel^2}{2\sigma^2} - \alpha E(F)\end{displaymath} (4)
in which the first term ($\frac{\parallel M - F
\parallel^2}{2\sigma^2}$) represents the "goodness of fit" (GOF) constraint, which is regularized by the vertical cross-entropy functional E(F). $\sigma$ is the noise standard deviation, and $\alpha$ a parameter defining the weight between the GOF term and the regularizing efficiency by the cross-entropy. F is the filtered image.

The gradient of the former functional is
   \begin{eqnarray}
&\nabla(J(F(x,y))) = - \frac{(M-F)(x,y)}{\sigma^2}\nonumber \\ ...
 ...\ln\left( \frac{F(x,y)^2}{\mid F(x,y-1)F(x,y+1)\mid}\right) 
\cdot\end{eqnarray}
(5)
Then the "one step gradient'' algorithm gives us an iterative scheme to minimize the functional (4):
   \begin{eqnarray}
F^{n+1} = F^{n} - \gamma \nabla(J(F^n)).\end{eqnarray} (6)
The residual dark is finally obtained by taking the difference between M and F.

3.2 Dark pattern removal in Fourier space

The dark pattern can be suppressed in Fourier space by the following method:

1.
Average together all deglitched frames, obtaining $I\rm _a$.
2.
Eliminate in $I\rm _a$ the low frequencies, obtaining $I\rm _h$.

3.
Estimate the noise in $I\rm _h$, and set to zero all structures higher than three times the noise standard deviation.

4.
Compute the FFT $\hat{I\rm _h}$ of $I\rm _h$, and estimate the noise in the real part $\hat{I\rm _h}\rm _r$, and imaginary part $\hat{I\rm
_h}\rm _i$ of $\hat{I\rm _h}$.

5.
Threshold all Fourier coefficients lower than the noise. We get $\hat{T\rm _h}\rm _r$, $\hat{T\rm _h}\rm _i$.

6.
Compute the inverse FFT transform of $(\hat{T\rm _h}\rm _r$, $\hat{T\rm _h}\rm _i)$. Its real part gives the pattern P. The pattern P can then be subtracted from the input image.

This procedure can be iterated and usually three cycles is sufficient for a good dark pattern removal.

The residual dark can be relatively well suppressed just by deleting some frequencies. The result is obviously not as good as if we had had the true dark, and there will be always a confidence interval on the flux. Yet the advantage of the FFT thresholding method is that it always finds a residual dark image evaluation with zero mean (whithin the numerical errors). Therefore, the method just suppresses the visual artifacts, without adding any offset to the data. The MEM method produces good results as well, but seems to have some limitations. For instance, it is a real filtering method (even if it is only in one direction), thus, the noise statistics can be modified. This point could be resolved by previous filtering of the data cube. Note, also, that some columns can show atypical behavior and the resulting artifacts seem to be satisfactorily removed when using the FFT thresholding method.

Figure 5 shows the final calibrated raster image of the Antennae, without any second order dark correction (upper), and with a second order dark correction using the FFT method (lower). The visual aspect of the residual dark has disappeared. It must be clear that the "real'' dark is not corrected using this method, only its visual aspect is removed.

To provide quantitative information on the quality of this correction we performed the following experiment: we used dark measurements performed during "dark orbits'' (see Biviano et al. 1998) and subtracted the corresponding calibration dark from these measurement. The FFT method was applied to the residuals. In Table 2 we give, for the most often used integration times of 2.1, 5.04 and 10.08s, the mean and rms around the mean for the residuals after calibration dark removal, the mean and rms around the mean for the residuals after the FFT dark correction. As can be seen from the table, the mean value of the residuals is almost unchanged after the FFT dark correction while the rms has been divided by two. More striking is the effect in even-odd pattern. In the last two columns of Table 2 we list the difference between the mean of the even lines and the mean of the odd lines for the residuals after calibration dark correction and those after application of the FFT dark correction. After FFT dark correction the remaining difference becomes barely significant.


  
Table 2: Quantitative information on the performances of the FFT dark subtraction method. This table compares the quality of dark current correction between the standard method, i.e. using a library dark, and the standard+FFT method, where the subtraction of a library dark is followed by FFT filtering. To make this comparison, we are using dark measurements (typically between 10 and 20 per integration times) obtained during "dark'' orbits (Biviano et al. 1998). Column (1) gives the integration time in seconds. We only display results for the most commonly used integration times. Columns (2) and (3) list the spatial mean and rms on the library dark corrected images. Columns (4) and (5) give the same information once these images have been FFT filtered. One can see that the mean signal is little affected (<2%) while the rms is divided by $\sim$2. In Cols. (6) and (7) we compare the even and odd lines of the images at the two stages of dark correction by computing the difference between the mean of the even lines and the mean of the odd lines. One can see that while this difference is quite significant after only the library dark correction, it is almost insignificant after FFT filtering

\begin{tabular}
{r\vert rr\vert rr\vert\vert rr}
\hline
$T_{\rm int}$\space & \m...
 ... 3.60\,10$^{-1}$\space & $-$0.105 & 1.17\,10$^{-3}$\space \\ \hline\end{tabular}

  
\begin{figure}
\psfig {figure=ant_fft_bw.ps,bbllx=2cm,bblly=6.9cm,bburx=19cm,bbury=24.5cm,width=13cm,height=13.5cm}\end{figure} Figure 5: Upper, raster image of the antennae without second order dark correction, and lower, the same image but using the FFT thresholding second order dark correction

next previous
Up: ISOCAM data processing

Copyright The European Southern Observatory (ESO)