Changeset 39844
- Timestamp:
- Dec 9, 2016, 6:32:52 PM (10 years ago)
- Location:
- trunk/doc/release.2015/ps1.detrend
- Files:
-
- 9 added
- 1 edited
-
detrend.tex (modified) (40 diffs)
-
images/stack_3775944_exp.jpg (added)
-
images/stack_3775944_expwt.jpg (added)
-
images/stack_3775944_mask.jpg (added)
-
images/stack_3775944_num.jpg (added)
-
images/stack_3775944_sci.jpg (added)
-
images/stack_3775944_wt.jpg (added)
-
images/warp_1046511_mask.jpg (added)
-
images/warp_1046511_sci.jpg (added)
-
images/warp_1046511_wt.jpg (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/release.2015/ps1.detrend/detrend.tex
r39817 r39844 36 36 \newcommand{\ippstage}[1]{\textsc{#1}} 37 37 \newcommand{\asinh}{\mathop{\rm asinh}\nolimits} 38 39 38 40 39 % Pick a terse version of the title here; … … 127 126 reduction of the Pan-STARRS archival data. The first two reductions 128 127 were used internally for pipeline optimization and the development of 129 the initial photometric and astrometric reference catalog . The128 the initial photometric and astrometric reference catalog \citep{ps1_reference_catalog}. The 130 129 products from these reductions were not publicly released, but have 131 130 been used to produce a wide range of scientific papers from the 132 131 Pan-STARRS 1 Science Consortium members. 132 133 \czwdraft{Nigel: you mention calibrating to the reference catalog without telling us 134 what this is composed of (maybe this is in a different section, but would be 135 nice to have some idea here).} 136 137 \czwdraft{Can we get around this point by simply adding a reference to 138 the paper describing the reference catalog? It's not really part of 139 the detrending process, and is discussed here mostly to give an 140 overview of the stages, and later to find sources of ghosts for 141 masking.} 133 142 134 143 The Pan-STARRS image processing pipeline (IPP) is described elsewhere … … 179 188 24 hours of the initial set of observations \citep{WainscoatXXX}. 180 189 181 \czwdraft{Should there be a discussion of any header keywords/OTA file formats?}182 183 190 Section \ref{sec:detrending} provides an overview of the detrending 184 191 process that corrects the instrumental signatures of GPC1, with … … 193 200 \ref{sec:discussion}. 194 201 195 196 \czwdraft{Is this a sufficient explanation? Also, is this the right 197 place for it?} Image products presented in figures have been 202 Image products presented in figures have been 198 203 mosaicked to arrange pixels as follows. Single cell images are 199 204 arranged such that pixel $(1,1)$ is at the lower left corner. Images … … 222 227 \label{sec:detrending} 223 228 229 \czwdraft{Nigel: I forgot: when we are talking about the various bias corrections it might be 230 worth pointing out that we expect these to be more of an issue in the g-band 231 (and maybe r?) where read noise is a significant contributor. 232 } 233 224 234 Ensuring a consistent and uniform detector response across the 225 235 three-degree diameter field of view of the GPC1 camera is essential to … … 229 239 dependent detector glows, and flat field correction to remove pixel to 230 240 pixel response functions. We also construct fringe correction for the 231 reddest data in the yfilter, to remove the interference patterns that241 reddest data in the \yps{} filter, to remove the interference patterns that 232 242 arise in that filter due to the variations in the thickness of the 233 243 detector surface. … … 349 359 \end{minipage} 350 360 351 \caption{Example of a profile cut along the y-axis through a bright star on exposure o5677g0123o OTA11 in cell xy60 (left panel) and on the subsequent exposure o5677g0124o (right panel). In both figures, the green points show the image corrected with all appropriate detrending steps, but without burntool applied, illustrating the amplitude of the persistence trails. The red points show the same data after the burntool correction, which reduces the impact of these features. Both exposures are in the g-filter with exposure times of 43s}361 \caption{Example of a profile cut along the y-axis through a bright star on exposure o5677g0123o OTA11 in cell xy60 (left panel) and on the subsequent exposure o5677g0124o (right panel). In both figures, the green points show the image corrected with all appropriate detrending steps, but without burntool applied, illustrating the amplitude of the persistence trails. The red points show the same data after the burntool correction, which reduces the impact of these features. Both exposures are in the \gps{} filter with exposure times of 43s} 352 362 \end{figure} 353 363 … … 564 574 % \end{subfigure} 565 575 \end{minipage} 566 \caption{An example of the dark model application to exposure o5677g0123o, OTA23 (2011-04-26, 43s g-filter). The left panel shows the image data mosaicked to the OTA level, and has had the static mask applied, the overscan subtracted, and the detector non-linearity corrected. The right panel, shows the same exposure with the dark applied in addition to the processing shown on the left.}576 \caption{An example of the dark model application to exposure o5677g0123o, OTA23 (2011-04-26, 43s \gps{} filter). The left panel shows the image data mosaicked to the OTA level, and has had the static mask applied, the overscan subtracted, and the detector non-linearity corrected. The right panel, shows the same exposure with the dark applied in addition to the processing shown on the left.} 567 577 \end{figure} 568 578 … … 570 580 \centering 571 581 \includegraphics[width=0.9\hsize,angle=0,clip]{images/B_profile_ex.png} 572 \caption{Example showing a profile cut across exposure o5676g0195, OTA67 (2011-04-25, 43s g-filter). The entire first row of cells (xy00-xy07) have had a median calculated along each pixel column on the OTA mosaicked image. Arbitrary offsets have been applied to shift the curves to not overlap. The top curve (in purple) shows the initial raw profile, with no dark model applied. The next curve (in green) shows the smoother profile after applying the correct B-mode dark model. Applying the incorrect A-mode dark results in the blue curve, which shows a significant increase in gradients across the cells. The orange curve shows the result of the PATTERN.CONTINUITY correction. Although this creates a larger gradient across the mosaicked images, it decreases the cell-to-cell level changes. The final yellow curve shows the final image profile after all detrending and background subtraction, and has not had an offset applied. The bright source at the cell xy00 to xy01 transition is a result of a large optical ghost, which due to the area covered, increases the median level more than the field stars.}582 \caption{Example showing a profile cut across exposure o5676g0195, OTA67 (2011-04-25, 43s \gps{} filter). The entire first row of cells (xy00-xy07) have had a median calculated along each pixel column on the OTA mosaicked image. Arbitrary offsets have been applied to shift the curves to not overlap. The top curve (in purple) shows the initial raw profile, with no dark model applied. The next curve (in green) shows the smoother profile after applying the correct B-mode dark model. Applying the incorrect A-mode dark results in the blue curve, which shows a significant increase in gradients across the cells. The orange curve shows the result of the PATTERN.CONTINUITY correction. Although this creates a larger gradient across the mosaicked images, it decreases the cell-to-cell level changes. The final yellow curve shows the final image profile after all detrending and background subtraction, and has not had an offset applied. The bright source at the cell xy00 to xy01 transition is a result of a large optical ghost, which due to the area covered, increases the median level more than the field stars.} 573 583 \label{fig:dark switching} 574 584 \end{figure} … … 627 637 % \end{subfigure} 628 638 \end{minipage} 629 \caption{An example of the video dark model application to exposure o5677g0123o, OTA22 (2011-04-26, 43s g-filter), which has a video cell located in cell xy16. The left panel shows the image data mosaicked to the OTA level, and has had the static mask applied, the overscan subtracted, the detector non-linearity corrected, and a regular dark applied. The right panel, shows the same exposure with a video dark applied instead of the standard dark. The main impact of this change is the improved correction of the corner glows, which are oversubtracted with the standard dark.}639 \caption{An example of the video dark model application to exposure o5677g0123o, OTA22 (2011-04-26, 43s \gps{} filter), which has a video cell located in cell xy16. The left panel shows the image data mosaicked to the OTA level, and has had the static mask applied, the overscan subtracted, the detector non-linearity corrected, and a regular dark applied. The right panel, shows the same exposure with a video dark applied instead of the standard dark. The main impact of this change is the improved correction of the corner glows, which are oversubtracted with the standard dark.} 630 640 \label{fig:video_darks} 631 641 \end{figure} … … 642 652 noise to increase as the row is read out. As a result of this 643 653 increased noise, more sources are detected in the higher noise regions 644 when the read noise is assumed constant across the readout. To 654 when the read noise is assumed constant across the readout. Read noise is the 655 656 To 645 657 mitigate this noise gradient, we constructed an initial set of 646 658 noisemap images by measuring the median variance on bias frames. The … … 743 755 744 756 The PATTERN.ROW correction is used to remove any remaining row-by-row 745 bias variation, and the PATTERN.C ELL and PATTERN.CONTINUITY746 corrections attempt to ensure that the cells of a given OTA are 747 c onsistent with the other cells on that OTA.757 bias variation, and the PATTERN.CONTINUITY correction attempts to 758 ensure that the cells of a given OTA are consistent with the other 759 cells on that OTA. 748 760 749 761 \subsubsection{Pattern Row} 762 %% Statistics so I have them written down somewhere 763 %% chipProcessedImfile.bg/bg_stdev by filter for XY33 (a ``good'' chip) 764 %% filter bg_mean stdev median Qsig bg_stdev_mean stdev median Qsig 765 %% g 36.37422026669 64.64175104057 32.693 6.10284 14.696938349131 78.80460307171 8.8401 0.5417843 766 %% r 200.96143304525 471.87743546238 117.105 94.55608 33.854672792146 79.01642728089 13.4564 5.3771355 767 %% i 447.00504994458 938.38517801037 286.810 154.71397 57.298335510188 99.38392923935 20.0217 24.2254723 768 %% z 317.54933679054 390.38930252748 241.014 114.13316 48.359069000176 94.44452756094 17.9404 9.1535209 769 %% y 371.09019536218 293.57439970375 288.481 133.38769 43.724342221691 135.04286534327 19.9029 7.5396461 770 750 771 % http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/GPC1_Bias_Pattern_Study 751 772 As discussed above in the dark and noisemap sections, certain … … 772 793 the sky. 773 794 795 These row-by-row variations have the largest impact on data taken in 796 the \gps{} filter, as the read noise is the dominant noise source in 797 that filter. At longer wavelengths, the noise from the Poissonian 798 variation in the sky level increases. Although the PATTERN.ROW correction is still applied to data taken in the other filters, 799 774 800 This correction was required on all cells on all OTAs prior to 775 801 2009-12-01, at which point a modification of the camera electronics … … 841 867 % \end{subfigure} 842 868 \end{minipage} 843 \caption{Example of the PATTERN.ROW correction on exposure o5379g0103o OTA57 cell xy00 ( i-filter 45s). The left panel shows the cell with all appropriate detrending except the PATTERN.ROW, and the right shows the same cell with PATTERN.ROW applied. The correction reduces the correlated noise on the right side, which is most distant from the read out amplifier. There is a slight over subtraction along the rows near the bright star.}869 \caption{Example of the PATTERN.ROW correction on exposure o5379g0103o OTA57 cell xy00 (\ips{} filter 45s). The left panel shows the cell with all appropriate detrending except the PATTERN.ROW, and the right shows the same cell with PATTERN.ROW applied. The correction reduces the correlated noise on the right side, which is most distant from the read out amplifier. There is a slight over subtraction along the rows near the bright star.} 844 870 \end{figure} 845 871 846 872 \subsubsection{Pattern Continuity} 847 873 848 As the PATTERN.CELL correction was insufficient in many situations, we 874 After previous attempts to ensure that adjacent cells on an OTA 875 matched background levels were insufficient in many situations, we 849 876 designed a replacement correction that would reduce the background 850 877 distortion for large objects. In addition, studies of the background … … 855 882 horizontally across an OTA, and as the background model fits a smooth 856 883 sky level, this induces over and under subtraction at the cell 857 boundaries. As the PATTERN.CELL was designed to correct changes only 858 in the median value between cells, it could not adequately resolve 859 this higher order issue. 860 861 The replacement for PATTERN.CELL is the PATTERN.CONTINUITY correction, 862 which attempts to match the edges of a cell to those of its neighbors. 863 For each cell, a thin box 10 pixels wide on each edge is extracted and 864 the median value of unmasked values calculated for that box. These 865 median values are then used to construct a vector of differences 866 $\Delta_i = \sum_{j} Edge_{i} - Edge_{j}$, along with a matrix of 867 associations $A_{i,i'} = \sum_{j} \delta(i,j) \delta(j,i')$ denoting 868 which cell boundaries are adjacent. By solving the system $A x = 869 diff$, we find the set of offsets $x_i$ to be applied to each cell to 870 ensure the minimum differences between all cell edges and their 871 neighbors. 884 boundaries. 885 886 The PATTERN.CONTINUITY correction, attempts to match the edges of a 887 cell to those of its neighbors. For each cell, a thin box 10 pixels 888 wide on each edge is extracted and the median value of unmasked values 889 calculated for that box. These median values are then used to 890 construct a vector of differences $\Delta_i = \sum_{j} \mathrm{Edge}_{i} - 891 \mathrm{Edge}_{j}$, along with a matrix of associations $A_{i,i'} = \sum_{j} 892 \delta(i,j) \delta(j,i')$ denoting which cell boundaries are adjacent. 893 By solving the system $A x = \Delta$, we find the set of offsets $x_i$ 894 to be applied to each cell to ensure the minimum differences between 895 all cell edges and their neighbors. 872 896 873 897 For OTAs that initially show the saw tooth pattern, the effect of this … … 895 919 wavelength of the light becomes comparable to the thickness of the 896 920 detectors. Visually inspecting the images shows that the fringing is 897 most prevalent in the yfilter images, with negligible fringing in the921 most prevalent in the \yps{} filter images, with negligible fringing in the 898 922 other bands. As a result of this, we only apply a fringe correction 899 to the yfilter data.923 to the \yps{} filter data. 900 924 901 925 The fringe used for PV3 processing was constructed from a set of 20 … … 925 949 \centering 926 950 \begin{minipage}{0.5\hsize} 927 \includegraphics[width=1.0\hsize,angle=0,clip]{images/o5220g0025o_XY53_nofringe.png} 928 % \caption{(a)} 929 % \end{subfigure}% 930 % \begin{subfigure}[]{.45\hsize} 951 \includegraphics[width=1.5\hsize,angle=0,clip]{images/o5220g0025o_XY53_nofringe.png} 931 952 \end{minipage}% 932 953 \begin{minipage}{0.5\hsize} 933 \includegraphics[width=1.0\hsize,angle=0,clip]{images/o5220g0025o_XY53_fringe.png} 934 % \caption{(b)} 935 % \end{subfigure} 954 \includegraphics[width=1.5\hsize,angle=0,clip]{images/o5220g0025o_XY53_fringe.png} 936 955 \end{minipage} 937 \caption{Example of the y-filter fringe pattern on exposure o5220g0025o OTA53 (y-filter 30s). The left panel shows the OTA mosaic with all detrending except the fringe correction, while the right shows the same including the fringe correction. Both images have been smoothed with a Gaussian with $\sigma = 3$ pixels to highlight the faint and large scale fringe patterns. \czwdraft{See if there's a way to have mana produce images larger than the screen size.}}956 \caption{Example of the \yps{} filter fringe pattern on exposure o5220g0025o OTA53 (\yps{} filter 30s). The left panel shows the OTA mosaic with all detrending except the fringe correction, while the right shows the same including the fringe correction. Both images have been smoothed with a Gaussian with $\sigma = 3$ pixels to highlight the faint and large scale fringe patterns. \czwdraft{See if there's a way to have mana produce images larger than the screen size.}} 938 957 \label{fig: fringe example} 939 958 \end{figure} … … 983 1002 The final step of mask construction is to examine the detector for 984 1003 bright columns and other static pixel issues. This is first done by 985 processing a set of 100 ifilter science images in the same fashion as1004 processing a set of 100 \ips{} filter science images in the same fashion as 986 1005 for the DARKMASK. A median image is constructed from these inputs 987 1006 along with the per-pixel variance. These images are used to identify … … 1124 1143 Due to imperfections in the anti-reflective coating on the optical 1125 1144 surfaces of GPC1, bright sources can also result in large out of focus 1126 objects, particularly in the g-filter data. These objects are the1145 objects, particularly in the \gps{} filter data. These objects are the 1127 1146 result of light reflecting back off the surface of the detector, 1128 1147 reflecting again off the lower surfaces of the optics (particularly … … 1182 1201 \tablehead{\colhead{Filter}&\colhead{$m_{inst}$}} 1183 1202 \startdata 1184 g& -16.5 \\1185 r& -20.0 \\1186 i& -25.0 \\1187 z& -25.0 \\1188 y& -25.0 \\1189 w& -20.0 \\1203 \gps{} & -16.5 \\ 1204 \rps{} & -20.0 \\ 1205 \ips{} & -25.0 \\ 1206 \zps{} & -25.0 \\ 1207 \yps{} & -25.0 \\ 1208 \wps{} & -20.0 \\ 1190 1209 \enddata 1191 1210 \label{tab:ghost_magnitudes} … … 1196 1215 \centering 1197 1216 \includegraphics[width=0.9\hsize,angle=0,clip]{images/full_fpa_ghosts.jpg} 1198 \caption{Example of the full GPC1 field of view illustrating the sources and destinations of optical ghosts on exposure o5677g0123o (2011-04-26, 43s g-filter). The bright stars on OTA33 and OTA44 result in nearly circular ghosts on the opposite OTA. In contrast, the trio of stars on OTA11 result in very elongated ghosts on OTA66.}1217 \caption{Example of the full GPC1 field of view illustrating the sources and destinations of optical ghosts on exposure o5677g0123o (2011-04-26, 43s \gps{} filter). The bright stars on OTA33 and OTA44 result in nearly circular ghosts on the opposite OTA. In contrast, the trio of stars on OTA11 result in very elongated ghosts on OTA66.} 1199 1218 \end{figure} 1200 1219 … … 1202 1221 \label{sec:glints} 1203 1222 1204 Prior to \czwdraft{DATE}, a reflective surface at the edge of the 1205 camera aperture was incompletely screened to light passing through the 1223 % I finally tracked it down: 1224 %% > On 8/26/2010 9:24 AM, John Tonry wrote: 1225 %% > 1226 %% > Gene, 1227 %% > 1228 %% > This is a bit of a case of the dog that didn't bark, but the shutter mask 1229 %% > went in on Tuesday. 1230 %% > 1231 %% > Can you can tell us whether 1232 %% > 1233 %% > a) it's helped the shutter glint problem and 1234 %% > b) whether there's any discernable vignetting anywhere? 1235 %% > 1236 %% > - John 1237 1238 %% On Thu, Aug 26, 2010 at 4:00 PM, Chris Waters <watersc1@ifa.hawaii.edu>wrote: 1239 1240 %% > I'm not entirely sure why I'm not on the ps-ipp mailing list, but 1241 %% > Heather forwarded this to me. I compared 240 exposures from 1242 %% > 2010-08-22/ThreePi/y.00000 and 2010-08-25/ThreePi/y.00000. 1243 %% > 1244 %% > a) For the 22nd, I counted 28 star glints visible. For the 25th, I 1245 %% > counted maybe 0-2 (I think the first is a conveniently placed satellite, 1246 %% > and the other has a companion, so I think it's actually a moon glint). 1247 %% > 1248 %% > b) I was going to compare flat field images, but we don't have any 1249 %% > from after the mask was applied. Blinking between a few pairs of the 1250 %% > 240x2 exposures does not show any vignetting that I can detect from 1251 %% > the IPP jpeg mosaics. 1252 1253 Prior to 2010-08-24, a reflective surface at the edge of the camera 1254 aperture was incompletely screened to light passing through the 1206 1255 telescope. Sources brighter than $m_{inst} = -21$ that fell on this 1207 1256 reflective surface resulted in light being scattered across the 1208 1257 detector surface in a long narrow glint. This surface was physically 1209 masked on \czwdraft{DATE}, removing the possibility of glints in1210 subsequent data, but that taken prior have adynamic mask constructed1258 masked on 2010-08-24, removing the possibility of glints in subsequent 1259 data, but that taken prior have an advisory dynamic mask constructed 1211 1260 when a reference source falls on the focal plane within one degree of 1212 1261 the detector edge. This mask is 150 pixels wide, with length $L = … … 1244 1293 \centering 1245 1294 \includegraphics[width=0.9\hsize,angle=0,clip]{images/glint_example_o5379g0103o.jpg} 1246 \caption{Example of a glint on exposure o5379g0103o (2010-07-02, 45s i-filter). The source star out of the field of view creates a long reflection that extends through OTA73 and OTA63.}1295 \caption{Example of a glint on exposure o5379g0103o (2010-07-02, 45s \ips{} filter). The source star out of the field of view creates a long reflection that extends through OTA73 and OTA63.} 1247 1296 \end{figure} 1248 1297 … … 1271 1320 \centering 1272 1321 \includegraphics[width=0.9\hsize,angle=0,clip]{images/o6802g0338o_XY51_b1.jpg} 1273 \caption{Example of saturated star, with diffraction spikes extending from the core on exposure o6802g0338o, OTA51 (2014-05-25, 45s g-filter).}1322 \caption{Example of saturated star, with diffraction spikes extending from the core on exposure o6802g0338o, OTA51 (2014-05-25, 45s \gps{} filter).} 1274 1323 \label{fig:saturated star} 1275 1324 \end{figure} … … 1295 1344 calculations to estimate the masking fraction. The reference field of 1296 1345 view of GPC1 is 3 degrees, which at the nominal plate scale of 0.258 1297 arcseconds per pixel, translates to a 20930 FPA pixel radius. \czwdraft{I need a percentage here.} 1346 arcseconds per pixel, translates to a 20930 FPA pixel radius. Summing 1347 mask fractions from these three contributions within the unvignetted 1348 field of view results in an average of $\sim 20\%$ masking fraction 1349 across the field of view. Dynamic masking adds an additional $2-3\%$ 1350 on average, with advisory burntool masking contributing the largest 1351 single component. 1352 1298 1353 1299 1354 %% mysql> select filter,AVG(camProcessedExp.maskfrac_ref_static), AVG(camProcessedExp.maskfrac_ref_dynamic), AVG(camProcessedExp.maskfrac_ref_advisory), AVG(camProcessedExp.maskfrac_max_static),AVG(camProcessedExp.maskfrac_max_dynamic),AVG(camProcessedExp.maskfrac_max_advisory) from camRun join camProcessedExp USING(cam_id) JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id) WHERE camRun.label = 'LAP.PV3.20140730.final' GROUP BY filter; … … 1313 1368 %% | 0.21130344126869 | 0.00013634812877977 | 0.02163070300815 | 1314 1369 1315 Summing mask fractions from these three contributions within the1316 unvignetted field of view results in an average of $\sim 20\%$ masking1317 fraction across the field of view. Dynamic masking adds an additional1318 $2-3\%$ on average, with advisory burntool masking contributing the1319 largest single component.1320 1370 1321 1371 \subsection{Background subtraction} 1322 1372 \label{sec:background} 1373 1374 \czwdraft{Nigel: 2.10 The background section is rather short, given all the fuss DRAVG made 1375 about it. What is done to eliminate contamination by bright objects - isn't 1376 there some sort of clipping? We also have a confusing number of ``bins'' in the 1377 text (``These bins have 10000 .... a binned cumulative distribution is 1378 generated. These bins are interpolated ... levels. Repeating this across all 1379 bins ...''). There is no mention of the fact that this will subtract real 1380 astrophysics backgrounds if they are on a suitably large scale, or of the fact 1381 that the subtraction is not perfect (don't I remember that the stacks end up 1382 with a non-zero background which scales with the number of input warps?). 1383 } 1384 1385 \czwdraft{Based on the wiki page on 2014-05-21 the stack background issue should be resolved.} 1323 1386 1324 1387 Once all other detrending is done, the pixels from each cell are 1325 1388 mosaicked into the full $4846\times{}4868$ pixel OTA image. A 1326 1389 background model for the full OTA is then determined prior to the 1327 photometric analysis. The mosaicked image is binned into 1328 $800\times{}800$ pixel bins, centered on the image center, and 1329 overlapping by a factor of 2 in both axes. These bins have 10000 1330 random samples drawn, and a binned cumulative distribution function is 1331 generated. These bins are interpolated to find the best mean value at 1332 the $50\%$ level, as well as the distribution $\sigma$ by estimating 1333 from the $32\%$ and $68\%$ levels. Repeating this across all bins 1334 results in a $13\times{}13$ grid of background bins, which are 1335 bilinearly interpolated to generate the background model to subtract. 1336 Each object in the photometric catalog has a SKY and SKY\_SIGMA value 1337 based on this model as well. 1390 photometric analysis. The mosaicked image is subdivided into 1391 $800\times{}800$ pixel segments that define each pixel of the 1392 background model, with the segments centered on the image center, and 1393 overlapping adjacent subdivisions by 400 pixels. These overlaps help 1394 smooth the background model, as adjacent model pixels share input 1395 pixels. 1396 1397 From each subdivision, 10000 random unmasked pixels are drawn. In the 1398 case where the mask fraction is large (such as on OTAs near the edge 1399 of the field of view), and there are insufficient unmasked pixels to 1400 meet this criterion, all possible unmasked pixels are used instead. 1401 If this number is still small (less than 100 good pixels), the 1402 subdivision does not have a background model calculated, and instead, 1403 the value assigned to that model pixel is set as the average of the 1404 adjacent model pixels. This allows up to eight neighboring background 1405 values to be used to patch these bad pixels. 1406 1407 For the remaining subdivisions that have sufficient unmasked pixels 1408 for the background to be measured, the pixel values are used to 1409 calculate a set of robust statistics for the initial background guess. 1410 The minimum and maximum of the values are found, and checked to ensure 1411 that these are not the same value, which would indicate some problem 1412 with the input values. The values are then inserted into a histogram 1413 with 1000 bins between the minimum and maximum values, and again 1414 checked for issues with the inputs by ensuring that the bin with the 1415 most input pixels does not contain more than half of the input values. 1416 In this case, the minimum and maximum do not constrain the true 1417 distribution of the input values well, and any values outside of the 1418 20 bins closest to the bin with the peak are masked for future 1419 consideration. A cumulative distribution is then constructed from the 1420 histogram, which saves the computational cost of sorting all the input 1421 values. The bins containing the 50-percentile point, as well as the 1422 15.8\%, 84.1\% ($\pm 1 \sigma$), 30.8\%, 69.1\% ($\pm 0.5 \sigma$), 1423 2.2\%, and 97.7\% ($\pm 2 \sigma$) points are identified in this 1424 cumulative histogram. These bins, and the two bins to either side are 1425 then linearly interpolated to identify the pixel value corresponding 1426 to these points in the distribution. The 50\% point is set as the 1427 median of the pixel distribution, with the standard deviation of the 1428 distribution set as the median of the $\sigma$ values calculated from 1429 the $0.5 * (\sigma_{+1} - \sigma_{-1})$, $\sigma_{+0.5} - 1430 \sigma_{-0.5}$, and $0.25 * (\sigma_{+2} - \sigma_{-2})$ differences. 1431 If this measured standard deviation is smaller than 3 times the bin 1432 size, then all points more than 25 bins away from the calculated 1433 median are masked, and the process is repeated until the bin size is 1434 sufficiently small to ensure that the distribution width is well 1435 sampled. Once this iterative process converges, or 20 iterations are 1436 run, the 25- and 75-percentile values are found by interpolating the 5 1437 bins around the expected bin as well, and the count of the number of 1438 input values within this inner 50-percentile region, $N_{50}$ is 1439 calculated. 1440 1441 These initial statistics are then used as the starting guesses for a 1442 second calculation of the background level that attempts to fit the 1443 distribution with a Gaussian. All pixels that were masked in the 1444 initial calculation are unmasked, and a histogram is again constructed 1445 of the values, with a binsize set to $\sigma_{guess} / \left( N_{50} / 1446 500 \right)$. With this binsize, we expect that a bin at $\pm 2 1447 \sigma$ will have approximately 50 input points, which gives a 1448 Poissonian signal to noise estimate around 7. In the case where 1449 $N_{50}$ is small (due to a poorly populated input image), this bin 1450 size is fixed to be no larger than the guess of the standard 1451 deviation. The endpoints of the histogram are clipped based on the 1452 input guesses, such that any input point with a value more than $5 1453 \sigma_{guess}$ away from the input mean are excluded from 1454 consideration. 1455 1456 Two second order polynomial fits are then performed to the logarithm 1457 of the histogram counts set at the midpoint of each bin. The first 1458 fit considers the ``lower half'' of the distribution, under the 1459 assumption that deviations from a normal distribution are caused by 1460 real astrophysical sources that will be brighter than the true 1461 background level. From the bin with most pixel values, the lower 1462 bound is set by searching for the first bin from the peak that has 1463 fewer inputs than 25\% of the peak. A similar search is performed for 1464 the upper bound, but with a criterion that the bin has fewer than 50\% 1465 of the peak. On both sides of the peak, the bounds are adjusted to 1466 ensure that at least seven bins, equally distributed around the peak, 1467 are used. The second fit is symmetric, fitting both sides of the 1468 distribution out to the point where the bin contains fewer than 15\% 1469 of the peak value. The same seven-bin constraint is used for this 1470 fit. The Gaussian mean and standard deviation are calculated from the 1471 polynomial coefficients, and the symmetric fit results are accepted 1472 unless the lower-half fit results in a smaller mean. This process is 1473 repeated again if the calculated standard deviation is not larger than 1474 75\% of the initial guess (suggesting an issue with the initial bin 1475 size). 1476 1477 With this two-stage calculation performed across all subdivisions of 1478 the mosaicked OTA image, and missing model pixels filled with the 1479 average of their neighbors, the final background model is stored on 1480 disk as a $13\times{}13$ image with header entries listing the binning 1481 used. The full scale background image is then constructed by 1482 binlinearly interpolating this binned model, and this is subtracted 1483 from the science image. Each object in the photometric catalog has a 1484 SKY and SKY\_SIGMA value that is the evaluation of this model at the 1485 location of that object. 1486 1487 Although this background modeling process works well for most of the 1488 sky, astronomical sources that are large compared to the 1489 $800\times{}800$ pixel subdivisions can bias the calculated background 1490 level high, resulting in an oversubtraction near that object. The 1491 most common source that can cause this issue are large galaxies, which 1492 can have their own features modeled as being part of the background. 1493 For the specialized processing of M31, which covers an entire pointing 1494 of GPC1, the measured background was added back to the \ippstage{chip} 1495 stage images, but this special processing was not used for the large 1496 scale $3\Pi$ PV3 reduction. 1338 1497 1339 1498 %% * Magic … … 1452 1611 & 964 & 2010-09-01 00:00:00 & 2011-05-01 00:00:00 & \\ 1453 1612 & 965 & 2011-05-01 00:00:00 & & \\ 1454 FLAT & 300 & 2009-12-09 00:00:00 & & g filter \\ 1455 & 301 & 2009-12-09 00:00:00 & & r filter \\ 1456 & 302 & 2009-12-09 00:00:00 & & i filter \\ 1457 & 303 & 2009-12-09 00:00:00 & & z filter \\ 1458 & 304 & 2009-12-09 00:00:00 & & y filter \\ 1613 FLAT & 300 & 2009-12-09 00:00:00 & & \gps{} filter \\ 1614 & 301 & 2009-12-09 00:00:00 & & \rps{} filter \\ 1615 & 302 & 2009-12-09 00:00:00 & & \ips{} filter \\ 1616 & 303 & 2009-12-09 00:00:00 & & \zps{} filter \\ 1617 & 304 & 2009-12-09 00:00:00 & & \yps{} filter \\ 1618 & 305 & 2009-12-09 00:00:00 & & \wps{} filter \\ 1459 1619 FRINGE & 296 & 2009-12-09 00:00:00 & & \\ 1460 1620 ASTROM & 1064 & 2008-05-06 00:00:00 & & \\ … … 1530 1690 name, and the SEC keyword lists the image section corresponding to the 1531 1691 locally linear grid box. The MPX and MPY contain the transformation 1532 parameters for the locally linear grid. \czwdraft{Is this accurate?} 1692 parameters for the locally linear grid. These parameters are stored 1693 in a string listing the reference position in the chip coordinate 1694 frame, the slope of the relation in the warp x axis, and the slope of 1695 the relation in the warp y axis. From these keywords, any position in 1696 the warp can be mapped back to the location in any of the input OTA 1697 images. 1698 1699 \begin{figure} 1700 \centering 1701 \includegraphics[width=0.9\hsize,angle=0,clip]{images/warp_1046511_sci.jpg} 1702 \caption{Example of the warp image for skycell skycell.2047.005 1703 centered at ($\alpha,\delta$) = (179.763, 32.1899) for exposure 1704 o4985g0073o, (2009-06-03, 30s \zps{} filter). The data from six 1705 OTAs contribute to this image, although they are all truncated by 1706 the skycell boundaries. This skycell image is aligned such that 1707 north points to the top of the image, and east to the left. The 1708 contributing OTAs are from the right half of the detector, with 1709 OTA24 contributing the most pixels, and originally have the 1710 positive y axis pointing to the southwest in this warped image, 1711 with the positive x axis to the northwest.} 1712 \label{fig:warp image} 1713 \end{figure} 1714 1715 \begin{figure} 1716 \centering 1717 \includegraphics[width=0.9\hsize,angle=0,clip]{images/warp_1046511_wt.jpg} 1718 \caption{Example of the warp variance image for skycell 1719 skycell.2047.005 of exposure o4985g0073o, the same as in Figure 1720 \ref{fig:warp image}. This variance map retains information about 1721 the higher flux levels that were found in burntool corrected 1722 persistence trails, which appear here as streaks along the 1723 original OTA y axis. The amplifier glows that are corrected in 1724 the dark model are also more visible in the corners of the cells 1725 in OTA24. As both of these effects are corrected in the science 1726 image, there are no significant features visible there.} 1727 \label{fig:warp variance} 1728 \end{figure} 1729 1730 \begin{figure} 1731 \centering 1732 \includegraphics[width=0.9\hsize,angle=0,clip]{images/warp_1046511_sci.jpg} 1733 \caption{Example of the warp mask image for skycell skycell.2047.005 1734 of exposure o4985g0073o, the same as in Figure \ref{fig:warp 1735 image}. This mask image shows the many small defects removed 1736 from the image, along with larger advisory trails on corrected 1737 burntool trails. The saturated cores of the bright stars are also 1738 masked, along with the diffraction spikes found on these stars. 1739 In addition OTA24 shows the precautionary crosstalk bleed masks 1740 for the two brightest stars applied to all cells within the same 1741 row.} 1742 \end{figure} 1743 1533 1744 1534 1745 % Read all images and astrometry … … 1558 1769 system, they can then be combined pixel-by-pixel regardless of their 1559 1770 original orientation. Creating a stacked image by coadding the 1560 individual warps increases the signal to noise, allowing objects1561 fainter than the single image signal to noise threshold. Creating 1562 this stack also allows a complete image to be constructed that does 1563 not have regions masked due to the gaps between cells and OTAs. This 1564 fully populated static sky image can also be used as a template for 1565 subtraction to find transient sources.1771 individual warps increases the signal to noise, allowing for the 1772 detection of objects that would not be sufficiently significant to be measured from a single image. 1773 Creating this stack also allows a complete image to be 1774 constructed that does not have regions masked due to the gaps between 1775 cells and OTAs. This fully populated static sky image can also be 1776 used as a template for subtraction to find transient sources. 1566 1777 1567 1778 The stacked image is comprised of all warp frames for a given skycell … … 1572 1783 Once all files are ingested, the first step is to measure the size and 1573 1784 shapes of the input image PSFs. We exclude images that have a PSF 1574 FWHM greater than 10 pixels , as those images have the seeing far worse1575 than average, and would degrade the final output stack. For the PV3 1576 s urvey, this size represents a PSF larger than $97$th percentile in1577 all filters. A target PSF for the stack is constructed by finding the 1578 maximum envelope of all input PSFs, which sets the target PSF to the 1579 largest value among the input PSFs for a given position from the peak. 1580 This PSF is then circularized to ensure azimuthal symmetry, which 1581 prevents any of the input images from being deconvolved when matched 1582 to the target.1583 1584 The input images also need to have their flux normalized to prevent1785 FWHM greater than 10 pixels (2.5 arcseconds), as those images have the 1786 seeing far worse than average, and would degrade the final output 1787 stack. For the PV3 $3\Pi$ survey, this size represents a PSF larger 1788 than the $97$th percentile in all filters. A target PSF for the stack 1789 is constructed by finding the maximum envelope of all input PSFs, 1790 which sets the target PSF to the largest value among the input PSFs 1791 for a given position from the peak. This PSF is then circularized to 1792 ensure azimuthal symmetry, which prevents deconvolution of any of the 1793 input images when matched to the target. 1794 1795 The input images also need to have their fluxes normalized to prevent 1585 1796 differences in seeing and sky transparency from causing discrepancies 1586 during pixel rejection. From the calibrated input catalogs, we have 1587 the instrumental magnitudes of all sources, along with the airmass, 1588 image exposure time, and zeropoint. All output stacks are calibrated 1589 to a zeropoint of 25.0 in all filters, and to have an airmass of 1.0. 1590 The output exposure time is set to the sum of the input exposure 1591 times. We can determine the relative transparency for each input 1592 image by comparing the magnitudes of matched sources between the 1593 different images. Each image then has a normalization factor defined, 1594 equal to $norm_{i} = (ZP_{i} - ZP_{target}) - transparency_{i} - 2.5 * 1595 \log_{10} (t_{target} / t_{i}) - airmassTerm * (airmass_{i} - 1596 airmass_{target})$. \czwdraft{ZP.AIRMASS is zero for all filters. 1597 Does this simply mean that we assume any airmass differences are 1598 folded into the transparency differences? This would simplify this 1599 discussion quite a bit if that's the case, as we can just say that 1600 and skip all the extra airmass terms.} 1797 during pixel rejection. From the reference catalog calibrated input 1798 catalogs, we have the instrumental magnitudes of all sources, along 1799 with the airmass, image exposure time, and zeropoint. All output 1800 stacks are calibrated to a zeropoint of 25.0 in all filters, and to 1801 have an airmass of 1.0. The output exposure time is set to the sum of 1802 the input exposure times, regardless of if those inputs are rejected 1803 later in the combination process. We can determine the relative 1804 transparency for each input image by comparing the magnitudes of 1805 matched sources between the different images. Each image then has a 1806 normalization factor defined, equal to $\mathrm{norm}_{input} = (ZP_\mathrm{input} 1807 - ZP_\mathrm{target}) - \mathrm{transparency}_\mathrm{input} - 2.5 * 1808 \log_{10} (t_\mathrm{target} / t_\mathrm{input}) - 1809 \mathrm{F}_\mathrm{airmass} * (\mathrm{airmass}_\mathrm{input} - 1810 \mathrm{airmass}_\mathrm{target})$. For the PV3 processing, the 1811 airmass factor $\mathrm{F}_\mathrm{airmass}$ was set to zero, such 1812 that all flux differences from differing exposure airmasses are 1813 assumed to be included in the zeropoint and transparency values. 1814 1815 1816 \czwdraft{Nigel: 5. ``The ouput exposure time is set to the sum of the input exposure times.'' 1817 True, but we should note that as warps can be rejected later on in the 1818 stacking process this output time is notional in some sense. 1819 Calibration - for PV3 what photometric calibration has been used at this stage 1820 for the input warps? Should we make it clear here that pixels are not subject 1821 to the final (any?) ubercal? 1822 } 1601 1823 1602 1824 % PREPARE … … 1636 1858 convolution kernels can be calculated for each image. ISIS kernels 1637 1859 \citep{ISIS_kernels} are used with FWHM values of 1.5, 3.0, and 6.0 1638 pixels and polynomial orders of 6, 4, and 2. \czwdraft{Skipping this 1639 bit because I'm not completely sure I understand it.} The image is 1640 then scaled by the normalization as $renorm = 10^{-0.4 * norm_{image}} 1641 / norm_{convolution}$, and the variance by the square of that value. 1642 1860 pixels and polynomial orders of 6, 4, and 2. Regions around the 1861 sources identified in the input images are extracted, convolved with 1862 the kernel, and the residual with the target PSF used to update the 1863 parameters of the kernel via least squares optimization. Stamps that 1864 significantly deviate are rejected, but as the squared residual 1865 difference will increase with increasing source flux. To mitigate 1866 this effect, a parabola is fit to the distribution of squared 1867 residuals as a function of source flux. Stamps that deviate from this 1868 fit by more than $2.5\sigma$ are rejected, and not used on further 1869 kernel fit iterations. This process is repeated twice, and the final 1870 convolution kernel is returned. 1871 1872 This convolution may change the image flux scaling, so a normalization 1873 factor is used to correct this. This normalization factor is equal to 1874 the ratio of $10^{-0.4 \mathrm{norm}_{input}}$ to the sum of the 1875 kernel. The image is multiplied by this factor, and the variance by 1876 the square of it, scaling all inputs to the common zeropoint. 1643 1877 1644 1878 % MATCH … … 1651 1885 Once the convolution kernels are defined for each image, they are used 1652 1886 to convolve the image to match the target PSF. Any input image that 1653 has a $\chi^2$ value greater than 4.0$\sigma$ larger than the median1654 value is rejected from the stack. Each image also has a weight 1655 assigned, based on the image variance after convolution. For a given 1656 image, the weight is equal to $W^{-1} = \langle Variance(x,y) \rangle 1657 * f_{covariance}$, where the angle brackets denote a robust median of 1658 the variance image, and the covariance factor $f_{covariance}$ isthe1659 peak value of the covariance matrix of the convolution.1887 has a kernel match $\chi^2$ value greater than 4.0$\sigma$ larger than 1888 the median value is rejected from the stack. Each image also has a 1889 weight assigned, based on the image variance after convolution. A 1890 full image weight is then calculated for each input, with the weight, 1891 $W_\mathrm{input}$ is equal to the inverse of the median of the image 1892 variance multiplied by the peak of the image covariance (due to the 1893 warping process). 1660 1894 1661 1895 % CONVOLVE … … 1685 1919 1686 1920 \begin{eqnarray} 1687 S_{value} &=& \sum_i\left(value_{i} * W_i\right) / \sum_i\left(W_i\right) \\1688 S_{exp weight} &=& \sum_i \left(exptime_i * W_i\right) / \sum_i\left(W_i\right) \\1921 \mathrm{Stack}_\mathrm{value} &=& \sum_i\left(\mathrm{value}_\mathrm{input} * W_\mathrm{input}\right) / \sum_\mathrm{inputs}\left(W_\mathrm{input}\right) \\ 1922 \mathrm{Stack}_\mathrm{exp weight} &=& \sum_i \left(\mathrm{exptime}_\mathrm{input} * W_\mathrm{input}\right) / \sum_\mathrm{inputs}\left(W_\mathrm{input}\right) \\ 1689 1923 \end{eqnarray} 1690 1924 … … 1692 1926 1693 1927 \begin{eqnarray} 1694 S_{variance} &=& 1 / \sum_i \left( 1 / variance_i\right)1928 \mathrm{Stack}_\mathrm{variance} &=& 1 / \sum_i \left( 1 / \sigma^2_\mathrm{input} \right) 1695 1929 \end{eqnarray} 1696 1930 … … 1766 2000 to reject higher pixel values than lower pixel values. 1767 2001 1768 Following th isinitial combination, a ``testing'' loop iterates in an2002 Following the initial combination, a ``testing'' loop iterates in an 1769 2003 attempt to identify outlier points. Again, if only one input is 1770 2004 available, that input is accepted. If there are two inputs, $A$ and 1771 $B$, then a check is made to see if $(0.5 * (value_A - value_B))^2 > 1772 rej^2 * (variance_A + variance_B + (sys * value_A)^2 + (sys * 1773 value_B)^2)$, where $rej$ is the number of sigmas deviant a point needs 1774 to be to be excluded, set to 4.0 for the PV3 processing, and $sys$ is 1775 an estimate of the systematic error, taken to be 0.1. 2005 $B$, then a check is made to see if $(0.5 * (\mathrm{value}_A - 2006 \mathrm{value}_B))^2 > 16 * (\sigma^2_A + \sigma^2_B 2007 + (0.1 * \mathrm{value}_A)^2 + (0.1 * \mathrm{value}_B)^2)$, such that 2008 the deviation of the inputs from their mean position is greater than 2009 four times the sum of their measured uncertainties and a 10\% 2010 systematic error term. If this is the case, neither input is trusted, 2011 and both are flagged for rejection 1776 2012 1777 2013 If the number of inputs is larger than 6, then a Gaussian mixture … … 1787 2023 input values are passed to an Olympic weighted mean calculation. We 1788 2024 reject $20\%$ of the number of inputs through this process. The 1789 number of bad inputs is set to $N_{bad} = 0.2 * N_{input} + 0.5$, with 1790 the 0.5 term ensuring at least one input is rejected. This number is 1791 further separated into the number of low values to exclude $N_{low} = 1792 N_{bad} / 2$, which will default to zero if there are few inputs, and 1793 $N_{high} = N_{input} + N_{low} - N_{bad}$. After sorting the input 1794 values to determine which values fall into the low and high groups, 1795 the remaining input values are used in a weighted mean using the image 1796 weights above. 2025 number of bad inputs is set to $N_\mathrm{bad} = 0.2 * 2026 N_\mathrm{input} + 0.5$, with the 0.5 term ensuring at least one input 2027 is rejected. This number is further separated into the number of low 2028 values to exclude $N_\mathrm{low} = N_\mathrm{bad} / 2$, which will 2029 default to zero if there are few inputs, and $N_\mathrm{high} = 2030 N_\mathrm{input} + N_\mathrm{low} - N_\mathrm{bad}$. After sorting 2031 the input values to determine which values fall into the low and high 2032 groups, the remaining input values are used in a weighted mean using 2033 the image weights above. 1797 2034 1798 2035 A systematic variance term is necessary to correctly scale how … … 1804 2041 1805 2042 \begin{eqnarray} 1806 limit_{mixture model} &=& 4^2 * (variance_i + \sigma_{MM}^2) \\1807 limit_{default} &=& 4^2 * (variance_i + (0.1 * value_i)^2)2043 \mathrm{limit}_\mathrm{mixture model} &=& 4^2 * (\sigma^2_\mathrm{input} + \sigma_\mathrm{mixture model}^2) \\ 2044 \mathrm{limit}_\mathrm{default} &=& 4^2 * (\sigma^2_\mathrm{input} + (0.1 * \mathrm{value}_\mathrm{input})^2) 1808 2045 \end{eqnarray} 1809 2046 1810 2047 Each input pixel is then compared against this limit, and the most 1811 discrepant pixel that has $(value_i - mean)^2$ exceeding this limit is 1812 identified. If there are suspect pixels in the set those pixels are 1813 marked for rejection, otherwise this worst pixel is marked for 1814 rejection. Following this, the combine and test loop is repeated for 1815 until no more pixels are rejected, up to a maximum number of 1816 iterations equal to $50\%$ of the number of inputs. 2048 discrepant pixel that has $(\mathrm{value}_\mathrm{input} - 2049 \mathrm{mean})^2$ exceeding this limit is identified. If there are 2050 suspect pixels in the set, those pixels are marked for rejection, 2051 otherwise this worst pixel is marked for rejection. Following this, 2052 the combine and test loop is repeated for until no more pixels are 2053 rejected, up to a maximum number of iterations equal to $50\%$ of the 2054 number of inputs. 1817 2055 1818 2056 % combineTest … … 1848 2086 1849 2087 With the initial list of rejected pixels generated, a rejection mask 1850 is made by constructing an empty image that has the rejected pixels 1851 set to a value of 1.0. This image is then convolved with a 5 pixel 1852 FWHM zeroth-order ISIS kernel. Any pixels that are above the threshold of 1853 0.5 after this mask convolution are marked as bad and will be rejected in the final combination. 1854 If more than 10\% of all pixels from an input image are rejected, then 1855 that entire image is rejected as well. 2088 is made for the input warp by constructing an empty image that has the 2089 rejected pixels from that input set to a value of 1.0. This image is 2090 then convolved with a 5 pixel FWHM zeroth-order ISIS kernel. Any 2091 pixels that are above the threshold of 0.5 after this mask convolution 2092 are marked as bad and will be rejected in the final combination. If 2093 more than 10\% of all pixels from an input image are rejected, then 2094 the entire image is rejected as it likely has some systematic issue. 1856 2095 1857 2096 % PIXEL REJECTION … … 1862 2101 1863 2102 1864 \czwdraft{I'm not entirely sure why we do what appears to be a similar 1865 operation twice. It also seems odd that this is in the CombineFinal 1866 step, and not in the Reject step.} Finally, the rejected pixels are 1867 allowed to grow to include pixels that are neighbors to many rejected 1868 pixels. The ISIS kernel used in the previous step is used to 2103 Finally, a second pass at rejecting pixelsis conducted, by growing the 2104 current list to include pixels that are neighbors to many rejected 2105 pixels. The ISIS kernel used in the previous step is again used to 1869 2106 determine the largest square box that contains under the limit of 1870 $0.25 * \sum_{x,y} kernel^2$. This box is then convolved with the1871 rejected pixel mask to reject the neighboring pixels. This final list of 1872 rejected pixels is passed to the final combination, which creates the 1873 final stack values from the weighted mean of the non-rejected pixels. 1874 Six total images are constructed for this final stack: the image, its 1875 variance, a mask, a map of the exposure time per pixel, that exposure 1876 time map weighted by the input image weight, and a map of the number 1877 of inputs per pixel.2107 $0.25 * \sum_{x,y} kernel^2$. This square box is then convolved with 2108 the rejected pixel mask to reject the neighboring pixels. This final 2109 list of rejected pixels is passed to the final combination, which 2110 creates the final stack values from the weighted mean of the 2111 non-rejected pixels. Six total images are constructed for this final 2112 stack: the image, its variance, a mask, a map of the exposure time per 2113 pixel, that exposure time map weighted by the input image weight, and 2114 a map of the number of inputs per pixel. 1878 2115 1879 2116 % FINAL COMBINE … … 1945 2182 such that: $L = \mathrm{BOFFSET} + \mathrm{BSOFTEN} \cdot \left(\exp(C 1946 2183 / \alpha) - \exp(-C / \alpha)\right)$. 2184 2185 \begin{figure} 2186 \centering 2187 \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3775944_sci.jpg} 2188 \caption{Example of the stack image for skycell skycell.2047.005 2189 centered at ($\alpha,\delta$) = (179.763, 32.1899) in the \zps{} 2190 filter, stack\_id 3775944. This stack includes 25 input images, 2191 including o4985g0073o the warp image in Figure \ref{fig:warp 2192 image}, and has a combined exposure time of 870s. Combining 2193 such a large number of input images removes the inter-cell and 2194 inter-chip gaps, providing a fully populated image. In addition, 2195 the combined signal allows many more faint objects to be found 2196 than were visible on the single frame warp image.} 2197 2198 \label{fig:stack image} 2199 \end{figure} 2200 2201 \begin{figure} 2202 \centering 2203 \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3775944_mask.jpg} 2204 \caption{Example of the stack mask image for skycell 2205 skycell.2047.005 centered at ($\alpha,\delta$) = (179.763, 2206 32.1899) in the \zps{} filter, stack\_id 3775944. The entire 2207 frame is largely unmasked after combining inputs, with the only 2208 remaining masks falling on the cores of bright stars, and in small 2209 regions around the brighest objects where the overlapping of 2210 diffraction spike masks have removed all inputs.} 2211 2212 \label{fig:stack mask image} 2213 \end{figure} 2214 2215 \begin{figure} 2216 \centering 2217 \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3775944_wt.jpg} 2218 \caption{Example of the stack variance image for skycell 2219 skycell.2047.005 centered at ($\alpha,\delta$) = (179.763, 2220 32.1899) in the \zps{} filter, stack\_id 3775944. The variance 2221 map for this stack is reasonably smooth, with the mottled pattern 2222 from the inter-chip and inter-cell gaps printing through. Some 2223 regions with higher variance are found where the number of inputs 2224 is lower.} 2225 2226 \label{fig:stack wt image} 2227 \end{figure} 2228 2229 \begin{figure} 2230 \centering 2231 \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3775944_num.jpg} 2232 \caption{Example of the stack number image for skycell 2233 skycell.2047.005 centered at ($\alpha,\delta$) = (179.763, 2234 32.1899) in the \zps{} filter, stack\_id 3775944. This map shows 2235 the number of inputs contributing to each pixel of the output 2236 stack. Again, the pattern of the inter-chip and inter-cell gaps 2237 is visible, along with the mask pattern of regions with CTE 2238 problems (visible in the upper right corner). } 2239 2240 \label{fig:stack num image} 2241 \end{figure} 2242 2243 \begin{figure} 2244 \centering 2245 \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3775944_exp.jpg} 2246 \caption{Example of the stack exposure time image for skycell 2247 skycell.2047.005 centered at ($\alpha,\delta$) = (179.763, 2248 32.1899) in the \zps{} filter, stack\_id 3775944. As all input 2249 warps had the same 30s exposure time, this map essentially 2250 recreates the number map, with units of seconds of exposure 2251 instead of number of inputs contributing to a given pixel.} 2252 2253 \label{fig:stack exp image} 2254 \end{figure} 2255 2256 \begin{figure} 2257 \centering 2258 \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3775944_expwt.jpg} 2259 \caption{Example of the stack weighted exposure image for skycell 2260 skycell.2047.005 centered at ($\alpha,\delta$) = (179.763, 2261 32.1899) in the \zps{} filter, stack\_id 3775944. This map shows 2262 the weighted average exposure time, as described in the text. It 2263 is similar to the simple exposure time map, but shows how some 2264 input exposures have their contributions weighted down due to the 2265 observed larger image variances.} 2266 2267 2268 \label{fig:stack exp wtimage} 2269 \end{figure} 2270 2271 2272 2273 2274 2275 1947 2276 1948 2277 \section{Discussion}
Note:
See TracChangeset
for help on using the changeset viewer.
