Bias and dark calibration of ACS data

Similar documents
Post-Flash Calibration Darks for the Advanced Camera for Surveys Wide Field Channel (ACS/WFC)

Temperature Dependent Dark Reference Files: Linear Dark and Amplifier Glow Components

Determination of the STIS CCD Gain

A Test of non-standard Gain Settings for the NICMOS Detectors

WFC3 SMOV Program 11427: UVIS Channel Shutter Shading

WFC3 SMOV Proposal 11422/ 11529: UVIS SOFA and Lamp Checks

FLAT FIELDS FOR FILTER WHEEL OFFSET POSITIONS

WFC3/IR Channel Behavior: Dark Current, Bad Pixels, and Count Non-Linearity

STIS CCD Anneals. 1. Introduction. Instrument Science Report STIS Revision A

Use of the Shutter Blade Side A for UVIS Short Exposures

ACS/WFC: Differential CTE corrections for Photometry and Astrometry from non-drizzled images

New Bad Pixel Mask Reference Files for the Post-NCS Era

FLAT FIELD DETERMINATIONS USING AN ISOLATED POINT SOURCE

WFC3/IR Cycle 19 Bad Pixel Table Update

WFC3/UVIS TV3 Post-flash Results

WFC3 SMOV Program 11433: IR Internal Flat Field Observations

WFC3 UVIS Ground P-flats

WFC3 Thermal Vacuum Testing: UVIS Science Performance Monitor

New Bad Pixel Mask Reference Files for the Post-NCS Era

WFC3 Post-Flash Calibration

WFC3/IR Bad Pixel Table: Update Using Cycle 17 Data

Pixel History for Advanced Camera for Surveys Wide Field Channel

The NICMOS CALNICA and CALNICB Pipelines

Satellite Detection in Advanced Camera for Surveys/Wide Field Channel Images

Assessing ACS/WFC Sky Backgrounds

STIS CCD Saturation Effects

Cross-Talk in the ACS WFC Detectors. II: Using GAIN=2 to Minimize the Effect

Wavelength Calibration Accuracy of the First-Order CCD Modes Using the E1 Aperture

Overview of the WFC3 Cycle 17 Detector Monitoring Campaign

Processing ACA Monitor Window Data

WFC3 Thermal Vacuum Testing: UVIS Broadband Flat Fields

SPACE TELESCOPE SCIENCE INSTITUTE Operated for NASA by AURA

The IRAF Mosaic Data Reduction Package

WFC3 TV3 Testing: UVIS-1 Crosstalk

WFC3 Post-Observation Systems

Results of the Updated ACS/WFC Distortion Correction

WFPC2 Status and Plans

WFC3 TV3 Testing: IR Channel Nonlinearity Correction

UVIS 2.0: Chip-Dependent Flats

Sink Pixels and CTE in the WFC3/UVIS Detector

CCD reductions techniques

Anomalies and Artifacts of the WFC3 UVIS and IR Detectors: An Overview

This release contains deep Y-band images of the UDS field and the extracted source catalogue.

WFC3 TV2 Testing: UVIS Shutter Stability and Accuracy

Interpixel Capacitance in the IR Channel: Measurements Made On Orbit

SBC Dark and Cumulative Images

Update to the WFPC2 Instrument Handbook for Cycle 9

M67 Cluster Photometry

SBC Internal Lamp P-flat Monitoring

High Contrast Imaging using WFC3/IR

Flux Calibration Monitoring: WFC3/IR G102 and G141 Grisms

WFC3/UVIS Sky Backgrounds

NIRSpec Technical Note NTN / ESA-JWST-TN Authors: G. Giardino, S. Birkmann, M. Sirianni Date of Issue: 9 Nov Version: 1.

Baseline Tests for the Advanced Camera for Surveys Astronomer s Proposal Tool Exposure Time Calculator

Wide-field Infrared Survey Explorer (WISE)

No Evidence Found for WFC3/UVIS QE Overshoot

Abstract. The problem of cosmic ray ècrè removal is a general one plaguing spaceborne

Master sky images for the WFC3 G102 and G141 grisms

WFC Zeropoints at -80C

QC of temperature and pressure. classification fill DFO DB. process. associate trending

Software Tools for NICMOS

Photometric Aperture Corrections for the ACS/SBC

Photometry. Variable Star Photometry

The Noise about Noise

Padova and Asiago Observatories

FLATS: SBC INTERNAL LAMP P-FLAT

Temperature Reductions to Mitigate the WF4 Anomaly

PixInsight Workflow. Revision 1.2 March 2017

HST Mission - Standard Operations WFPC2 Reprocessing NICMOS Reprocessing

The 0.84 m Telescope OAN/SPM - BC, Mexico

Image Processing Tutorial Basic Concepts

saac ewton roup ed maging etector

2017 Update on the WFC3/UVIS Stability and Contamination Monitor

Global Erratum for Kepler Q0-Q17 & K2 C0-C5 Short-Cadence Data

COS: NUV and FUV Detector Flat Field Status

STIS CCD Performance after SM4:

DBSP Observing Manual

Dark current behavior in DSLR cameras

GPI INSTRUMENT PAGES

COS Near-UV Flat Fields and High S/N Determination from SMOV Data

4.5.1 Mirroring Gain/Offset Registers GPIO CMV Snapshot Control... 14

Processing of 24 Micron Image Data at the Spitzer Science Center

WFC3 TV2 Testing: UVIS Filtered Throughput

WFC3 TV2 Testing: UVIS-2 Amp B Anomaly

The Near Earth Object Surveillance Satellite: Mission status and CCD evolution after 18 months on-orbit

Wide Field Camera 3: Design, Status, and Calibration Plans

MAOP-702. CCD 47 Characterization

A repository of precision flatfields for high resolution MDI continuum data

Comparing Aperture Photometry Software Packages

New Exposure Time Calculator for NICMOS (imaging): Features, Testing and Recommendations

Errata to First Printing 1 2nd Edition of of The Handbook of Astronomical Image Processing

Astronomy 341 Fall 2012 Observational Astronomy Haverford College. CCD Terminology

Making a Panoramic Digital Image of the Entire Northern Sky

Flux Calibration of the ACS CCD Cameras III. Sensitivity Changes over Time

What an Observational Astronomer needs to know!

4k CCD Observers Software Observers manual for BOAO 4k CCD camera system Byeong-Gon Park KASI Optical Astronomy Division Fri. Oct. 28.

STScI/IDTL Near-IR Detector Simulations

NIRSpec Technical Note NTN Author(s): S. Birkmann Date of Issue: September 27, 2012 Version: 1.2

CCD User s Guide SBIG ST7E CCD camera and Macintosh ibook control computer with Meade flip mirror assembly mounted on LX200

Aligning and Drizzling WFPC2 Images

Transcription:

Bias and dark calibration of ACS data Max Mutchler, Marco Sirianni, Doug Van Orsow, and Adam Riess May 21, 2004 ABSTRACT We describe the routine production of the superbias and superdark reference files that are used to calibrate ACS science data in the pipeline (CALACS). These files are identified by the BIASFILE and DARKFILE keywords in the header of every ACS science image. We describe the primary bias and dark features contained in these files, and provide some guidance on how ACS users can produce even higher signal-to-noise calibrations for datasets with extraordinary calibration requirements (e.g. deep field observations). 1. Introduction The procedures used to produce bias and dark calibration reference files for the Advanced Camera for Surveys (ACS) were evolving from the pre-launch era through the first year in orbit. The initial set of reference files used by the ACS calibration pipeline (CALACS) were created by the ACS Instrument Definition Team using pre-flight data obtained during thermal vacuum testing. Shortly after ACS was installed during Hubble Servicing Mission 3B in March 2002, those pre-flight reference files were superseded by the first generation of inflight versions, using data from Servicing Mission Orbital Verification program 8947 (PI Clampin). Then, as the Cycle 11 routine monitoring program 9647 (PI Riess) began accumulating a critical mass of inflight bias and dark frames, we further modified our procedures to begin producing higher signal-to-noise reference files on a routine basis, for both the Wide Field Channel (WFC) and High Resolution Channel (HRC). Copyright 1999 The Association of Universities for Research in Astronomy, Inc. All Rights Reserved.

This report details the procedures we have been using since November 2002, at which time we also retroactively re-produced and re-delivered new reference files for all previous dates. So far, we have not encountered any serious problems with the bias and dark calibration of ACS data, so we do not expect to modify these procedures significantly again. However, this report provides some insight for anyone wishing to assess the quality of these calibration products. The software and procedures by which the ACS calibration pipeline (CALACS) uses bias and dark reference files to calibrate science data are described in the ACS Data Handbook (Mack et al. 2003). Our procedures strike a balance between quality and practicality: producing an adequate calibration in a reasonable amount of time (within 2-3 weeks of an observation). This is why we advise ACS users to retrieve (or re-retrieve) their data from the archive roughly 2-3 weeks after their observing program executes, or to re-retrieve any ACS data retrieved during the first year in orbit (2002), to ensure that the best calibration reference files have been applied. The rootname and use after date of every reference file we have produced is available via the web: http://www.stsci.edu/hst/acs/analysis/reference_files It is certainly possible to further improve upon these procedures for datasets with extraordinary calibration requirements, so in the Appendix we provide an example from the Ultra-Deep Field campaign, which could be repeated for any other dataset. 2. Data collection: CCD monitoring program For both the WFC and HRC, we obtain one bias frame per day at the default gain setting (gains 1 and 2, respectively), and another bias frame at a higher gain setting (gains 2 and 4, respectively). We obtain four 1000-second dark frames per day for both detectors, only at their default gain settings. Some additional bias and dark frames are also collected before and after all CCD annealing operations. Since 5 August 2002, the WFC and HRC dark exposures have been executing in auto-parallel with each other. This has eased the scheduling constraints -- the visits are now half of their former duration. So we now obtain all the frames more consistently each day, although some dark exposure times are now slightly less than 1000 seconds. The default WFC dark onboard compression has changed from 1.5 to 2.0, and then back to 1.8, where it has been since 1 Oct 2003. These changes were made as we tried to lower the data volume of flight calendars without introducing compression artifacts. In fact, faint features created by data loss (from compression) are evident in Figure 1, but these are not generally present. 2

3. Overview of reference file production With the goal of providing the best calibration within 2-3 weeks of any ACS observation, we produce bias and dark reference files in two-week batches. The dates are determined by the monthly (~26 day) annealing cycle. Each bi-week is either the first or last half of an anneal cycle. We produce weekly superbias reference files (the combination of seven daily bias frames), and daily superdark reference files. This is because the bias levels and features (e.g. bad columns) change more gradually than the dark features -- most notably the hot pixels. The dark reference files are actually hybrids made from two different superdarks. We combine the four daily dark frames into a daydark, and we combine all the dark frames from the bi-week (56 frames) into a basedark. By combining more frames, the basedark has less Poisson noise, but the daydarks contain the best snapshot of the hot pixel population on a given day. So for every day in the bi-week, we make a copy of the basedark and add any daydark pixels which are 5σ hotter than they are in the basedark. For example, if the daydarks have a mean dark current of 0.002 e/pix/sec with an rms of 0.003 e/pix/sec, then the hot pixel replacement threshold would be 0.002 + (5*0.003) = 0.017 e/pix/sec. Since we use the concurrent superbias to correct the daydarks and basedark, we would expect to see no bias features in either. However, a small bias offset is sometimes still visible among the WFC amplifier quadrants (see Figure 3). This residual bias offset results from small differences between the bias level in the leading physical overscan and the active area (Sirianni et al. 2002a). Such offsets are not constant, but show random variations on the order of few tenths of a DN. The accuracy of the bias level subtraction in a single quadrant is therefore limited by this random effect. We know, from dark frames acquired using only one amplifier to readout the entire CCD, that the dark current changes uniformly across the chip, without any discontinuity at the quadrant boundaries. We will therefore begin removing this bias artifact by adding 50% of the difference to the lower quadrant, and subtracting 50% from the higher quadrant. Figure 5 illustrates the correction. We will do this only for the amp-to-amp differences on each chip, not for any chipto-chip difference. We will only correct the basedark, and not the daydarks, since we only skim hot pixels from them using a high threshold. We will not perform this correction retroactively, so superdarks produced before mid-2004 may still exhibit this problem. However, this is not expected to be a crucial issue for the overall quality of calibrated science images, given that they themselves also suffer from the same random quadrant-toquadrant bias offsets. 3

Hot pixels are identified with flag 16 in the data quality (DQ) array of the reference dark, which propagates to the DQ array of the science data. However, our flagging threshold of 0.08 e/pix/sec is much higher than the hot pixel replacement threshold described above: about 25 times the daydark rms, or 50 times the rms of the resulting reference dark. This is roughly where the Poisson noise approaches the read noise. So the many warm pixels below this threshold are somewhat arbitrarily deemed to be correctable by the dark reference file, whereas the flagged hot pixels are deemed too noisy to be corrected. Some permanently hot pixels are identified with flag 64 in the bad pixel table (BPIXTAB), which also propagates to the DQ array of science data. These are hot pixels which survived the first four anneal cycles in 2002. However, we now have a much larger population of non-annealing hot pixels (which has grown particularly fast for WFC, see Riess 2002), and some of these pixels may have spontaneously annealed since mid-2002. Since our procedure identifies all hot pixels for a given day with flag 16, we advise ignoring flag 64. We plan to remove these obsolete flags from the bad pixel table, although the impact of their presence is minimal (merely redundant in most instances). We do not currently use the data quality (DQ) extension of the bias reference file to flag bias features (as we do for darks). The brightest features which were present in the first bias frames are identified with flag 128 in the bad pixel table (BPIXTAB). But bias levels vary, and bias features (e.g. bright columns) have continued to accumulate. While newer bias features are not flagged in the bad pixel table, our weekly superbiases adequately track and correct the changing bias levels and new bad columns. Pixels which were saturated in the first bias frames are also identified in the bad pixel table with flag 256. In the following tables, we present our procedures as a general algorithm. Some specific details are provided, but this report alone cannot provide all the technical details necessary to produce the reference files. Most of the procedures are embedded in software which requires internal computer accounts and training to utilize. However, this is not true of the production of special calibration files described in the Appendix, which involves only simple processing with generally-available tools. We utilize UNIX shell, Perl, IRAF, and Python/PyRAF scripts. These scripts use a combination of system commands, utilities, OPUS programs, and STSDAS programs to perform the necessary processing. So software installations and updates to any of these software systems can cause changes in the overall behavior and output of this process. 4

At the core of the process are the ACSsuperbias and ACSsuperdark IRAF scripts which were created by the ACS Instrument Definition Team (Sirianni et al. 2002b) to produce the initial set of reference files (equivalent to daydarks) using pre-flight data. These scripts utilize CALACS to combine the raw data and reject cosmic rays. We later created additional IRAF scripts to produce basedarks, add warm and hot pixels to them from daydarks, and flag the hot pixels, etc. More recently, a Python/PyRAF script called acspipe was created, based on a similar tool developed for making STIS reference files (Swam et al., 2002), to automate the initial (and most tedious) aspects of the procedure. This script exploits the process management and control features of the OPUS architecture, and the capabilities of PyRAF for running IRAF tasks in a Python environment, to automate the retrieval of raw calibration data from the archive, and produce the initial products -- the daydarks and weekly superbiases. The system awakens periodically to query the scheduling database tables for ACS anneal operations and the corresponding bias and dark frames scheduled in between them. It then retrieves the candidate exposures from the archive once they are ingested, processes a set of exposures into a reference file product, including updating the reference file header with history information describing the process. A quick visual inspection of the final products is usually enough for an experienced data analyst to assess the quality of the output reference files. Any significant deviations from the images and plots provided in Figures 1-7 would indicate a problem with the processing. With experience, we have become better prepared to identify, investigate, and deal with missing or corrupted data (scattered light, compression effects, etc.), which can adversely affect the final calibration products. Although the ACS detectors are quite stable and well-characterized, we continue to monitor for anomalies and investigate them. For example, one unforeseen anomaly was the appearance of scattered light in some of the dark frames used to calibrate data from the GOODS campaign in late 2003. In our investigation, we noticed previous (but much fainter) scattered light intrusions that went unnoticed, several of which seemed to occur just after CCD annealings. We realized that the CCD annealing procedure left no filters in the optical path (to allow heat to freely escape during the CCD cooldown). Although we were not certain that the path of the scattered light passed through the filter wheels, we changed our annealing procedure to conclude by rotating crossed filters (with overlapping filter transmission curves) into the optical path. Since this change, we have not observed any darks contaminated by scattered light. 5

4. Production details for superbias reference files Steps 1. Retrieve two weeks of bias frames. This step is performed automatically by acspipe. Notes for producing superbias reference files One bias frame is obtained daily at the default gain setting, and another at a higher gain setting for both WFC (gain 1 and 2) and HRC (gain 2 and 4). So for a given bi-week, 14 bias frames should be available for each detector/gain combination. De-archive the bias frames into separate directories, for example: > ls /theta/data7/acspipe/work bias_w1_10046_15_biwk2 bias_w2_10046_15_biwk2 bias_h2_10046_15_biwk2 bias_h4_10046_15_biwk2 2. Define the jref directory, start IRAF, and move to one of the data directories. This step is performed automatically by acspipe. > setenv jref /data/cdbs7/jref/ > cd iraf > cl cl> set jref = /data/cdbs7/jref/ cl> cd /theta/data7/acspipe/work/bias_w1_10046_15_biwk2 3. Make superbiases for each week. This step is performed automatically by acspipe. Make association tables and corresponding raw file lists of all the bias frames for each week (typically 7 frames), and run ACSsuperbias, for example: cl >ACSsuperbias hrc_rbia_list hrc_rbia.fits useafter="feb 07 2004 03:31:33" Repeat this step for the other gain setting, the other detector, and then the other week. 4. Deliver the superbiases to the Calibration Database System (CDBS). Set the PEDIGREE keyword to reflect the range of dates of the INFLIGHT data used to produce the reference file (the entire week). Set the USEAFTER keyword to the observation date and time (OBS-DATE and START-TIME) of the first bias frame used. Set the DESCRIP keyword to indicate who made the reference file, and which HST programs produced the input data: cl> hedit *_rbia.fits[0] PEDIGREE "INFLIGHT 07/02/2004 14/02/ 2004" cl> hedit 01_hrc_rbia.fits[0] USEAFTER "Feb 07 2004 03:31:33" cl> hedit 01_hrc_rbia.fits[0] DESCRIP Created by ACSREF pipeline from proposal(s) 10042/10059/10046 These keywords are automatically set by acspipe, so without any manual processing, the weekbiases are the reference files to be delivered to the CDBS to be used in the pipeline (see Cox & Tullos, 1997). 6

Steps 5. Monitor bias reference file features. Investigate any obvious anomalies. Notes for producing superbias reference files A quick visual inspection of the final products is usually enough for an experienced analyst to determine if the reference bias are of suitable quality. Any significant deviation from the images and plots in Figures 1 and 2 would indicate a problem with the processing. Investigate any new trends, features, or anomalies which affect the quality of the final reference darks. 6. Clean up. This ongoing process consumes a great deal of disk space and CPU time, so we delete all the expendable files once they have been delivered to the CDBS. We retain the directories and files that record how the reference files were produced, and which facilitate reproducing them or investigating anomalies. This might include association tables, lists, statistics, histograms, etc. WFC1 amp A WFC1 amp B WFC2 amp C WFC2 amp D Figure 1: ACS/WFC bias structure. To enhance the primary bias features, this is a combination of many weekly superbiases which has been binned and smoothed. The amplifier quadrants have noticeably different bias levels, and many bad columns are evident. There is a faint crosshatching feature which is likely a data compression artifact present in a subset of the superbiases combined here. Now that we have settled on the optimal compression factor, this artifact is not typically present in weekly superbiases. 7

WFC1 amp A WFC1 amp B CCD column WFC2 amp C WFC2 amp D Intensity Figure 2: These row-averaged plots quantify the bias structure evident in Figure 1, for the ACS/WFC chips. These profiles were made from a binned and smoothed version of a superbias, so the bright columns are suppressed to enhance the general bias level gradients and offsets among the four amplifier quadrants. 8

5. Production details for superdark reference files Steps 1. Retrieve two weeks of dark frames from the archive. This step is performed automatically by acspipe. Notes for producing superdark reference files For both WFC and HRC, four 1000-second dark frames are obtained daily, so 56 dark frames should be available bi-weekly. Each bi-week is either the first or last two weeks of an anneal cycle. Dearchive the data into separate directories, e.g.: > ls /theta/data7/acspipe/work dark_w1_10046_15_biwk2 dark_h2_10046_15_biwk2 > ls /data/theta7/acspipe/work/dark_w1_10046_15_biwk2/grp2 j8tncwejq_raw.fits j8tncxfcq_raw.fits j8tncyfpq_raw.fits j8tnczgeq_raw.fits 2. Make daydarks for each day. This step is performed automatically by acspipe. Make association tables and corresponding raw file lists for each day (4 dark frames): # Table forcalacs_asn.fits[1] Tue 11:07:00 27-Apr-2004 # row MEMNAME MEMTYPE MEMPRSNT # 1 j8tncwejq EXP-CR1 yes 2 j8tncxfcq EXP-CR1 yes 3 j8tncyfpq EXP-CR1 yes 4 j8tnczgeq EXP-CR1 yes 5 temp_superdark PROD-CR1 yes Run ACSsuperdark on all daydark associations, using the concurrent superbias created above: cl> ACSsuperdark flist acs_superdark.fits useafter="mar 18 2002 00:00:00" 3. Create a working directory, and copy the daydarks into it. Define the jref directory, and start IRAF. > cd /data/theta10/drk/wfc/apr04_base2 > cp dark_w1_10046_15_biwk2/*/*_superdark.fits. > setenv jref /data/cdbs7/jref/ > cd iraf > cl cl> set jref = /data/cdbs7/jref/ 4. Set up for producing a basedark. (*subasn.cl produces the *_asn.fits files) The dark frames have already been retrieved for the production of the daydarks. So the BIASFILE is already set to the concurrent superbias created above, and their association tables already exist, which we can simply merge together. But due to IRAF file processing limits, we need to make multiple basedark sub-association tables. We merge subsets of the daydark association tables into basedark sub-association tables, so that each sub-association samples the entire anneal cycle. Delete all but the last PROD-CR rows in each subassociation table. Ensure that each sub-association includes 26 or fewer dark frames, and that they each contain roughly the same number of dark frames. 9

Steps 5. Make the basedark. (*basedark.cl produces the *_bdrk.fits files) Notes for producing superdark reference files Run ACSsuperdark on the sub-associations: cl> ACSsuperdark 00_hrc_bdrk1_list 00_hrc_bdrk1.fits useafter="feb 07 2004 03:31:33" (repeat for other sub-associations) Combine the sub-basedarks with imcalc (take the average) to make the basedark. The following correction will be added soon, as for the UDF hyperdarks (see Appendix): Measure any residual bias level offsets between amps on each chip (i.e. amps AB and CD). Since we don t know which amp quadrant is correct, correct for the offset by adding 50% of the difference to one quadrant, and subtracting 50% of the difference from the other quadrant. See Figure 5. 6. Make the reference darks for each day of the week. (*refdark.cl produces the *_rdrk.fits files) Run the *refdark.cl script which compares each daydark to the basedark to add hot pixels to the reference dark (refdarks). Run iterstat on the basedark with 3 sigma clipping to determine the mean dark current and the standard deviation of the Poisson distribution (i.e. the rms of the non-hot pixels). cl> iterstat *bdrk.fits[sci,1] nsigrej=3 cl> imcalc 01_wfc_ddrk.fits,00_wfc_bdrk.fits 01_wfc_rdrk.fits "if abs(im1).ge. (abs(im2)+0.017) then im1 else im2" 7. Flag new hot pixels in the data quality (DQ) array of the reference darks. (*hotflag.cl populates the DQ array of the refdark) Make a DQ array where the value 16 is assigned to any pixels which are above the hot pixel threshold of 0.08 e/pix/sec, and copy the DQ array into the reference superdark: cl> imcalc 01_hrc_rdrk.fits[sci,1] 01_hrc_allhot_dq.fits "if im1.ge. 0.08 then 16. else 0" cl> imcopy 01_hrc_allhot_dq.fits[1] 01_hrc_rdrk.fits[dq,1][*,*] 8. Deliver the reference darks to the Calibration Database System (CDBS). Set the PEDIGREE keyword to reflect the range of dates of the INFLIGHT data used to produce the reference file (the entire bi-week). Set the USEAFTER keyword to the observation date and time (OBS-DATE and START-TIME) of the first dark frame used. Set the DESCRIP keyword to indicate who made the reference file, and which HST programs produced the input data: cl> hedit *_rdrk.fits[0] PEDIGREE "INFLIGHT 07/02/2004 14/02/ 2004" cl> hedit 01_hrc_rdrk.fits[0] USEAFTER "Feb 07 2004 03:31:33" cl> hedit 01_hrc_rdrk.fits[0] DESCRIP Created by ACSREF pipeline from proposal(s) 10042/10059/10046 These keywords are automatically set by acspipe in the daydarks, and they propagate to the reference darks. So the reference darks should be ready to be delivered to the CDBS (see Cox & Tullos, 1997). 10

Steps 9. Monitor dark features. Notes for producing superdark reference files A quick visual inspection of the final products is usually enough for an experienced analyst to determine if the reference darks are of suitable quality. Any significant deviation from the images and plots in Figures 3, 4, and 7 would indicate a problem with the processing. Investigate any new trends, features, or anomalies which affect the quality of the final reference darks. 10. Clean up. This ongoing process consumes a great deal of disk space and CPU time, so we delete all the expendable files once they have been delivered to the CDBS. We retain the directories and files that record how the reference files were produced, and which facilitate reproducing them or investigating anomalies. This might include association tables, lists, statistics, histograms, etc. Figure 3: ACS/WFC dark structure. To suppress the hot pixels (which are illustrated in Figure 5) and enhance the larger and fainter dark features, this is a combination of many basedarks, which has been binned and smoothed. A small bias offset is visible between the amplifier quadrants. 11

e/pix/sec WFC2 WFC1 CCD row Figure 4: ACS/WFC dark structure profile. This column-averaged plot quantifies the features evident in Figure 3: the two bright horizontal bands in the WFC2 chip, the bright edges, and the general gradient, which is not quite continuous across the interchip gap (center). 12

WFC1 amp A WFC1 amp B e/pix/sec e/pix/sec WFC2 amp C WFC2 amp D Figure 5: An example of residual amp-to-amp quadrant bias offsets on both WFC chips: before (above) and after (below) correction. This was the correction made for one of the UDF hyperdarks (see Appendix). We will soon begin correcting routine basedarks in the same manner. 13

1e+06 g 100000 10000 log (pixels) 1000 September 2003 100 March 2002 10 1-0.02 0 0.02 0.04 0.06 0.08 0.1 dark current (e/sec) Figure 6: The growth of hot pixels in ACS. These overlayed histograms show the WFC chip 2 dark current histograms at launch (March 2002) and 18 months later (September 2003). The mean dark current (peak of the Poisson distribution, about 0.003 e/pix/sec) appears to have increased slightly. But the warm and hot pixel population has grown dramatically. 14

log (pixels) dark current (e/pix/sec) Figure 7: Overlayed histograms of the various HRC superdarks: the basedark (green), and daydark (red), which are used to make a reference dark (blue). The basedark provides the normal pixels (below ~0.02 e/pix/sec) with less Poisson noise than the daydark (rms 0.0026 vs 0.0037 e/pix/sec). The daydark provides all the warm and hot pixels present on a particular day. The hot pixels (above 0.08 e/pix/sec) are identified with flag 16 in the data quality (DQ) array of the reference dark. 15

Appendix: Production of hyperdark reference files for the UDF The Hubble Ultra-Deep Field campaign produced data which benefits significantly from calibration with higher signal-to-noise superdarks than the standard product described above. See the UDF web page for background: http://www.stsci.edu/hst/udf Instead of using a 2-week basedark, a hyperdark was produced by median-combining the previous 6 months of basedarks (includes ~700 individual dark frames). Initially, an 18-month hyperdark (combining all available basedarks since launch) with an rms of 0.0008 e/pix/sec was created, but we found that the faint dark structure (seen in Figure 3) does change a bit over that interval. So for both UDF epochs, a 6-month hyperdark was created using only the most recent basedarks. They represented the concurrent state of the faint dark structure better, with an acceptable increase in the rms to 0.0010 e/pix/sec (see Figure 8). We similarly experimented with producing a superbias made from 3 months of bias frames (rather than one week), but ultimately, the standard weekly superbias reference files were used. The amp-to-amp residual bias offset between quadrants in the hyperdarks was corrected (which we will soon begin to do for the routine basedarks) by adding 50% of the difference to the lower quadrant, and subtracting the same amount from the higher quadrant on both chips (see Figure 5). No chip-to-chip correction was performed. Since the hyperdark spans many anneal cycles, the addition of hot pixels was a two-part process. Both the daydarks and basedark (with a lower replacement threshold) were used to identify which pixels were warm and hot on each day of the UDF campaign. Hot pixels above 0.08 e/pix/sec were identified with flag 16 in the data quality array, as for standard superdarks. But for extra processing leverage, warm pixels in the range 0.02 to 0.08 e/pix/ sec were also identified with the unused flag 8, and negative pixels below -0.007 e/pix/sec were identified with the unused flag 2048. We can provide guidance to any ACS users interested in producing similar hyperdark reference files for the calibration of their science data. Send inquiries to help@stsci.edu. 16

log (pixels) dark current (e/pix/sec) Figure 8: Overlayed histograms of a daydark (blue), a 2-week basedark (green), a 6- month hyperdark (black), and the resulting reference dark (red). The reference dark has the lower Poisson noise of the hyperdark (rms ~0.001 e/pix/sec), with warm and hot pixels added from both the basedark and daydark. 17

Acknowledgements We thank Warren Hack, Rosa Diaz-Miller, Linda Dressel, and Paul Goudfrooij for helpful input during the development of these procedures. A special thanks to Mike Swam for creating the acspipe script that has made the routine production of ACS reference files much easier. References Cox & Tullos, 1997, Delivering calibration reference files, Technical Instrument Report OSG-CAL-97-02 Mack et al., 2003, ACS Data Handbook, version 2.0, (Baltimore: STScI) http://www.stsci.edu/hst/acs/documents/ Riess, 2002, The Projected Growth of Hot Pixels on ACS WFC, ACS Instrument Science Report 02-09 http://www.stsci.edu/hst/acs/documents/isrs/isr0209.pdf Sirianni et al., 2002a, "Bias Subtraction and Correction of ACS/WFC Frames, HST Calibration Workshop, STScI, page 82 http://www.stsci.edu/hst/hst_overview/documents/calworkshop/workshop2002/ CW2002_TableOfContents/ Sirianni et al., 2002b, Characterization and Performance of ACS CCDs, in Future and UV Visible Space Astrophysics Missions and Instrumentation, eds. Blades & Siegmund, Proc. SPIE, Vol. 4854, 496 http://acs.pha.jhu.edu/instrument/papers/sirianni-spie0802.pdf Swam, Goudfrooij, & Diaz-Miller, 2002, in ASP Conf. Ser., Vol. 281, Astronomical Data Analysis Software and Systems XI, eds. Bohlender, Durand, & Handley (San Fransisco: ASP), 277. http://adass.org/adass/proceedings/adass01/ 18