[Top] [Prev] [Next] [Bottom]

26.4 Post-Pipeline Calibration

The calibrated individual images produced by the standard pipeline processing are, in most respects, as good as our knowledge of the instrument can make them. The usefulness of post-pipeline calibration is in general limited to two areas: improving the correction of pixels with elevated dark current (warm pixels), which are known to vary with time; and removing cosmic rays by comparing multiple images of the same field.


The treatment of warm pixels and cosmic rays can be quite different in the case of dithered data. This case is discussed in "Dithering" on page 28-19; the present discussion refers to co-aligned data only.

26.4.1 Warm Pixels

Figure 26.4 shows a section of a PC image of a stellar field. Cosmic rays have been removed through comparison of successive images. Nonetheless, individual bright pixels are clearly visible throughout the field.

Figure 26.4: PC Image of Stellar Field Showing Warm Pixels

These bright pixels are warm pixels, or pixels with an elevated dark current. The vast majority of WFPC2 pixels have a total dark current of about 0.005 e-/s-1 (including the dark glow, discussed in "Dark Glow" on page 27-4). However, at any given time there are a few thousand pixels in each CCD, called warm pixels, with a dark current more than 0.02 e-/s-1, up to several e-/s-1 in a few cases (see Figure 26.5). Some of these pixels are permanently warm, but most become warm during the course of the month, probably as a consequence of the on-orbit bombardment by heavy nuclei. STIS, the other instrument currently aboard HST that uses CCDs, exhibits a similar behavior. Most warm pixels return to normal after the CCDs are brought to room temperature for a few hours.

To repair warm pixels we run monthly decontaminations, in which the instrument warms up to about 22 C for a period of six hours. (Longer decontaminations do not appear to improve the fraction of pixels fixed.) Decontaminations are also needed to let UV-blocking contaminants that build up on the CCD windows evaporate, thus temporarily restoring the UV throughput of the camera. For more detailed information, see the WFPC2 Instrument Handbook.

Because of the time variability of warm pixels, standard dark correction does not deal with them adequately. Even dark frames taken within a day of the observation will contain some warm pixels that vary significantly from those in the observation. We have developed a task, known as warmpix, that will allow a user to either flag, or attempt to correct, pixels which are known to be warm, or which have varied near the time of the observation.

Will Warm Pixels Hurt my Science?

The impact of warm pixels on the scientific results obtained from WFPC2 images depends on a number of factors: the exposure length, the number of objects, and the science goals. If the principal goal of the program is to acquire morphological information on well-resolved targets, warm pixels are usually not a serious concern, as they are easily recognizable. If the goal is accurate photometry of point sources, the probability that uncorrected warm pixels will influence the measurement at a given level can be computed on the basis of the distribution of warm pixels (Figure 26.5). In general, warm pixels are a concern in two cases: accurate photometry of faint sources in crowded fields, where warm pixels can easily be confused with cores of faint sources, or aperture photometry with very large apertures and/or of extended objects. In the latter case, warm pixels cause a positive tail in the count distribution that is not included in the background determination, but-depending on the software used-could be included in the integrated source flux, which will then be positively biased.

Figure 26.5: Distribution of Dark Current for Warm Pixels

Can Warm Pixels be Corrected?

There are two levels of possible correction for warm pixels. The first is to identify and flag the warm pixels. Depending on the software used, the flagged pixels can either be ignored (PSF fitting software generally allows this) or be interpolated from nearby pixels (for software that requires a valid value for all pixels, such as most aperture photometry tasks). The identification of warm pixels can be accomplished by taking advantage of the fact that they are the only WFPC2 feature to extend across only one pixel; both cosmic rays and photons, in the form of point sources, involve more than one pixel. The IRAF task cosmicrays, written originally to remove single-pixel cosmic rays in ground-based data, has been used with some success to identify warm pixels in WFPC2 data. Identification of warm pixels is also possible using information from dark frames taken before and after the observations were executed, as described below.

The second level is to attempt subtraction of the dark current that existed at the time of the observations. This has the advantage that the information that exists in the measured signal in the pixel is retained, but it requires independent timely information on the dark current. WFPC2 takes several darks every week, thus information on warm pixels is available with a time resolution of about one week. While the user can in principle retrieve and process the darks taken at the time of observation, we provide a task and a set of tables to facilitate this process. The task is called warmpix and is part of the standard STSDAS release; the tables, in IRAF table format, are made available via the STScI Web pages at URL:

http://www.stsci.edu/ftp/instrument_news/WFPC2/
wfpc2_warmpix.html
In order to use warmpix to identify or correct WFPC2 observations for the effect of warm pixels, perform the following steps:


These tables are in Unix-compressed format. On some systems, the retrieved table will not have the .Z extension, but they still need to be renamed to add the .Z extension and uncompressed by the Unix task uncompress. Please contact the Help Desk at help@stsci.edu if you have a non-Unix system or if you encounter difficulties in retrieving the tables.


Non-STSDAS tasks generally ignore the data quality files, and thus may not properly use the information indicating which pixels need to be rejected. Users should propagate this information by the appropriate method, which will depend on the specifics of the task.

26.4.2 Removing Cosmic Rays from Co-aligned Images

WFPC2 images typically contain a large number of cosmic ray events, which are caused by the interaction of galactic cosmic rays and protons from the Earth's radiation belt with the CCD. Hits occur at an average rate of about 1.8 events s-1 per CCD (1.2 s-1 cm-2), with an overall variation in rate of 60% (peak-to-peak) depending upon geomagnetic latitude and position with respect to the South Atlantic Anomaly (see also the WFPC2 Instrument Handbook, v. 4.0, pages 74-79).

Unlike events seen on the ground, most WFPC2 cosmic ray events deposit a significant amount of charge in several pixels; the average number of pixels affected is 6, with a peak signal of 1500 e- per pixel and a few tens of e- per pixel at the edges. About 3% of the pixels, or 20,000 pixels per CCD, will be affected by cosmic rays in a long exposure (1800 s). Figure 26.6 shows the impact of cosmic rays in an 800 second exposure with WFPC2. The area shown is about 1/16th of one chip (a 200 x 200 region); pixels affected by cosmic rays are shown in black and unaffected pixels are shown in white. A typical long WFPC2 exposure (2000 s) would have about 2.5 times as many pixels corrupted by cosmic rays.

Cosmic rays are noticeable even for very short exposures. The WFPC2 electronics allow activities to be started only at one-minute intervals; thus a minimum-length exposure will collect at least one minute's worth of cosmic rays, the interval between camera reset and readout, and will be affected by about a hundred cosmic rays per CCD.

As a result of the undersampling of the WFPC2 PSF by the WF and PC pixels, it is very difficult to differentiate stars from cosmic rays using a single exposure. If multiple co-aligned images are available, cosmic rays can be removed simply and reliably by comparing the flux in the same pixel in different images, assuming that any differences well above the noise are positive deviations due to cosmic rays. STSDAS tasks such as crrej and gcombine can identify and correct pixels affected by cosmic rays in such images. (The task crrej has been significantly improved since the previous edition of the HST Data Handbook and is now the recommended choice.) If the images are shifted by an integral number of pixels, they can be realigned using a task such as imshift. As each CCD is oriented differently on the sky, this operation will need to be done on one group at a time, using the pixel shift appropriate for each CCD in turn.

Another consequence of the undersampling of WFPC2 is that small pointing shifts will cause measurable differences even between images at the same nominal pointing. These differences are especially noticeable in PC images, where pointing offsets of only 10 mas can cause a difference between successive images of 10% or more near the edges of stellar PSFs. We recommend that users allow for such differences by using the multiplicative noise term included in the noise model of the task used for cosmic ray rejection (scalenoise for crrej and snoise for gcombine). For typical pointing uncertainties, a multiplicative noise of 10% is adequate; note this is specified as 10 for scalenoise, and 0.1 for snoise. It is also strongly recommended that an image mask be generated for each image, to verify if there is an undue concentration of cosmic rays identified near point sources-usually an indication that the cores of point sources are mistaken for cosmic rays. Detailed explanations of crrej and gcombine can be found in the on-line help.

Figure 26.6: WF Exposure Showing Pixels Affected by Cosmic Rays

Because sub-pixel dithering strategies are now very common, the image combination tasks in the drizzle package (see "Dithering" on page 28-19) now include a script that can remove cosmic rays from images taken at multiple pointings, without repetitions.

How many Images for Proper CR Rejection?

Cosmic rays are so numerous on WFPC2 images that double hits are not uncommon. For example, the combination of two 2000 s images will typically contain about 500 pixels per CCD that are affected by cosmic rays in both images; in most of these cases, the hit will be marginal in one of the two images. If the science goals require a high level of cosmic ray rejection, it will be desirable to conduct a more stringent test in pixels adjacent to detected cosmic rays (see the parameter radius in crrej). Even better would be, in the planning stage, to break the observation into more than two exposures; the WFPC2 Exposure Time Calculator gives specific recommendations on the number of exposures necessary as a function of the number of pixels lost. In general, three exposures are sufficient for non-stringent programs, and four exposures for any program. The Exposure Time Calculator is available via the WWW at:

http://www.stsci.edu/ftp/instrument_news/WFPC2/Wfpc2_etc/
wfpc2-etc.html

26.4.3 Charge Traps

There are about 30 pixels in WFPC2 which do not transfer charge efficiently during readout, producing artifacts that are often quite noticeable. Typically, charge is delayed into successive pixels, producing a streak above the defective pixel. In the worst cases, the entire column above the pixel can be rendered useless. On blank sky, these traps will tend to produce a dark streak. However, when a bright object, or cosmic ray, is read through them, a bright streak will follow the object. Figure 26.7 shows examples of both of these effects. (Note that these "macroscopic" charge traps are different from the much smaller traps believed to be responsible for the charge transfer effect discussed under "Charge Transfer Efficiency" on page 28-11.)

The images in Figure 26.7 show streaks (a) in the background sky and, (b) stellar images produced by charge traps in the WFPC2. Individual traps have been cataloged and their identifying numbers are shown.

Figure 26.7: Streaks in a) Background Sky, and b) Stars

Bright tails have been measured on images taken both before and after the April 23, 1994 cool down. The behavior of the traps has been quite constant with time, and fortunately there is no evidence for the formation of new traps since the ground system testing in May 1993. The charge delay in each of the traps is well characterized by a simple exponential decay which varies in strength and spatial scale from trap to trap.

The positions of the traps, as well as those of pixels immediately above the traps, are marked in the .c1h data quality files with the value of 2, indicating a chip defect. These pixels will be obviously defective even in images of sources of uniform surface brightness. However, after August 1995 the entire column above traps has been flagged with the value of 256, which indicates a "Questionable Pixel." An object with sharp features (such as a star) will leave a trail should it fall on any of these pixels.

In cases where a bright streak is produced by a cosmic ray, standard cosmic ray removal techniques will typically remove the streak along with the cosmic ray. However, in cases where an object of interest has been affected the user must be more careful. While standard techniques such as wfixup will interpolate across affected pixels and produce an acceptable cosmetic result, interpolation can bias both photometry and astrometry. In cases where accurate reconstruction of the true image is important, modelling of the charge transfer is required. For further information on charge traps, including the measured parameters of the larger traps, users should consult WFPC2 ISR 95-02, available on the WFPC2 web pages.



[Top] [Prev] [Next] [Bottom]

stevens@stsci.edu
Copyright © 1997, Association of Universities for Research in Astronomy. All rights reserved. Last updated: 11/13/97 17:52:14