A Revised Characterization of the WFPC2 CTE Loss
ABSTRACT.
Charge transfer loss on the Wide Field Planetary Camera 2 (WFPC2) onboard the Hubble Space Telescope is a primary source of uncertainty in stellar photometry obtained with this camera. This effect, discovered shortly after the camera was installed, has grown over time and can dim stars by several tenths of a magnitude (or even more, in particularly bad cases). The impact of CTE loss on WFPC2 stellar photometry was characterized by several studies between 1998 and 2000, but has received diminished attention since ACS became HST’s primary imager. After the failure of ACS in January 2007, WFPC2 once again became the primary imaging instrument on board HST, restoring the importance of ensuring accurate CTE corrections. This paper reexamines the CTE loss of WFPC2, with three significant changes over previous studies. First, the present study considers calibration data obtained through 2007, thus increasing the confidence in the reliability of the CTE corrections when applied to recent observations. Second, the change in CTE loss during readout is accounted for analytically. Finally, a reanalysis of the CTE dependencies on counts, background, and observation date was made. The resulting correction is significantly more accurate than that provided in the WFPC2 Instrument Handbook (Dolphin 2002 and updates through 2004), resulting in photometry that can be enhanced by over 5% in certain circumstances.
Received 2009 January 12; accepted 2009 April 21; published 2009 May 21
Keywords:Data Analysis and Techniques
1. INTRODUCTION
Shortly after its installation on board the Hubble Space Telescope in 1994, the Wide Field Planetary Camera 2 (WFPC2) was observed to suffer from charge transfer loss, a phenomenon in which charge is removed from a star’s image during CCD readout (Holtzman et al. 1995a). The effect of this inefficiency is to reduce the star’s apparent brightness, especially those with large Y (parallel-read direction) values on the CCDs (and, to a lesser extent, those with large X values). An initial solution to this was to cool the camera from -76°C to -88°C to reduce the magnitude of the effect, and to apply a correction that scaled linearly from zero for stars with Y = 0 to a maximum of 0.04 mag for stars with Y = 800. Holtzman et al. (1995a) also noted that the CTE loss appeared to be a function of background level, and recommended no CTE correction for images with backgrounds over ∼250 electrons.
This dependency of CTE on background, as well as dependencies on star brightness and observation date, were quantified by Whitmore & Heyer (1997) and updated by Whitmore (1998), who found that the CTE loss in the Y direction could be corrected by an equation with the form
where CTS is the star’s brightness on the readout image; BG is the background level; DATE is the date of observation; and f1, f2, and f3 are used to denote functions. (Whitmore et al. used power law functions for both f1 and f2, and a linear function for f3.)
In addition to reports from the WFPC2 team, characterizations of CTE loss in the refereed literature were made by Stetson (1998), Whitmore et al. (1999), Saha et al. (2000), and Dolphin (2000a, hereafter D00). Differences in the assumed functional form of the solution and in the photometry techniques resulted in somewhat different correction prescriptions. However, D00 found reasonable agreement between the corrected magnitudes being produced by each of the four.
Since that time, there have been several significant issues requiring continued examination of the effects of CTE loss on WFPC2 stellar photometry. Most notable, given the time dependence of CTE loss, is the question of the applicability of published CTE corrections to data being currently obtained. Especially given the increased utilization of WFPC2 during cycles 15 and 16, reinvestigation of CTE issues can greatly increase confidence in the photometry being generated.
Other concerns are related to the functional form of the CTE corrections themselves, due to limited ranges of star brightness and background level of the calibration observations. Whitmore & Heyer (2002) examined the validity of existing CTE correction equations on stars significantly fainter than had been previously examined. While it was encouraging that the D00 corrections were valid when applied to stars as faint as 100 electrons (thus, the corrections are accurate for the vast majority of data used by WFPC2 science programs), for yet fainter stars these corrections appeared to overestimate the CTE loss by ∼0.2 mag.
Likewise, there is the open question of the applicability of existing CTE corrections to higher background levels (specifically, those typical of deep science exposures). Early work on WFPC2 CTE loss relied primarily on data taken with very low background levels (mostly less than 10 electrons), which required assumptions to be made regarding the effect of background level on CTE loss. However, since 2000, WFPC2 calibration programs have increasingly made use of the camera’s preflash capability, in which the CCDs are preexposed with a flat-field lamp before the actual observation. (A preflashed short exposure with bright stars is frequently used to simulate the CTE loss seen in much longer observations of fainter stars.) These data permit a significantly more accurate measurement of the effects of CTE loss on higher background data.
This paper reevaluates the CTE corrections in light of these three concerns, using calibration data obtained through 2007 August. Section 2 describes the data used in this study, § 3 contains preliminary analysis of the functional forms required for accurate CTE corrections, § 4 contains the CTE corrections themselves, and § 5 examines effects of the new corrections.
2. OBSERVATIONS
As with D00 and Dolphin (2002, hereafter D02), the data used for this study were observations of the WFPC2 calibration field in ω Cen. ( To select the data, an HST archive search was made within 1.5′ of α = 13h25m37s and δ = -47°35′58′′.) Only cold-camera (-88°C) images were considered. A total of 1184 data sets were photometered: 142 in F439W, 300 in F555W, 92 in F675W, 573 in F814W, and 77 in the other BVRI filters, with the most recent observations taken in 2007 August.
The data were reduced using HSTphot1 (Dolphin 2000b), following the recommended reduction recipe in the HSTphot manual except as follows. First, in the initial sky solution, the “abbreviated” mode of getsky was used. Second, hstphot was executed with an iterated sky solution during the photometry process (option 512), CTE corrections turned off and photometry calibrated according to Holtzman et al. (1995b) (option 32), and aperture photometry (option 1). The lone option of note is the use of aperture photometry, which increases photometric uncertainties but is more robust (PSF-fitting photometry can induce artificial nonlinearities if the PSF is not exactly correct) and thus better suited for this analysis.
To avoid complications resulting from the WF4 anomaly (Biretta & Gonzaga 2005), all WF4 observations from SM3B (2002 March) onwards were omitted from this study.
For this analysis, the WFPC2 data were compared against ground-based BVRI calibration data of Walker (1994). To facilitate this comparison, the BVRI magnitudes were transformed to WFPC2 instrumental magnitudes using the color terms of Holtzman et al. (1995b).
After exclusion of data that failed to meet data quality requirements, 55,286 stellar measurements were matched to the ground-based standard data. Statistics of the brightness, background, and observation date distributions are presented in Table 1.
3. ANALYSIS
Prior to attempting a generic solution for CTE loss as a function of star brightness, background level, and date of observation; it is worthwhile to examine each of these variables in isolation. In order to do this, the data have been selected to constrain two of these variables to limited ranges, allowing an examination of the third. For example, to analyze CTE loss dependence on date of observation, a limited range of star brightness and background level was chosen. The data were then divided into groups based on observation date, and each group of data was fit as follows:
where the left-hand side is the magnitude difference between the WFPC2 and the ground-based standard data. The fit coefficients a, b, and c give position-independent, XCTE, and YCTE terms respectively, and are examined in the subsequent sections.
3.1. Position-Independent Errors
In addition to CTE loss, there have also been many concerns regarding photometric errors that are not position-dependent, such as zero point offsets and the long-versus-short anomaly (Casertano & Mutchler 1998). Variations in the intercept of the fit from equation 1 versus star brightness and versus background level are shown in Figure 1. (Note that position-independent errors vs. observation date are merely time variations in the WFPC2 sensitivity, and are tracked extensively by the instrument team and thus not addressed in this study.)
Fig. 1.— Position-independent photometry errors, shown vs. star brightness (left) and background level (right). The data selections are shown in each panel. Note that, aside from offsets (zero point errors), no clear trends are visible.
From the figure, one sees that no significant trends in the data are present. Quantitatively, the data permit one to place a 1 σ upper limit of 0.025 mag dex-1 of either star brightness or background level over the ranges of each shown in the figure.
It should be noted that this finding not only dispels the presence of a large long-versus-short anomaly, but also provides additional confidence regarding the validity of the comparison between the ground-based standard field and the WFPC2 observations. Specifically, were any error as a function of color present (which would masquerade as an error as a function of magnitude, given the nature of this field), it would have been seen in Figure 1. As no such error was observed, the confidence in the validity of this comparison is enhanced.
What is measured, however, is a mean zero point offset relative to the Holtzman et al. (1995b) calibrations. Averaging the three plots of F555W data, the mean residual (WFPC2 minus ground) is ∼-0.06 mag, while the mean for the three plots of F814W data is ∼-0.03 mag. Thus, a correction to the zero points will be needed in order to adequately match the WFPC2 observations to the standard data.
3.2. XCTE
While YCTE loss is easy to measure by eye and has grown significantly over the years, XCTE loss has always had a small (though measurable) effect on stellar photometry on WFPC2. Figure 2 shows XCTE loss as a function of star brightness and of background level.
Fig. 2.— XCTE losses,as a function of star brightness (left) and background level (right). The data selections are shown in each panel. Due to the small size of XCTE losses, trends are not obvious from the figure.
As can be seen from the figure, dependencies of XCTE on the independent variables is not obvious. (This is also true of variations in XCTE as a function of observation date, not shown in Fig. 2.) Thus, determination of XCTE dependencies will be left for statistical methods in § 4.
3.3. YCTE versus Date
Figure 3 shows YCTE loss as a function of date of observation. To provide an indication of how this function is affected by star brightness and background levels, three sets of data are shown: faint stars on low background (panel a), bright stars on low background (panel b), and bright stars on higher background (panel c). While these samples do not represent the extremes of the data shown in Table 1, these are the largest baselines containing sufficient numbers of stars to see clear trends.
Fig. 3.— YCTE losses, as a function of observation date. Cuts in star brightness and background level are shown in the respective panels.
An examination of panels (a) and (b) of Figure 3 indicates that, despite nearly a factor of two difference in YCTE loss between faint and bright stars in recent observations (both on low backgrounds), both sets of data show similar YCTE losses during the earliest observations. Specifically, quadratic fits to the curves give YCTE losses of 0.054 ± 0.005 mag for faint stars (panel a) and 0.058 ± 0.004 mag for bright stars (panel b) for an observation date of 1994.3 (2004 April 20). This indicates that the two curves are not merely scaled versions of each other. It should also be noted that the same dependence on observation date is seen in both curves, such that panels (a) and (b) both fall onto the curve:
where Δ yr is the year minus 1994.3.
The data for higher background levels are not nearly as complete, due to few high background observations of this field made prior to mid-1998. The data in Figure 3c are consistent with both the same intercept at 1994.3, as well as a lower one. In other words, determination of whether the functional form should be
or
must wait until the analysis of the full data set is made. It should be noted that the calibration data used by Holtzman et al. (1995a) showed a strong background dependence of YCTE loss for observations obtained in 1994: 0.04 mag of loss (at Y = 800) for measurements with background levels ≲20–30 electrons, 0.02 mag for background levels ∼30– ∼ 250 electrons, and zero for higher background levels. Thus, the functional form in equation 3 is to be preferred unless the present data set demonstrate otherwise.
3.4. YCTE versus Star Brightness
Figure 4 shows YCTE loss as a function of star brightness, with data selected to show recent observations with low background (panel a), old observations with low background (panel b), and intermediate-age observations with higher background (panel c).
Fig. 4.— YCTE losses, as a function of star brightness. Cuts in background level and observation date are shown in the respective panels.
The trend from panels (a) and (b) is that the slope of the curve decreases as star brightness increases, which suggests the use of an exponential for the CTE variation as a function of brightness.
Considering only points for which YCTE loss is less than 0.5 mag (see § 3.6 for a discussion of the treatment of large CTE losses) and using the results of the previous section, both curves can be fitted with the formula: 
Effects of background on the YCTE loss versus counts will be discussed in § 3.5.
3.5. YCTE versus Background
The final independent variable considered in this analysis is the background level. Figure 5 shows CTE loss as a function of background, for faint stars observed in roughly 2001 (panel a), faint stars observed in 1995 (panel b), and bright stars observed in 2001 (panel c). As with D00 and D02, a “softened” background was used, which equals
electrons (and is 1 if the measured background level is negative). This softened background compresses the lowest background levels, making it easier to find a functional form for fitting CTE loss versus background.
Fig. 5.— YCTE losses, as a function of background level. Cuts in star brightness and observation date are shown in the respective panels.
The YCTE plots in Figure 5 do not show the curvature characteristic of an exponential decay, suggesting that a line be used instead to fit the YCTE dependence on background. Another significant feature of the background dependence, although the data used to generate Figure 5 contain insufficient stars to make this evident, is that the slope of the relation is shallower for bright stars than it is for faint stars. Thus, the function used to fit the background dependence is 
3.6. Charge Loss During Readout
When CTE loss removes a significant fraction of a star’s overall brightness, one must take into account the fact that the CTE loss rate itself changes as the star is read out. Using the customary terminology of losses as fractions of star brightness lost (as opposed to number of electrons lost) per pixel read out, the CTE loss rate will increase during readout since the loss rate increases as the star becomes fainter.
The exact relation can be determined fairly simply. Let the charge lost per pixel transferred be expressed as a differential equation with the form
where x is the natural logarithm of the star’s brightness; and a, b, and c are constants (or functions of background level and observation date, which are both constant during the readout process). If the star’s brightness were to remain essentially unchanged during readout (i.e., CTE loss is a small fraction of the star’s brightness), the loss per pixel traversed would be constant as well. This would result in a magnitude loss Δm of
where Y is the star’s Y position on the chip. The multiplier of 1.086 converts from differences in natural logarithm to differences in magnitude. Note that this general form is seen in the literature correction equations (Whitmore 1998; Stetson 1998; Whitmore et al. 1999; D00).
However, for very faint stars, the amount of CTE loss can be significant, and thus one cannot safely assume that CTE loss remains constant during readout. Solving equation 4, the magnitude loss is given by
where x is the natural logarithm of the measured counts (after any loss due to readout). Note that, if acy ≪ 1, this equation simplifies to equation 5. For larger values of acy, this produces a smaller CTE correction than equation 5.
It should be noted that a CTE correction derived from data including extremely faint stars should implicitly include this effect, as the lower CTE loss would have been in the measurements and thus in the correction. However, most CTE corrections (such as that presented in this article) are based only on brighter stars, due to the practical difficulty in obtaining sufficiently accurate photometry of extremely faint stars. Thus, the brightness dependence in the CTE corrections is measured using brighter stars for which equations 5 and 6 produce the same result. Assuming that the brightness dependence is correct (given the extrapolation involved, it may not be), the form of the correction from equation 6 will be required to correctly model CTE loss of faint stars.
This effect is illustrated in Figure 6. To produce this figure, observations of the ω Cen standard field, taken on 2000 August 17 as part of calibration program GO-8447, were analyzed. The observations consisted of one 100 s F814W exposure and two 14- s F814W exposures (as well as other exposures using different filters and preflashes) at each of two pointings. For each pointing, HSTphot was used to obtain photometry for the 100 s exposure as well as the average of the 14 s exposures. Figure 6 shows ratios of the 14 s to 100 s count levels after applying CTE corrections of the forms in equations 5 and 6. The horizontal line in the figure is at a ratio of 0.14, which is what would be expected in the absence of CTE loss.
Fig. 6.— Ratio of counts from 14 s exposures to 100 s exposures, after applying CTE correction. The form of the CTE correction used in panels a–c fails to account for the change in CTE loss during readout, while that used in panels d–f account for this effect. The horizontal line is at 0.14, the expected ratio. The brightest stars (panels a and d) correspond to brightness levels of the calibration data used in this study (400 electrons and brighter in the short exposures). Note that CTE loss is overcorrected for the faintest stars when not accounting for CTE loss rate changes during readout.
As is clear from the figure, the form of the CTE correction that accounts for CTE loss during readout significantly reduces systematic errors in the correction. This also bolsters confidence that the CTE corrections presented in the next section are valid for stars significantly fainter than those used to compute the corrections themselves.
4. CTE CORRECTIONS
Guided by the analysis from the previous section, a solution was made for zero points and CTE corrections. Several fits were made, with variations on the form of the CTE correction. The form that produced the best fit to the data was
and
where BG is the background level, CTS is the star’s brightness, DATE is the observation date, and the left-hand sides are the magnitude loss per pixel read out in the x and y directions. Note that this form is not exactly that from equation 4, as the star’s brightness appears twice. However, as long as c10 is sufficiently small that changes to the star’s brightness during readout do not significantly affect the BG term, the solution in equation 6 can be used.
After obtaining the best fit to the CTE correction parameters (and zero point differences), the “standard” photometry was redetermined from the corrected WFPC2 data. The rationale is that 1184 WFPC2 data sets ought to produce photometry that is superior to that of the original calibration data. In addition, while the results from § 3.1 indicate that issues with the ground-based photometry (such as errors in color corrections) do not generate any significant error in the WFPC2 versus ground comparison, this will eliminate any chance that even a small error in the ground-based data would affect the measured CTE corrections.
The only negative aspect to this use of WFPC2-measured standard data to measure WFPC2 CTE losses is that the form of the CTE solution will implicitly become part of the standard photometry used to derive the CTE solution–a sort of circular logic. However, Figure 7 shows the original and updated CMDs, and it is clear that a huge improvement in the standard photometry was obtained by making this improvement without introducing biases. Were one to repeat this process–measure the CTE losses from the new standard photometry, determine yet newer standard photometry, redetermine the CTE losses, and so on the standard photometry would change by at most 1%, as shown in Figure 7d. Thus, the CTE solution recommended here is the one with a single iteration on the standard magnitudes. Naturally, the suggested zero points are based on the original ground-based standards.
Fig. 7.— Standard photometry used in determining CTE corrections. Panel (a) shows the original photometry of Walker (1994), transformed into F555W and F814W instrumental magnitudes. Panel (b) shows the values obtained from CTE-corrected WFPC2 photometry, and panel (c) shows the first two panels overplotted. Note that the sequences lie overlaid, indicating that no significant photometry biases are introduced by using the WFPC2 data for a subsequent CTE solution. Finally, panel (d) shows the values from CTE-corrected WFPC2 photometry, after four iterations of recomputing standard magnitudes. The largest magnitude difference between this and panel (b) is 0.01.
To verify that the recommended solution is truly the best fit, alternative solutions made the following modifications to the functional form:
| 1. | Adding a brightness dependence to the XCTE correction. This produced a null result (i.e., the dependency was zero to within the uncertainties). | ||||
| 2. | Using an exponential function of background (instead of a power law) in the XCTE correction. This produced a small degradation in the quality of the fit. Due to the small size of the XCTE correction, this is of minimal significance. | ||||
| 3. | Adopting a background dependence of the form in equation 2 (instead of that in equation 3). Due to the lack of high background observations of this field early in WFPC2’s lifetime, there was no statistical difference between the quality of the fits. It was therefore decided to adopt the form from equation 3, whose solution for early observations is in strong agreement with the CTE characterization of Holtzman et al. (1995a). | ||||
| 4. | Moving the count dependence also outside the brackets in equation 3. This was is the most common form in literature CTE corrections, including D00 and D02. This produced a significantly worse fit, and can be ruled out. | ||||
| 5. | Using a power law for the YCTE background dependence. This was also used in most literature corrections, including D00 and D02. This also produced a significantly worse fit, and can be ruled out. | ||||
The recipe for correcting CTE loss is as follows. Given a star brightness CTS, background level BG (both in electrons), observation date DATE (in MJD), and star position on the image X and Y, the following sequence of calculations will provide the XCTE and YCTE losses, both in magnitudes. 




Note that the offsets of 1 for lbg and 7 for lct were put in place for numerical stability, and do not affect the solution itself.
The zero points of the four primary filters (F439W, F555W, F675W, and F814W) were measured independently for each chip and gain setting (thus, a total of eight zero points per filter). For other filters, the relatively small number of available data sets required that their zero points be characterized with a single offset relative to the zero point of the nearest primary filter.
Zero points for both gain settings are provided in Tables 2 and 3. Instrumental magnitudes can be computed using
where the counts per second rate is measured within an aperture whose diameter is 1″.
The BVRI transformations of Holtzman et al. (1995b) have also been modified to account for the new zero points, and are provided in Table 4. (Note that the color terms have been adopted without modifications, and are reprinted here for convenience.) Standard BVRI magnitudes can be computed with the following equation:
For instances in which a single set of parameters does not describe the relation sufficiently well for all colors, the Cmin and Cmax columns of Table 4 show the color range for which the table row is valid. Again, the count rate is measured within an aperture whose diameter is 1″.
4.1. Verification
To verify the accuracy to which the data are being corrected, Figures 8, 9, and 10 show the YCTE residuals after zero point and CTE corrections have been applied. These plots are generated similarly to Figures 3–5, although larger data selections have been used.
Fig. 8.— Residual YCTE losses (measured minus fit), as a function of star brightness. The left panels (a–c) show three different data samples selected by background level; the data in the right panels (d–f) are selected by observation date.
Fig. 9.— Residual YCTE losses (measured minus fit), as a function of background level. The left panels (a–c) show three different data samples selected by star brightness; the data in the right panels (d–f) are selected by observation date.
Fig. 10.— Residual YCTE losses (measured minus fit), as a function of observation date. The left panels (a–c) show three different data samples selected by star brightness; the data in the right panels (d–f) are selected by background level.
With the possible exceptions of the background dependence for early observations (Figure 9d), no significant trends remain in the data. It should also be noted that the upward trend in Figure 9d is based on very little data; only 544 star measurements (of the 22,603 used for the data in this panel) had background levels of 20 or more electrons.
5. CONSEQUENCES OF THE NEW FORMULAE
Comparing the CTE corrections from this work with those of D02, the CTE corrections agree to within 0.02 mag for over 80% of the star measurements. Stars for which the current corrections are more than 0.02 mag larger fall primarily into two categories: bright stars on a bright background, and dim stars (brightnesses of a few hundred electrons) on backgrounds of a few electrons. Not surprisingly, stars for which the current corrections are more than 0.02 mag smaller also fall into two categories: bright stars on a low background (one electron or less), and dim stars on bright backgrounds.
The reason for the difference is the term allowing the background correction slope to change as a function of star brightness, which was not present in the D02 CTE equation. To verify that the new corrections indeed fit the data better, Figure 11 shows the residuals for both sets of CTE corrections, plotted versus the difference between the CTE corrections. The relation between CTE difference and residual is clear in Figure 11a, and in fact has a slope of one. Using the corrections from this article, no trend of residual as a function of CTE difference exists (Figure 11b).
Fig. 11.— A comparison of the D02 CTE corrections with those from this study. Residuals after applying the D02 CTE correction (left panel) and the CTE correction from this study (right panel) are plotted against difference between the two corrections. The lines in each panel show the best fit to the data.
Given that typical science exposures have background levels higher than is typical in calibration exposures, this result can have a significant effect on the analysis of WFPC2 data.
6. SUMMARY
The study presented here revisits the topic of WFPC2 charge transfer inefficiency, building on results of previous work (D00, D02). This examination is overdue, as the existing CTE characterizations are several years old and thus application to current WFPC2 observations requires significant extrapolation of the calibration data to the current epoch.
In addition to incorporation of more recent calibration data, several other enhancements were made over the previous work. Most significantly, it was seen that the effects of star brightness and background level cannot be treated independently. Making this assumption gave reasonable CTE corrections for stars whose brightness or background level was typical of calibration data. However, for higher background levels, the older CTE corrections will undercorrect bright stars and overcorrect faint stars. For bright stars, the resulting systematic error can significantly exceed the random error from photon noise.
Other significant changes from the earlier work include accounting for the change in CTE loss during readout, an improved functional form for the background dependence, and a count dependence that begins at zero at the beginning of the WFPC2 mission.
As additional calibration data become available, updated WFPC2 calibration data will be made available on the author’s website2.
Based on observations made with the NASA/ESA Hubble Space Telescope, obtained from the data archive at the Space Telescope Science Institute. Support for this work was provided by NASA through grant number AR-11244 from the Space Telescope Science Institute, which is operated by AURA, Inc., under NASA contract NAS 5-26555.
REFERENCES
- , & 2005, Instrument Science Report WFPC2 05-02
- , & 1998, Instrument Science Report WFPC2 98-02
- 2000a, PASP, 112, 1397 (D00)
- ——— 2000b, PASP, 112, 1383
- 2002, 2002 HST Calibration Workshop, ed. , , & , 301 (D02)
- , , , , et al.1995, PASP, 107, 156
- ——— 1995, PASP, 107, 1065
- , , & 2000, PASP, 112, 163
- 1998, PASP, 110, 1448
- 1994, PASP, 106, 828
- , & 1997, Instrument Science Report WFPC2 97-08
- 1998, Technical Instrument Report WFPC2 98-01
- , & 1997, Instrument Science Report WFPC2 02-03
- , , & 1999, PASP, 111, 1559














