1. Overview
IRAC as designed relied heavily on it's shutter for calibration. In regards to darks, the shutter was used to seal off the inside of IRAC so that the arrays could not see the sky (or any other light source). Images were then taken which would be used as the calibration for the IRAC bias and dark current response. In this respect the data reduction for IRAC would most strongly resemble the methods used for optical CCD data.
Due to the decision not to use the shutter in flight, such data will now never be taken. IRAC will always be exposed to the sky, and hence all IRAC images will contain flux from the diffuse celestial background (such as zodiacal light) as well as compact objects such as stars and galaxies. As a result, we will now turn to a data reduction method that more strongly resembles traditional ground-based data reduction techniques for infrared data.
"Dark Sky" images will be taken in pre-determined regions which have been specifically chosen to be the darkest parts of the sky and relatively free of bright objects such as stars. Just as when we had the shutter, we will take these darks using all the modes and exposure times of IRAC. This data will be combined into "sky darks" using outlier rejection which will include single-frame object detection and flagging.
These sky darks will be subtracted from all the data in the same fashion that the shutter-based darks would have been. Since the sky darks contain any additive term from the bias or dark current, these are subtracted out from the data. This is nearly the same as how "median sky subtraction" is done for ground-based data. Because this naturally oversubtracts the real data, we will include an estimate of the sky brightness (based on a model) in the header for later use by the science thread, which will try to add this back as a constant.
Another change is that the data will now be taken using AORs instead of IERs. On the one hand this should simplify processing because each AOR will use only a single exposure time, unlike the IERs where any number of modes could have been mixed together. On the other hand, this also means that something will have to set the pipeline script number, since now all calibration data will look like science data.
2. Detailed Description Of Thread
The following are the detailed steps to be taken in the thread. For each incoming DCE the following steps will be performed. They closely resemble the current processing. I have left out modules that do not yet exist, like the first-frame effect correction module.
Then, once all the data in an AOR for a given channel has been processed in this fashion,
A few extra notes:
3. Demonstration of Prototype Thread
A prototype of this thread was created using the actual S6 pipeline modules and a pair of CSH wrappers. The first csh wrapper is called iracdarkprep.csh and it performs all of the initial steps needed to make the linearized data and the object masks. The other wrapper is called iracdark.csh. It scans the current directory for data, repeatedly calls iracdarkprep, and then runs FLATFIELD to make the dark.
Input data for this test was generated with the IRAC Science Data Simulator (ISDS). The science truth image was a model of the zodiacal background scaled to the "low" level described in the PICD. The background objects are based on the SWIRE extragalactic model. This is basically the same model used in previous tests. Here, a new simulator version was used. Relevant changes for this version include a crude first-frame effect model that inputs a fluctuating bias and a more complete cosmic ray model. Also, a different dither strategy was used. The dither strategy and times were selected to allow for good dithering with a sufficient number of frames for object rejection. There were 9 mapping positions arranged in a 3x3 grid with 100" throws. The large cycling dither pattern with 3 dither positions was used, giving a total of 27 pointings per channel. Exposure times were 100 seconds in this case. Total AOR time was one hour, which is roughly the optimal number derived previously given a 3-hour flat observation (which is required to meet the 1% accuracy requirement). The raw data is shown in figure 1.
Figure 2 illustrates a single DCE passing through the thread. Basic data reduction steps are taken, a mask is generated, and then all the data is combined. The final combined sky darks are shown in figure 3. Note that the sky darks don't actually resemble the "darks" as we know them. This is because they are dominated by the term which comes from the sky background multiplied by the flat-field. Because a lab dark was subtracted from all the data, these sky darks actually contain a dark term which is the delta from the lab dark.
| Fig.1 - Raw simulated data of a low zodiacal background region. Channels 1 and 2 are at top, and 3 and 4 are at bottom. | ![]() |
| Raw channel 1 image. | ![]() |
| INSBPOSDOM | ![]() |
| CVTI2R4 - conversion to floating point | ![]() |
| IRACWRAPCORR - wraparound correction | ![]() |
| IRACWRAPNORM - fowler-sampling and barrel-shift correction. | ![]() |
| EBWC - not applied to this channel | ![]() |
| Subtraction of lab dark. | ![]() |
| FOWLINEARIZE - linearization. This frame is saved for the image combination step. | ![]() |
| Division by existing flat field. This is used to improve the object detection in the next step. The flat-field does not figure into the dark solution. | ![]() |
| DETECT - object detection. | ![]() |
| FLATFIELD - combination of linearized frames using object masks. Output is in DN and should be used for any other frames with this exposure time. | ![]() |
| Fig.3 - Derived "sky" darks for all channels. The sky darks are dominated by signature of the bright sky multiplied by the flat-field. | |||
![]() | ![]() | ![]() | ![]() |
| Channel 1 | Channel 2 | Channel 3 | Channel 4 |