--- abstract: 'The Blanco Cosmology Survey (BCS) is a 60 night imaging survey of $\sim$80 deg$^2$ of the southern sky located in two fields: ($\alpha$,$\delta$)= (5 hr, $-55^{\circ}$) and (23 hr, $-55^{\circ}$). The survey was carried out between 2005 and 2008 in $griz$ bands with the Mosaic2 imager on the Blanco 4m telescope. The primary aim of the BCS survey is to provide the data required to optically confirm and measure photometric redshifts for Sunyaev-Zel'dovich effect selected galaxy clusters from the South Pole Telescope and the Atacama Cosmology Telescope. We process and calibrate the BCS data, carrying out PSF corrected model fitting photometry for all detected objects. The median 10$\sigma$ galaxy (point source) depths over the survey in $griz$ are approximately 23.3 (23.9), 23.4 (24.0), 23.0 (23.6) and 21.3 (22.1), respectively. The astrometric accuracy relative to the USNO-B survey is $\sim45$ milli-arcsec. We calibrate our absolute photometry using the stellar locus in $grizJ$ bands, and thus our absolute photometric scale derives from 2MASS which has $\sim2$% accuracy. The scatter of stars about the stellar locus indicates a systematics floor in the relative stellar photometric scatter in $griz$ that is $\sim$1.9%, $\sim$2.2%, $\sim$2.7% and$\sim$2.7%, respectively. A simple cut in the <span>*AstrOmatic*</span> star-galaxy classifier <span>spread\_model</span> produces a star sample with good spatial uniformity. We use the resulting photometric catalogs to calibrate photometric redshifts for the survey and demonstrate scatter $\delta z/(1+z)=0.054$ with an outlier fraction $\eta<5$% to $z\sim1$. We highlight some selected science results to date and provide a full description of the released data products.' author: - 'S. Desai, R. Armstrong, J.J. Mohr, D.R. Semler, J. Liu, E. Bertin, S.S. Allam, W.A. Barkhouse, G. Bazin, E. J. Buckley-Geer, M.C. Cooper, S.M. Hansen, F.W. High, H. Lin,, Y.-T. Lin, C.-C. Ngeow, A. Rest, J. Song, D. Tucker, A. Zenteno' bibliography: - 'spt.bib' - 'paper.bib' title: | The Blanco Cosmology Survey: Data Acquisition, Processing, Calibration,\ Quality Diagnostics and Data Release --- Introduction {#sec:intro} ============ Since the discovery of cosmic acceleration at the end of the last millenium [@schmidt98; @perlmutter99a], understanding the underlying causes has remained as one of the key mysteries in modern astrophysics. As the most massive collapsed structures in the universe, galaxy cluster populations and their evolution with redshift provide a powerful probe of, for example, the dark energy equation of state parameter as well as alternate gravity theories which mimic cosmic acceleration [@wang98; @haiman01; @holder01b]. Evolution of the cluster abundance depends on a combination of the angular-diameter distance vs. redshift relation and the growth rate of density perturbations. This sensitivity enables one to constrain a range of cosmological parameters, including the matter density, the sum of the neutrino masses [@numass], the present day amplitude of density fluctuations, and the presence of primordial non-Gaussianity in the initial density fluctuations [@dalal08; @cunha10]. In addition, galaxy clusters provide an ideal laboratory to study galaxy evolution [e.g. @dressler80]. Interesting studies of the galaxy properties and their evolution within clusters include studies of the blue fraction and the halo occupation distribution [e.g. @butcher84; @lin03b; @lin04b; @lin06; @hansen09; @zenteno11]. The first large scale attempt to identify and catalog galaxy clusters was by Abell in 1958. He discovered galaxy clusters by looking for over-densities of galaxies in Palomar Observatory photographic plates within a radius of about 2.1 Mpc around a given cluster position [@abell58]. Abell's catalogs contained about 4700 clusters [@abell89]. However Abell's catalog suffered from incompleteness and contamination from projection effects as well as human bias [@Biviano2008]. With the advent of CCD cameras one could apply objective automated algorithms to look for galaxy clusters, and this has led to significant progress in cosmological as well astrophysical studies using galaxy clusters. In the last decade, many optical photometric surveys such as SDSS, CFHTLS, RCS covering contiguous regions of the sky have discovered several new galaxy clusters spanning a broad range of masses and redshifts. The CFHTLS-W [@Adami2009] has observed about 171 deg$^2$ in $griz$ bands with 80 % completeness up to $i$ band magnitude of 23. The RCS-2 [@gilbank11] survey has covered approximately 1000 deg$^2$ in $grz$ bands with 10$\sigma$ magnitude depths of around 23.55 in $r$-band. The SDSS MaxBCG catalog [@Koester2007] has covered about 7,500 deg$^2$ in $ugriz$ bands and with 10 $\sigma$ $r$ band magnitude limits of about 22.35. The largest optical galaxy cluster survey in terms of area is the Northern Sky Optical Cluster Survey III which has imaged about 11,400 deg$^2$ up to a redshift of about 0.25 [@Gal09]. The deepest optical cluster survey to date is the CFHTLS-D survey [@Adami2009], which reaches 80 % completeness for $i$ band magnitudes of 26 and has detected clusters up to redshift of 1.5. Two upcoming photometric galaxy cluster surveys which will start around October 2012 include DES which will cover about 5,000 deg$^2$ in $grizY$ bands with 10 $\sigma$ $r$-band limiting magnitudes of 24.8, and KIDS [@dejong12] which will cover 1,500 deg$^2$ in $ugri$ bands with 10$\sigma$ $r$-band limiting magnitude of 24.45. One can use such surveys for cosmological studies using galaxy clusters. For example, @gladders07 showed that a large optical galaxy cluster survey could constrain cosmological parameters using the self-calibration method [@majumdar03; @majumdar04]. First cosmological constraints using SDSS optical catalogs are described in @rozo10. Over the last decade there have been several mm-wave cluster studies in the Southern Hemisphere, including ACBAR [@acbar], ACT [@act2004], APEX [@apex2010] and SPT [@ruhl04]. All these projects have attempted to carry out galaxy cluster surveys using the Sunyaev-Zel'dovich effect (SZE). The SZE is the distortion of cosmic microwave background spectrum due to inverse Compton scattering of CMB photons by hot electrons in galaxy clusters [@sunyaev72], and it provides a promising way to discover galaxy clusters. Because the surface brightness of the SZE signature of a particular cluster is independent of redshift, SZE survey cluster samples can in principle have sensitivity over a broad range of redshifts [@birkinshaw99; @carlstrom02]. However, to make use of SZE selected galaxy cluster samples, one needs a well-understood selection of galaxy clusters (sample contamination and completeness), cluster redshift estimates and a link between SZE signature and the cluster halo masses. It is important to note that redshift estimates cannot be obtained using SZ experiments alone, and so one needs dedicated optical surveys to follow up these galaxy clusters detected by SZ surveys. The Blanco Cosmology Survey (BCS) is an optical photometric survey which was designed for this purpose and positioned to overlap the ACBAR, ACT, APEX and SPT surveys in the southern hemisphere. The goal of BCS is to enable cluster cosmology by providing the data to confirm galaxy clusters from the above surveys and to measure their photometric redshifts. This was done by surveying two patches totalling $\sim$80 deg$^2$ positioned so that they could be observed with good efficiency over the full night during the period October – December from Chile. The BCS observing strategy was chosen to obtain depths roughly two magnitudes deeper than SDSS, so that one could estimate photometric redshifts for $L \geq L_{*}$ galaxies out to a redshift $z=1$. The outline of this paper is as follows: Sect. \[sec:bcssurvey\] describes the Blanco Cosmology Survey, including the camera, observing strategy and site characteristics. In Sect. \[sec:processing\] we describe in detail the processing and calibration of the dataset using the Dark Energy Survey Data Management System. In Sect. \[sec:bcsdata\], we describe the photometric characteristics of the BCS dataset and present single galaxy photometric redshifts that are tuned using fields containing large numbers of spectroscopic redshifts. In this paper all magnitudes refer to AB magnitudes. ![BCS survey footprint of coadded tiles in the 5 hr and 23 hr fields. There are 104 tiles covering $\sim$35 deg$^2$ in the 23 hr field and 138 tiles covering $\sim$45 deg$^2$ in the 5 hr field for a total coverage of $\sim$80 deg$^2$. The black vertically hatched boxes represent tiles which have passed our quality checks. The red horizontally hatched boxes represent tiles with some data quality problems that we have not corrected.<span data-label="fig:bcscoverage"></span>](5hr.png "fig:"){width="49.00000%"} -0.10in ![BCS survey footprint of coadded tiles in the 5 hr and 23 hr fields. There are 104 tiles covering $\sim$35 deg$^2$ in the 23 hr field and 138 tiles covering $\sim$45 deg$^2$ in the 5 hr field for a total coverage of $\sim$80 deg$^2$. The black vertically hatched boxes represent tiles which have passed our quality checks. The red horizontally hatched boxes represent tiles with some data quality problems that we have not corrected.<span data-label="fig:bcscoverage"></span>](23hr.png "fig:"){width="49.00000%"} BCS survey {#sec:bcssurvey} ========== Blanco Cosmology Survey was a NOAO Large Survey project (2005B-0043, PI: Joseph Mohr) which was awarded 60 nights between 2005 (starting from semester 2005B) and 2008 on the Cerro Tololo Inter American Observatory (CTIO) Blanco 4 m telescope using the Mosaic2 imager with $griz$ bands. Because of shared nights with other programs, the data acquisition included 69 nights, and the final processed dataset only consists of 66 nights, because two nights were entirely clouded out and the pointing solution for one night (20071105) was wrong due to observer error. We now describe the Mosaic2 imager on the Blanco telescope and then discuss the BCS observing strategy. Mosaic2 Imager -------------- The Mosaic2 imager is a prime focus camera on the Blanco 4m telescope that contains eight $2048\times4096$ CCD detectors. The 8 SITe $2\mathrm{K}\times4\mathrm{K}$ CCDs are read out in dual-amplifier mode, where different halves of each CCD are read out in parallel through separate amplifiers. The CCDs are read out through a single amplifier per chip simultaneously to 8 controller inputs. Read noise is about $6-8$ electrons and readout time is about 110 seconds. The dark current rate is less than 1 electron/pixel/hour at $90$ K. The resulting mosaic array is a square of about 5 inches on an edge. The gaps between CCDs are kept to about 0.7 mm in the row direction and 0.5 mm in the column direction. Given the fast optics at the prime focus on the Blanco, the pixels subtend $0.27''$ on the sky. Total field of view is 36.8 arc-minute on a side for a total solid angle per exposure of $\sim$0.4 deg$^2$. More details on the Mosaic2 imager can be found in the online CTIO documentation[^1]. Field selection and multi-wavelength coverage --------------------------------------------- The survey was divided into two fields to allow efficient use of the allocated nights between October and December. Both fields lie near $\delta = -55^{\circ}$ which allows for overlap with the SPT and other mm-wave surveys. One field is centered near $\alpha = 23.5$ hr and the other is at $\alpha$ = 5.5 hr. The 5 hr 30 min $-52^{\circ}$ patch consists of a $12\times11$ array of Blanco pointings and the 23 hr $-55^{\circ}$ patch is a $10\times10$ array of pointings. The 5 hr field lies within the Boomerang field where the ACBAR experiment took data. The 23 hr field has been observed by the APEX, ACT and SPT experiments. In addition to the large science fields, BCS also covers nine small fields that overlap large spectroscopic surveys so that photometric redshifts using BCS data can be trained and tested using a sample of over 5,000 galaxies with spectroscopic redshifts. BCS also surveyed standard star fields for photometric calibration. The coverage of BCS in 5 hr and 23 hr fields is shown in Figs \[fig:bcscoverage\]. For convenience of data processing and building catalogs, we divide the survey region into $36' \times 36'$ square regions called tiles. Each tile is a $8192\times8192$ pixel portion of a tangent plane projection. These tiles are set on a grid of point separated by $34'$, allowing for approximately $1'$ overlaps of sky between neighboring tiles. The black vertical hatches in Fig. \[fig:bcscoverage\] indicate locations of tiles which passed various quality checks. The red horizontal hatches indicate locations of tiles which were observed and processed, but failed data quality checks. We also secured other multi-wavelength observations overlapping parts of the BCS fields. About 14 deg$^2$ of the 23 hr BCS field was surveyed using <span>*XMM-Newton*</span> (known as XMM-BCS survey) and results from those observations are reported elsewhere [@suhada12]. An $\sim$12 deg$^2$ region of the same field was also targeted in a <span>*Spitzer*</span> survey (S-BCS). More recently, the <span>*XMM-Newton*</span> survey has been expanded to 25 deg$^2$, and the <span>*Spitzer*</span> survey has been expanded to 100 deg$^2$. Most of the BCS region has been observed in the near-infrared as part of the the ESO VISTA survey program [@VISTA2011]. ![Redshift evolution of a passively evolving $L_{*}$ galaxy along with target 10$\sigma$ photometric BCS depths in each band. The exposure times in each band were tuned so that photometric depth meets or exceeds $L_{*}$ out to the redshift where the 4000Åbreak shifts out of that band, but also limited to $z=1$ due to the low sensitivity of the Mosaic2 camera in the $z$-band.<span data-label="bcsdepth"></span>](limitingmag.png){width="49.00000%"} Observing Strategy ------------------ The BCS observing strategy was designed to allow us to accurately measure cluster photometric redshifts out to redshift $z=1$. Because the 4000Å break is redshifting out to 8000Å by $z=1$, obtaining reliable photo-z's for $0< z<1$ requires all four photometric bands $g$, $r$, $i$, $z$ (i.e. one loses all clusters at $z<0.4$ if you drop $g$-band and with $z$-band we can actually push beyond $z=1$). The redshift at which the 4000Å break redshifts beyond a particular band sets, crudely speaking, the maximum redshift for which that band is useful for cluster photo-z's; for $griz$ this is $z=0.35$, 0.7, 1.0 and 1.4, respectively. Because the central wavelength of the g-band is about 4800Å with a FWHM of 1537Å we start losing sensitivity to very low redshift clusters, because it is not possible to straddle the 4000Å break. Although detailed studies of the sensitivity of optical cluster detection at low redshifts have not been done, our ability to estimate unbiased red sequence redshifts for clusters is reduced below redshifts $z\sim0.1$ . We calculate our photometric limits in each band by requiring that the depth allows us to probe at least to $L_*$ at that maximum redshift with 10$\sigma$ photometry. We use a Bruzual and Charlot $z=3$ single burst model with passive evolution [@bruzual03] to calculate the evolution of $L_*$ in the four bands (see Fig. \[bcsdepth\]). We select our $z$ depth to probe to $L_*$ at $z=1$ rather than at $z=1.4$, because of the low sensitivity of the Mosaic2 detectors in the $z$-band. The survey was designed to reach 10$\sigma$ photometric limits within a 2.2 arcsec aperture of $g=24.0$, $r=23.9$, $i=23.6$ and $z=22.3$. These limits assume an airmass of 1.3 and $0.9''$ median seeing for all bands. Assuming bright time for $z$ and $i$ and dark time for $g$ and $r$ these limits require exposures of 250 s, 600 s, 1400 s and 700 s in $griz$, respectively. In all, we observed about 288 tiles spanning our survey fields. For each field we typically took 2 exposures in $g$ of 125 secs each, 2 exposures in $r$ of 300s each, 3 exposures in $i$ of 450s each and three exposures in $z$ of 235 seconds each. A limitation of the Mosaic2 detector is a very low saturation of around 25,000 ADU for most of the detectors, and this forced us to take short exposures even through the readout time for each was quite high. Neighboring pointings have small overlaps, but multiple exposures were offset by approximately half the width of an amplifier to help us tie the survey together photometrically. Having two shifted exposures allows us to largely overcome the gaps in our survey left by spaces between neighboring chips. In addition to this primary survey tiling, we also constructed another layer of tilings which was designed to sit at the vertices of unique groups of four adjacent primary pointings. These tiles were observed using shorter exposures during poor seeing conditions on photometric nights. The 110 s readout of the Mosaic2 camera makes the efficiency of short exposures low, and so in each band we have chosen the minimum number of exposures allowable given the sky brightness. The total exposure per tile is 3000 s and after including the readout time, the total observation time per science field is about 4200 s, giving us an overall efficiency of about 70%. The dome flats and bias frames were taken in the afternoon, and we did not take any twilight flats. Over the course of the survey we acquired just over 3000 science exposures and an additional 455 photometric overlap exposures. In addition to science exposures, on photometric nights we also observed photometric calibration fields as well as fields for calibrating our photo-z algorithms. These fields were CNOC2, DEEP, CFRS, CDFS, SSA22 and VVDS fields. For the photometric calibration fields we typically observed two or three fields during evening and morning twilight and a single field during the transition from the 23 hr field to the 5 hr 30 min field. We observed in all four bands during these calibration exposures. The spectroscopic standard fields were observed to full science depth using the same strategy as for the full survey. ![Sky brightness distributions for all four bands averaged on a per exposure basis during the BCS survey. Typically we observed in $g$ and $r$ during dark time and $i$ and $z$ during bright time. The brightness valuesare peaked at around 22.5, 21.5, 20.5, and 18.75 mag/arcsec$^2$ in $griz$ bands, respectively.<span data-label="skybrightness"></span>](skybriteness.png){width="49.00000%"} Site Characteristics -------------------- The BCS survey provides a sampling of the CTIO site characteristics over a 69 night period in the October to December timeframe over four observing seasons. Because this is the same timeframe planned for DES observations this provides an interesting glimpse into the expected site characteristics for DES. Given that the entire Mosaic2 camera and wide field corrector are being replaced by DECam and the new DECam wide field corrector [@decam], the seeing distribution for the DES data could be significantly improved relative to the BCS seeing distribution. The seeing distribution is shown in top panel of Fig. \[targetpsf\]. The seeing was obtained by running <span>PSFEX</span> software on all single-epoch images and using the <span>FWHM\_MEAN</span> parameter. The <span>FWHM\_MEAN</span> is derived from elliptical Moffat fits to the non-parametric PSF models. These FWHMs include the pixel footprint. The modal seeing values integrated over the survey are $\simeq 1'$, $0.95'$, $0.8'$, $0.95'$ for $griz$ bands, respectively. The median seeing values are 1.07, 0.99, 0.95, and 0.95 arcseconds, while the upper and lower quartile seeing values are \[0.96, 1.26\], \[0.89, 1.16\], \[0.84, 1.13\], \[0.83, 1.11\] arcseconds respectively. The sky brightness is shown in Fig. \[skybrightness\]. The sky brightness is calculated using $ZP- 2.5\log{B}$, where $ZP$ is the calculated zeropoint for that image and B is the sky brightness in ADU/arcsec$^{2}$. The sky brightness distributions in the $griz$ bands have modal values of approximately 22.5, 21.5, 20.5 and 18.75 mag/arcsec$^2$, respectively. Moreover, almost all $i$ and $z$ band data were taken with the moon up, while almost all $g$ and $r$ band data were taken with the moon set. The median values are 22.3, 21.3, 20.3 and 18.7 mag/arcsec$^2$, respectively. Given the division of the survey into a 23 hr and a 5 hr field, it was possible to obtain most of the data at relatively low airmass. Fig. \[airmassfig\] shows the airmass distributions for each band during primary survey observations. We often obtained photometric calibration field observations over a broader range of airmasses, but we tried to restrict our primary survey observations to air masses of $<$ 1.6. The median air mass in bands $griz$ are 1.144, 1.147, 1.138 and 1.141 respectively. ![The airmass distributions for BCS exposures, color coded by band and normalized by total number of exposures. The peak airmass values in $griz$ bands are 1.144, 1.147, 1.138 and 1.141 respectively.<span data-label="airmassfig"></span>](bcsairmass.png){width="49.00000%"} Data Processing and Calibration {#sec:processing} =============================== The processing of BCS data is carried out using the automated Dark Energy Survey data management (DESDM) system which has been under development since Fall 2005 at University of Illinois [@ngeow06; @mohr08]. DESDM will be used to process, calibrate and store data from the Dark Energy Survey once it begins operations in October 2012. Since 2005, the DESDM system has been validated through a series of data challenges with simulated DECam data, which enabled us to improve various steps of the pipeline. The same automated pipeline was used to analyze BCS data. The only addition/change to the DESDM pipeline to analyze BCS data was in the crosstalk correction code, for which the routine had to be customized for the Mosaic2 camera. Processing of the BCS data presented here has been carried out on National Teragrid resources at NCSA and LONI supercomputers together with dedicated workstations needed for orchestrating the jobs and hosting the database. The middleware for the data reduction pipeline is designed using Condor batch processing system. Each night takes about 300 CPU hours for processing. We have processed BCS data multiple times in a process of discovery where we found problems with the data that required changes to our system. Scientific results from earlier rounds of processing of BCS data have already appeared, including the optical confirmation of the first ever SZE selected galaxy clusters [@staniszewski09] and the discovery of strong gravitational lensing arc using data from the firstå round of processing in Spring 2008 [@buckleygeer11]. Additional galaxy cluster science arising from subsequent rounds of BCS processing have also been published [@high10; @zenteno11; @suhada12]. Currently our latest processing is being used for additional SZE cluster science within SPT, continued studies of the X-BCS region, and for the followup of the broader XMM-XXL survey over the 23 hr field. The BCS data were made public one year after their acquisition, as is standard pamela41@example.net. This has enabled multiple independent teams to access the data and use it for their own scientific aims. The first three seasons of BCS data were processed using an independent pipeline developed at Rutgers University [@menanteau10; @menanteau09a]. All four seasons of BCS data have also been processed independently using NOAO pipeline as part of the current automated processing program, and with the <span>PHOTPIPE</span> analysis pipeline [@rest05a]. Detrending {#sec:detrending} ---------- In this section we describe in detail the key steps involved in the DESDM pipeline used for reduction of Mosaic2 data to convert raw data products to science ready catalogs and images. Data from every night are processed through a nightly processing or detrending pipeline. Then data from different nights in the same part of the sky are combined using the co-addition pipeline. The detrending pipeline briefly consists of crosstalk corrections, overscan, flatfield, bias and illumination correction, astrometric calibration and cataloging. We now describe in detail each step of the detrending pipeline. ### Crosstalk Corrections A common feature of multi-CCD cameras, such as Mosaic2 imager, is crosstalk among the signals from otherwise independent amplifiers or CCDs. This leads to a CCD image containing not only the flux distribution that it collected from the sky, but also a low amplitude version of the sky flux distributions that appear in other CCDs. The crosstalk correction equation is described by: $$I_{i} = \sum_{j=1}^N \alpha_{ij} I_\mathrm{raw}^{j} ;$$ where $I_i$ denotes the crosstalk corrected image pixel value in $i^\mathrm{th}$ CCD, $\alpha_{ij}$ denote the cross-talk coefficients and $I_\mathrm{raw}^{j}$ is the raw image pixel value. We used cross-talk coefficients provided by NOAO through the survey. As part of the crosstalk-correction stage, the raw image (which contains 16 extensions) is split into one single-extension file per CCD. The processing and calibration of CCD mosaics can proceed independently for each CCD after the crosstalk correction, and therefore we split the images to enable efficient staging of the data to the compute resources. ### Image Detrending Detrending is the process that removes the instrumental signatures from the images. Detrending, in this context, includes overscan correction, bias subtraction, flat fielding, pixel-scale correction, fringe and illumination correction. Both the overscan correction and bias correction are required to remove the bias level present in the CCD and any residual, recurrent structure in the DC bias. Overscan correction is done for all raw science and calibration images. We subtract the median pixel value in the overscan region in each row for both the amplifiers in each CCD from the raw image pixel values after the crosstalk correction stage. The median bias frame is created using nightly bias frames taken during the late afternoon, and subtracted from the nightly data. The flat field correction is typically derived from dome flats taken for each observing band. The input dome flat images are overscan corrected, bias corrected, and then scaled to a common mode and then median combined. The resulting flat field correction is scaled by the inverse of the image mode, creating a correction with mean value of about unity. For the bias correction and the flat correction the variation among the input images is used to create an inverse variance weight map that is stored as a second extension in the correction images. The creation of correction images also requires a bad pixel map, which is an image where pixels with poor response or with high dark current are masked and excluded from the images. These bad pixel maps are created initially using bias correction and flat field correction images to identify the troublesome pixels. The bias and flat field corrections are then applied to the science images to remove pixel to pixel sensitivity variations. These corrections are only applied to those science pixels that are not masked. In this process, each science image receives an associated inverse variance weight map that encodes the Poisson noise levels and Gaussian propagated noise from each correction step on a per pixel basis. In addition, each science image has an associated bad pixel map (short integer) where a bit is assigned to each type of masking (i.e. pixels masked from the original bad pixel map, or masked due to saturation, cosmic ray, etc). In our data model the science image has three extensions: image, weight map, bad pixel map. Each measured flux at the pixel level comes along with its statistical weight and a history of any masking that has been done on that pixel. For the Mosaic2 imager which has significant focal plane distortion, the pixel scale varies significantly over the field, leading to a significant trend in delivered pixel brightness as a function of position even with a flat input sky. For such detectors flattening the sky introduces a photometric non-flatness to the focal plane. Typically this pixel scale variation is corrected during the process of remapping to a portion of a tangent plane, but in our case we prefer to do the single epoch cataloging on images that do not suffer from correlated noise. Therefore, we apply a pixel scale correction to account for variation of pixel response as a function of $x$ and $y$ position for each CCD. We first created master template images to determine photometric flatness corrections using astrometrically refined images from the Mosaic2 camera that we use to calculate the solid angle of each pixel. The correction image is then normalized by the median value, providing a flat field like correction image that can be used to bring all pixels to a uniform flux sensitivity. To avoid reintroducing trends in the sky with this correction, we apply this correction only to the values of each pixel after subtraction of the modal sky value. Effectively, this correction scales only source flux while maintaining a flat sky. Illumination and fringe corrections are derived from fully processed science observations in a particular band. These can be from a single night or shared across nights. Usually if there was only one exposure from a given band in a night we use science observations from neighbouring nights to create the illumination and fringe correction images. Illumination corrections are done for all images, but fringe corrections on the Mosaic2 camera are needed only for $i$ and $z$ bands. To create these correction images, we first create sky flat templates. This requires a process of stacking all the detrended images in a band-CCD combination after first flagging all pixels contaminated by source flux. Source contaminated pixels are determined by applying a simple threshold above background with a variable grow radius so that all neighboring pixels of a pixel determined to contain source flux are also masked. Modal sky values are then calculated for each image using pixels that are not flagged for any reason (object pixels, hot column, saturated, interpolated, etc). The reduced images are then scaled to a common modal sky value, median combined and then rescaled to a unit modal value. This science sky image then contains a combination of any illumination and fringe signatures that are common to the input images. To create the illumination correction we adaptively smooth the science sky images with a kernel that is large in the center and grows smaller near the edges. This effectively averages out the effects of any fringing, leaving an illumination correction image behind. The fringe correction is then produced by first differencing the science sky image and the illumination correction image, leaving behind an image of the small scale structure (i.e. fringe signature) that is common to all the science images. This fringe correction image is then scaled by the model value of the science flat image to produce a fractional fringe correction image. The illumination correction image is applied like a flat field correction to all previously corrected images, thereby removing any trends that are introduced by the differences in illumination of the dome flats and the flat sky. The fringe correction is applied by first scaling the correction image by the modal value of the sky in the science image and then subtracting it. The results of these two corrections are visually very impressive. The fringe effects in $i$ and $z$ band are nicely removed in almost all cases. We have found some problem images where the fringe correction leaves clearly visible fringe signatures, and these are cases where only a few frames in $i$ or $z$ were taken on a particular night, and the use of images from neighboring nights to create the corrections was not adequate. We expect that the residual scatter we measure could be further reduced using a star flat technique to better characterize the non-uniformities in the pupil ghost. Nevertheless, the delivered data quality from our current flattening prescription produces data that meet our data quality requirements. We note that the same prescription has been used previously to meet the data quality requirements of the SuperMACHO experiment in the processing of Mosaic2 data. At the end of this series of image detrending steps which includes overscan, bias, flat-field, pixel-scale, illumination and fringe corrections, the pipeline creates eight images (one for each CCD) for every science exposure. These single epoch image FITS files are called <span>*red*</span> images, and they contain 3 extensions: the main image, a bad pixel mask (BPM) and an inverse variance weight image. The BPM contains a short integer image where any unusable pixels have non-zero values (coded according to the source of the problem). The weight-map is an inverse variance image map that tracks the noise on the pixel scale and where the weight is set to zero for all masked pixels. ![Distortion map produced by <span>SCAMP</span> for one Mosaic2 exposure consisting of 8 images. TPV distortion model was used. The Mosaic2 distortions were modelled for each CCD by expressing distortions along the RA and DEC direction each with a third order polynomial in CCD $x$ and $y$.<span data-label="scampdistortion"></span>](mosaicdistortion.png){width="49.00000%"} ### Astrometric Calibration Besides pointing errors, wide-field imagers exhibit instrumental distortions that generally deviate significantly from those of a pure tangential projection. In addition, the vertical gradient of atmospheric refractivity creates a small image flattening of the order of a few hundredths of a percent (corresponding to a few pixels on a large mosaic), with direction and amplitude depending on the direction of the pointing. These three contributions are modeled in the <span>SCAMP</span> [@bertin06] package that we use for astrometric calibration. <span>SCAMP</span> uses the TPV distortion model[^2], which maps detector coordinates to true tangent plane coordinates using a polynomial expansion. <span>SCAMP</span> is normally meant to be run on a large set of <span>SExtractor</span> catalogs extracted from overlapping exposures together with a reference catalog, in order to derive a global solution. However, since our pipeline operates on an image-by-image basis, we proceed in two steps: we first run <span>SCAMP</span> once on a small subset of catalogs extracted from BCS mosaic images to derive an accurate polynomial model of the distortions where the distortions in RA/DEC tangential plane are expressed as a third degree polynomial function of the CCD $x$/$y$ position. This Mosaic2 distortion map modeled using a third order polynomial per CCD for a BCS exposure is shown in Fig. \[scampdistortion\]. The astrometric solution computed in this first step of calibration is based on a set of overlapping catalogs from dithered exposures which provides tighter constraints on non-linear distortion terms (than catalogs taken individually). Using this model, we create a distortion catalog that encodes the fixed distortion pattern of the detector. We then run <span>SCAMP</span> on catalogs from each individual exposure (i.e. the union of the catalogs from each of the eight single epoch detrended images), allowing only linear terms (two for small position offsets and four for the linear distortion matrix) describing the whole focal plane to vary from exposure to exposure. The solutions for the World Coordinate System (WCS) including the TPV model parameters are then inserted back into image headers. This approach capitalizes on the expected constancy of the instrumental distortions over time. ![Median value of the difference in RA and DEC for objects in BCS coadd catalogs vs USNOB catalog for every tile in arcsecs. The matching is done in a $2''$ window. The histograms are peaked at $\sim0.0104''$ and $0.0084''$ in $\Delta$-RA and $\Delta$-DEC respectively. The rms of the histograms in RA and DEC is about 0.047 and 0.045 arcsecs. Note that the intrinsic accuracy of the USNOB catalog is about 0.2 arcsecs [@monet03].<span data-label="scampqa"></span>](bcsastrometry.png){width="49.00000%"} We use the USNO-B1 [@monet03] catalog as the astrometric reference. For astrometric refinement, the cataloging is done using <span>SExtractor</span>, and using WINdowed barycenters to estimate the positions of sources. The astrometric accuracy is quite good, as can be demonstrated with the BCS coadds. First, the accuracy is at the level of a fraction of a PSF or else significant PSF distortions would appear in the coadds, and this is not the case. Second, we can measure the absolute accuracy relative to the calibrating catalog USNOB by probing for systematic offsets in RA or DEC between our object catalogs and those from the calibration source. Fig. \[scampqa\] shows the distribution of median offsets within all the coadd tiles for both RA and DEC. The mean of the histograms is $0.0104''$ in RA and $0.0084''$ in DEC, and the corresponding rms scatter is 47 milli-arcsec and 45 milli-arcsec, respectively. The USNOB catalog itself has an absolute accuracy with characteristic uncertainty of 200 milli-arcseconds [@monet03], which then clearly dominates the astrometric uncertainty of our final catalogs. ### Single-Epoch Cataloging To catalog all objects from single-epoch images we run <span>SExtractor</span> using PSF modeling and model-fitting photometry. A PSF model is derived for each CCD image using the <span>PSFEx</span> package [@bertin11]. PSF variations within the each CCD are modeled as a $N^\mathrm{th}$ degree polynomial expansion in CCD coordinates. For our application we adopt a $26\times26$ pixel kernel and follow variations to 3$^\mathrm{rd}$ order. An example of variation of the Full-Width at Half Maximum (FWHM) of the PSF model across a single-epoch image is shown in Fig. \[fig:psfvariationsingle\]. The FWHM varies at the 10% level across this CCD due to both instrumental and integrated atmospheric effects. A new version of <span>SExtractor</span> (version 2.14.2) uses this PSF model to carry out PSF corrected model fitting photometry over each image. The code proceeds by fitting a PSF model and a galaxy model to every source in the image. The two-dimensional modeling uses a weighted $\chi^2$ that captures the goodness of fit between the observed flux distribution and the model and iterates to a minimum. The resulting model parameters are stored and "asymptotic" magnitude estimates are extracted by integrating over these models. This code has been extensively tested within the DESDM program on simulated images, but the BCS data provide the first large scale real world test. For the BCS application we adopt a Sérsic profile galaxy model that has an ellipticity and orientation. This model fitting is computationally intensive and slows the "lightning-fast" <span>SExtractor</span> down to a rate on the order of 10 objects/s on a single core. The <span>SExtractor</span> config file detection parameters are shown in Table \[tab:sex\]. ![Variation of the PSF model FWHM for $g$-band across a single-epoch image from the BCS night 20061030. Variations across the roughly $10'\times20'$ image are at the 10% level.<span data-label="fig:psfvariationsingle"></span>](fwhm_BCS2326-5341Az_061031_0239_084_04_psfcat.png){width="49.00000%"} The advantages of model fitting photometry on single epoch images that have not been remapped are manifold. First, pixel to pixel noise correlations are not present in the data and do not have to be corrected for in estimating measurement uncertainties. Second, unbiased PSF and galaxy model fitting photometry is available across the image, allowing one to go beyond an approximate aperture correction to aperture magnitudes often used to extract galaxy and stellar photometry. Third, there are morphological parameters that can be extracted after directly accounting for the local PSF, which allows for improvements in star-galaxy classification and the extraction of PSF corrected galaxy shear. A more detailed description of these new <span>SExtractor</span> capabilities along with the results from an extensive testing program within DESDM will appear elsewhere (Bertin et al, in preparation). ### Remapping From the WCS parameters which are computed for every reduced image, one can approximate the footprint of the CCD on the sky using frame boundaries in Right Ascension and Declination. For the BCS survey we have a predefined grid of $36'\times36'$ tangent plane tiles covering the observed fields. Based on this, for every <span>*red* </span> image which is astrometrically calibrated, we determine which tiles it overlaps. We then use <span>SWarp</span> [@bertin02] to produce background-subtracted remapped images that conform to sections of these tangent plane tiles. A particular <span>*red*</span> image can be remapped to up to four different <span>*remap*</span> images in this process. Pixels are resampled using Lanczós-3 interpolation. Remapping also produces a pixel weightmap and we also remap the bad pixel map (using nearest neighbor remapping). In this process of remapping, zero weight pixels in the reduced images generically impact multiple pixels in the remap image given the size of the interpolation kernel. These remaps are then stored for later photometric calibration and coaddition. This on-the-fly remapping need not be done, because at a later stage of coaddition one could in principle return to the <span>*red*</span> images, but given the PSF homogenization we do prior to coaddition we have found it convenient to do the remapping as we are processing the nightly datasets. ### Nightly Photometric Calibration {#sec:nightlycalibration} Our initial strategy for photometric calibration involved traditional photometric calibration using the standard fields observed on photometric nights along with the image overlaps to create a common zeropoint across all our tiles. In fact, within DESDM we have developed a so-called Photometric Standards Module [@Tucker2007] (PSM) that we use to fit for nightly photometric solutions, and then we apply those solutions to all science images and associated catalogs from that night. For BCS this involves determining the zeropoints of all images on photometric nights through calibration to identified non-variable Standard stars from SDSS Stripe 82 field [@Smith2002]. This procedure was used for processing and calibration of the BCS data processed in Spring 2008. But closer analysis of these data showed that we were not able to control photometric zeropoints to the required level to allow for cluster photometric redshifts over the full survey area. We therefore abandoned this method for BCS in favor of relative photometric calibration using common stars in overlapping <span>*red*</span> images followed by absolute calibration using the stellar locus (described in more detail in Sec. \[sec:absolutephotometry\]). One problem we faced is that so-called photometric nights exhibited non-photometric behavior in the standard field observations. There was no reliable photometric monitor camera at CTIO during our survey, and so observers simply used the time honored tradition of watching for clouds to make the call on a night being photometric. Because of our strategy for standard star observations (beginning, middle, end of night), even those nights that exhibit consistent photometric solutions need not have been photometric over the full nights. Therefore, we felt it safer to assume that no night was truly photometric and to calibrate the data using an entirely different approach. The results from the PSM module for those nights exhibiting good photometric solutions are still useful. They have allowed us to monitor changes in the detectors and to measure the color terms in transforming our photometry onto the SDSS system. We provide a brief description of this procedure, although no science results in this paper are based on PSM related direct photometric calibration. We expect to apply this method for absolute photometric calibration of DES data where we will indeed have an IR photometric monitoring camera on the mountain. The PSM solves for the following equation : $$m_\mathrm{inst} - m_\mathrm{std} = a_n + b_n \times (stdColor - stdcolor_0) + kX$$ where $a_n$ is the photometric zeropoint for all 8 CCDs, $b_n$ is the color term, $stdColor$ is the fiducial color around which we define our standard solutions, which is $g-r$ for $g$ and $r$ bands, and $r-i$ for $i$ and $z$ bands, $stdcolor_0$ is a constant equal to $g-r=0.53$ for $g$ and $r$ bands and $r-i=0.09$ for $i$ and $z$ bands, $k$ is the first-order extinction coefficient and $X$ is the airmass. The PSM module solves for $a_n$, $b_n$ and $k$ for each photometric night. Using these values for the PSM $a$, $b$ and $k$, one can also estimate the expected zeropoint for every exposure. We calculate it as follows $$ZP = -a + 2.5 \log\mathrm{(exptime)} -kX$$ We applied the PSM on about 30 BCS nights which were classified as photometric. We also checked for trends in variation of color terms as a function of CCD number. Only the $i$-band color term shows some variation, and this approximate constancy of color terms greatly simplifies the coaddition of the data, because we don't have to track which CCDs have contributed to each pixel on the sky. The color terms we have used for photometric calibration are -0.1221, -0.0123, -0.1907, and 0.0226 in $griz$ respectively. We also examine the band dependent extinction coefficient ($k$) calculated using data from the photometric nights. For the ensemble of about 30 photometric solutions in each band, we find the median $griz$ extinction coefficients at CTIO over the life of the survey to be 0.181, 0.104, 0.087 and 0.067 mag./airmass respectively. This completes the description of all the steps of the nightly processing or single-epoch processing that we do for BCS. Coaddition {#sec:coaddpipeline} ---------- Once we have data processed for all of the BCS nights, we then combine data within common locations on the sky to build deeper images that we call coadds. This process is called co-addition and is complicated because it involves combining data taken in widely separated times and under very different observing conditions. Co-addition processing is done on a tile by tile basis. We describe our approach below. ### Relative Photometric Calibration {#sec:relativecalibration} During single-epoch processing we extract instrumental magnitudes. To produce science ready catalogs, we must calculate the zeropoint for every image and re-calibrate the magnitudes. The photometric calibration is done in two steps. The first step is a relative zeropoint calibration that uses the same object in overlapping exposures, and the second is an absolute calibration using the stellar locus. The relative calibration is done tile by tile rather than simultaneously across the full survey. We use two different pieces of information to calculate the relative zeropoints. The primary constraint comes from the average magnitude differences from pairs of <span>*red*</span> images with overlapping stars. The stars are selected based on the <span>SExtractor</span> flags and <span>spread\_model</span> (discussed later in Sec. \[sec:cataloging\]) values. In cases where there aren't enough overlapping stars, we use the average CCD to CCD zeropoint differences derived from photometric nights. In previous versions of the reduction we also used direct zeropoints derived from photometric nights (see Sec. \[sec:nightlycalibration\]) and relative sky brightnesses on pairs of CCDs. As previously mentioned, the direct photometric zeropoint information is contaminated at some level. The sky brightness constraints also seem to be problematic for BCS, because only $g$ and $r$ band data were taken on dark nights with no moon present which can introduce a gradient across the camera. To avoid a degradation of the calibration we used neither the sky brightness constraints nor the direct photometric zeropoints. We determine the zeropoints for all images in a tile by doing a least squares solution using the inputs described above. For this least squares solution there are $N$ input images, each with an unknown zeropoint in the vector $z$. We arbitrarily fix the zeropoint for one image and calibrate the remaining images relative to it. We have $M$ different constraints in the constraint vector $c$. The matrix $A$ is $N \times M$ and denotes the images involved for each constraint. The resulting system of equations is described by $Az = c$ where we use singular value decomposition to solve for the vector $z$. This gives the relative zeropoints needed to coadd the data for a particular tile. ### PSF Homogenization Combining images with variable seeing generically leads to a PSF that varies discontinuously over the coadded image. This affects star galaxy separation and contributes to variation across the image in the completeness at a given photometric depth. The PSF accuracy could be quite poor in regions where there are abrupt changes to the PSF which would translate into biases in the photometry that would be difficult to track. The main steps involved in the process of PSF homogenization include: (1) modeling the PSF using <span>PSFEx</span> for all <span>*remap*</span> images contributing to a coadd tile, (2) choosing the parameters of the target PSF, (3) using <span>PSFEx</span> to generate the homogenization kernel, and (4) carrying out the convolution to homogenize all the <span>*remap*</span> images to a common PSF. To reduce PSF variation we processed our images to bring them to a common PSF within an image and from image to image within a coadd tile. To do this we apply position dependent convolution kernels that are determined using power spectrum weighting functions that adjust the relative contributions of large scale and small scale power within an image in such a way as to bring the PSFs within and among the image samples into agreement. The target PSF is defined to be a circular Moffat function with the FWHM set to be the same as the median value of all input PSFs. $$\chi^2 = \lvert \Psi - \sum_{l}Y_l(x_i)\kappa_l\ast\Psi_\mathrm{median} \rvert^2$$ where $Y_l$ are the elements of a polynomial basis in $x-y$. The target PSF is defined to be a circular Moffat function with the FWHM set to be the median FWHM of the input images. We imposed a cut on input image PSF $\mathrm{FWHM}<1.6$ arcsec. This selects only images with relatively good seeing. Images from each band are homogenized separately. The FWHM of the target PSF for all BCS tiles is shown in bottom panel of Fig. \[targetpsf\]. ![FWHM of single epoch images using <span>PSFex</span> (top panel) along with the target PSF FWHM used for homogenizing the coadd images for the full BCS survey (bottom panel). The peak values of target PSFs are about $1''$ for $g$ and $r$ bands, $0.9''$ for $i$-band and $0.8''$ for $z$-band respectively.<span data-label="targetpsf"></span>](combinedseeing.png){width="49.00000%"} Another price of homogenization is that noise is correlated on the scale of the PSF. While the noise is already correlated to some degree through the remapping interpolation kernel, PSF homogenization characteristically affects larger angular scales than does the remapping kernel. This leads to biases in photometric and morphological uncertainties, and can also affect initial object detection process in <span>SExtractor</span>. To address this within DES we account for the noise correlations on two critical scales by producing two different weight maps. The first weight map is used to track the pixel scale noise, and the second weight map is used to correct for the correlated noise on the scale of the PSF. The pixel scale weight map is used by <span>SExtractor</span> in determining photometric and morphological uncertainties. The PSF scale weight map is used by <span>SExtractor</span> in the detection process. Extensive tests within DESDM have shown this approach to be adequate to produce unbiased photometric and morphological uncertainties and to enable unbiased detection of objects within coadds built from homogenized images. These results will be presented in detail elsewhere. For the BCS processing we used only a single pixel-scale weight map, tuned to return the correct measurement uncertainties within <span>SExtractor</span>. ![Variation of the PSF model FWHM for a $g$-band coadd image for the coadd tile BCS0516-5441. Because of the homogenization process the variations are at the level of 1% across the $36'$ image.<span data-label="fig:psfvariation"></span>](fwhm_BCS0516-5441_g_psfcat.png){width="49.00000%"} ### Stacking Single Epoch Images {#coadd} We use <span>SWarp</span> to combine the PSF-homogenized images to build the coadd tile. Inputs include the relative flux scales derived from the calibration described in Sec. \[sec:relativecalibration\]). We combine the homogenized remap images using the associated weight
{'source': 'arXiv_out/1204'}