|Space Telescope Science Institute|
|WFC3 Data Handbook v. 3.0|
All WFC3 science data products are two-dimensional images that are stored in Multi-Extension FITS files, which can be manipulated directly in the STSDAS environment in either PyRAF or IRAF. The structure of these data products is based on the ACS, NICMOS, and STIS file format. All images taken during an exposure are bundled in a single FITS file, with each image stored in a separate FITS image extension (see Section 2.2 of the Introduction to the HST Data Handbooks). The WFC3 file structure differs for UVIS and IR data, as explained in the following sections.The WFC3 UVIS detector is similar in structure to the ACS WFC detector, with two chips butted together to form a complete detector array. As shown in Figure 2.1, each chip has 4096 x 2051 imaging pixels, with 19 rows and 30 columns of virtual overscan at the long and short inside edges respectively, and 25 columns of physical overscan on each side. As a result, full-frame raw images have a total of 4206 x 4140 pixels, and after overscan subtraction in the calibration process, calibrated images have a total of 4096 x 4102 pixels.Figure 2.1: Schematic of a raw, full-frame WFC3 UVIS image.The UVIS detector operates only in ACCUM mode to produce time-integrated images. As with the ACS WFC, the data read from the two chips are stored in separate image sets, or "imsets" (see Section 2.2 of the Introduction to the HST Data Handbooks) within a single FITS file. Each imset contains three data arrays that are stored in three separate image extensions:For a single full-frame UVIS exposure, this results in a FITS file containing the following: the global or primary header unit, and 6 image extensions, 3 for each imset corresponding to each of the chips of the detector. As seen in Figure 2.1 CHIP1 (UVIS1) is above CHIP2 (UVIS2) in y-pixel coordinates, but it is stored in imset 2 in the FITS file, shown graphically in Figure 2.2. Thus, the chip-extension notation is counterintuitive. To display the science image for CHIP1, the user must specify the second science extension "file.fits[sci,2]". Similarly, the data quality and error arrays for CHIP1 are specified as "[dq,2]" and "[err,2]", respectively. Note that subarray UVIS readouts contain only 3 data arrays, because the data come from only one chip.Figure 2.2: Format for WFC3 UVIS data. Note that for UVIS data, UVIS1 (CHIP1) corresponds to extension [sci,2].The WFC3 IR channel uses a 1024 x 1024 pixel detector. Reference (bias) pixels occupy the 5 rows and columns on each side of the detector, thus yielding bias-trimmed images with dimensions of 1014 x 1014 pixels, as shown in Figure 2.3.Like NICMOS, the IR channel operates only in MULTIACCUM mode, which starts an exposure by resetting all the detector pixels to their bias levels and recording those levels in an initial "zeroth" readout. This is then followed by n non-destructive readouts (n can be up to 15 and is set by the observer as parameter NSAMP in the Phase II proposal); the data associated with each readout are stored in a separate imset in the FITS file.Figure 2.3: Format of a raw full detector WFC3 IR image.An IR FITS file will therefore contain: the primary header unit and N imsets, which all together form a single IR exposure. The primary header keyword NSAMP records the total number of readouts worth of data contained in the file. Note that the value of NSAMP keyword is increased by 1 relative to proposal parameter NSAMP, because it counts the zeroth read.
Also note that the order of the IR imsets in the FITS file is in reverse time order. The first imset in the file contains the result of the longest integration time (the last readout of the MULTIACCUM series). This is followed by the next-to-last readout and so on. The imset for the zeroth readout is stored last in the FITS file. This file organization has the advantage of placing the final readout first in the file, where it is easiest to access. This organization is shown graphically in Figure 2.4Figure 2.4: Format for WFC3 IR data. Note that for IR data, readouts are stored in reverse chronological order.The following sections explain the contents and origin of each of the individual arrays for WFC3 data products.This image contains the data from the focal plane array (FPA) detectors. In raw data files, the science array is an integer (16-bit) image in units of data numbers, or DN. In calibrated data files, it is a floating-point value image in physical units of electrons (UVIS) or electrons per second (IR).This is a floating-point image that contains an estimate of the statistical uncertainty associated with each corresponding science image pixel. It is expressed as a real number of signal units or signal rates (as appropriate for the units of the science image). The values for this array are calculated during calibration with the calwf3 task, combining detector read noise, Poisson noise in the detected signal, and uncertainties from applied calibration reference data.This array contains 16 independent flags indicating various status and problem conditions associated with each corresponding pixel in the science image. Each flag has a true (set) or false (unset) state and is encoded as a bit in a 16-bit integer word. Users are advised that this word should not be interpreted as a simple integer, but must be converted to base-2 and each bit interpreted as a flag. Table 2.5 lists the WFC3 data quality flags.
Warning. In raw data files, the ERR and DQ arrays will usually have the value of zero for all pixels, unless, for the DQ array, errors are detected in the down linked data. In order to reduce data volume, and, if no errors exist, both ERR and DQ extensions will contain null data arrays with PIXVALUE equal to zero.
Table 2.5: WFC3 Data Quality flags. This array is present only for IR data. It is a 16-bit integer array and contains the number of samples used to derive the corresponding pixel values in the science image. For raw and intermediate data files, the sample values are set to the number of readouts that contributed to the science image. For calibrated files, the SAMP array contains the total number of valid samples used to compute the final science image pixel value, obtained by combining the data from all the readouts and rejecting cosmic ray hits and saturated pixels. Similarly, when multiple exposures (i.e., REPEAT-OBS) are combined to produce a single image, the SAMP array contains the total number of samples retained at each pixel for all the exposures.This array is present only for IR data. This is a floating-point array that contains the effective integration time associated with each corresponding science image pixel value. For raw and intermediate data files, the time value is the total integration time of data that contributed to the science image. For calibrated datasets, the TIME array contains the combined exposure time of the valid readouts or exposures that were used to compute the final science image pixel value, after rejection of cosmic rays and saturated pixels from the intermediate data.
In raw and intermediate data files, the SAMP and TIME arrays will each have the same value for all pixels. In order to reduce data volume, these image extensions contain null arrays, and the value of the number of samples and integration time is stored in the header keyword PIXVALUE in the SAMP and TIME extensions, respectively.