IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40638 for trunk


Ignore:
Timestamp:
Mar 8, 2019, 11:46:56 AM (7 years ago)
Author:
eugene
Message:

updates to text, tweak figures a bit

Location:
trunk/doc/release.2015/ps1.detrend
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/release.2015/ps1.detrend/detrend.tex

    r40616 r40638  
    236236will be made available in a future data release.
    237237
    238 % \note{DS notes fonts are not consistent for keywords, etc}
    239 
    240238\section{Background}
    241239
     
    252250
    253251The Pan-STARRS image processing pipeline (IPP) is described elsewhere
    254 \citep{magnier2017.datasystem}, but a short summary follows.  The raw
     252(Paper II), but a short summary follows.  The raw
    255253image data is stored on the processing cluster, with a database
    256254containing the metadata of exposure parameters.  These raw images can
     
    258256stage performs the image detrending (described below in section
    259257\ref{sec:detrending}), as well as the single epoch photometry
    260 \citep{magnier2017.analysis}, in parallel on the individual OTA device
     258(Paper IV), in parallel on the individual OTA device
    261259data.  Following the \IPPstage{chip} stage is the \IPPstage{camera}
    262260stage, in which the astrometry and photometry for the entire exposure
     
    282280uses the objects detected in that to perform forced photometry on the
    283281individual \IPPstage{warp} stage images.  The details of these stages
    284 are provided in \citet{magnier2017.analysis}.
     282are provided in Paper IV.
     283
     284\begin{figure}[htpb]
     285  \centering
     286  \includegraphics[width=0.9\hsize,angle=0,clip]{{images/gpc1.layout}.pdf}
     287  \caption{Diagram illustrating layout of OTA devices in GPC1.  The
     288    blue dots mark the locations of the amplifiers for xy00 cells in
     289    each chip.  When cells are mosaicked to a single pixel grid, the
     290    pixel in this corner is at chip coordinate (1,1).  The figure
     291    illustrates the orientation of the OTA devices relative to the
     292    parity of the sky.  An exposure taken with North at the top of the
     293    field-of-view will have East to the left when the OTA devices are
     294    mosaicked as shown.  Note that the devices OTA0Y - OTA3Y are
     295    rotated by 180\degrees\ relative to the other half of the camera.
     296    The labeling of the non-existent corner OTAs is provided to orient
     297    the focal plane.}
     298  \label{fig:gpc1.layout}
     299\end{figure}
    285300
    286301A limited version of the same reduction procedure described above is also
     
    308323section \ref{sec:discussion}.
    309324
     325\begin{figure*}[htpb]
     326  \centering
     327  \begin{minipage}{0.45\hsize}
     328    \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_M_OS_NL_XY23_sm.png}
     329  \end{minipage}%
     330  \begin{minipage}{0.45\hsize}
     331    \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_to_DARK_XY23_sm.png}
     332  \end{minipage}
     333  \caption{{\bf Dark Correction:} 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, removing the amplifier glows in the cell corners.}
     334  \label{fig:dark image}
     335\end{figure*}
     336
    310337As mentioned above, the GPC1 camera is composed of 60 orthogonal
    311338transfer array (OTA) devices arranged in an $8\times{}8$ grid,
     
    313340$8\times{}8$ grid of readout cells consisting of $590 \times 598$
    314341pixels.  We label the OTAs by their coordinate in the camera grid in
    315 the form `OTAXY', where X and Y each range from 0 - 7, e.g., OTA12 would
    316 be the chip in the $(1,2)$ position of the grid. Similarly, we
     342the form `OTAXY', where X and Y each range from 0 - 7, e.g., OTA12
     343would be the chip in the $(1,2)$ position of the grid. Similarly, we
    317344identify the cells as `xyXY' where X and Y again each range from 0 -
    318 7. 
     3457.  Figure~\ref{fig:gpc1.layout} illustrates the physical layout of
     346the devices in the camera.
    319347
    320348Image products presented in figures have been mosaicked to arrange
     
    412440\label{sec:dark}
    413441
    414 \begin{figure}
    415   \centering
    416   \begin{minipage}{0.45\hsize}
    417     \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_M_OS_NL_XY23_sm.png}
    418   \end{minipage}%
    419   \begin{minipage}{0.45\hsize}
    420     \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_to_DARK_XY23_sm.png}
    421   \end{minipage}
    422   \caption{{\bf Dark Correction:} 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, removing the amplifier glows in the cell corners.}
    423   \label{fig:dark image}
    424 \end{figure}
    425 
    426442The dark current in the GPC1 detectors has significant variations
    427443across each cell.  The model we make to remove this signal considers
     
    447463\subsubsection{Time evolution}
    448464
    449 \begin{figure}
     465\begin{figure}[htpb]
    450466  \centering
    451467  \includegraphics[width=0.9\hsize,angle=0,clip]{images/B_profile_v1.pdf}
     
    524540significantly impact detrending.
    525541
     542\begin{figure*}[htpb]
     543  \centering
     544  \begin{minipage}{0.45\hsize}
     545    \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_VIDEODARK_VDim_Rdark_XY22_sm.png}
     546  \end{minipage}%
     547  \begin{minipage}{0.45\hsize}
     548    \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_VIDEODARK_VDim_VDdark_XY22_sm.png}
     549  \end{minipage}
     550  \caption{{\bf Video Dark:} 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 over subtracted with the standard dark.}
     551  \label{fig:video_darks}
     552\end{figure*}
     553
    526554\subsubsection{Video Dark}
    527555\label{sec:video_darks}
     
    560588darks, with the early video dark constructed in such a manner.
    561589
    562 \begin{figure}
    563   \centering
    564   \begin{minipage}{0.45\hsize}
    565     \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_VIDEODARK_VDim_Rdark_XY22_sm.png}
    566   \end{minipage}%
    567   \begin{minipage}{0.45\hsize}
    568     \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_VIDEODARK_VDim_VDdark_XY22_sm.png}
    569   \end{minipage}
    570   \caption{{\bf Video Dark:} 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 over subtracted with the standard dark.}
    571   \label{fig:video_darks}
    572 \end{figure}
    573 
    574590\subsection{Noisemap}
    575591\label{sec:noisemap}
     
    610626from random Gaussian noise, we estimated the true read noise level.
    611627
    612 As the noisemap uses bias frames that have had a dark model
    613 subtracted, we constructed noisemaps for each dark model used for
    614 science processing.  There is some evidence that the noise has changed
    615 over time as measured on full cells, so matching the noisemap to the
    616 dark model allows for these changes to be tracked.  There is no
    617 evidence that the noisemap has the A/B modes found in the dark, so we
    618 do not generate separate models for that time period.
    619 
    620 The noisemap detrend is not directly applied to the science image.
    621 Instead, it is used to construct the weight image that contains the
    622 pixel-by-pixel variance for the \IPPstage{chip} stage image.  The
    623 initial weight image is constructed by dividing the science image by
    624 the cell gain (approximately 1.0 e$^{-} /$ DN).  This weight image
    625 contains the expected Poissonian variance in electrons measured.  The
    626 square of the noisemap is then added to this initial weight, adding
    627 the additional empirical variance term in place of a single read noise
    628 value.
    629 
    630 \subsection{Flat}
    631 
    632 Determining a flat field correction for GPC1 is a challenging
    633 endeavor, as the wide field of view makes it difficult to construct a
    634 uniformly illuminated image.  Using a dome screen is not possible, as
    635 the variations in illumination and screen rigidity create large
    636 scatter between different images that are not caused by the detector
    637 response function.  Because of this, we use sky flat images taken at
    638 twilight, which are more consistently illuminated than screen flats.
    639 We calculate the mean of these images to determine the initial flat
    640 model.
    641 
    642 From this starting skyflat model, we construct a photometric
    643 correction to remove the effect of the illumination differences over
    644 the detector surface.  This is done by dithering a series of science
    645 exposures with a given pointing, as described in
    646 \citet{2004PASP..116..449M}.  By fully calibrating these exposures
    647 with the initial flat model, and then comparing the measured fluxes
    648 for the same star as a function of position on the detector, we can
    649 determine position dependent scaling factors.  From the set of scaling
    650 factors for the full catalog of stars observed in the dithered
    651 sequence, we can construct a model of the error in the initial flat
    652 model as a function of detector position.  Applying a correction that
    653 reduces the amplitude of these errors produces a flat field model that
    654 better represents the true detector response.
    655 
    656 In addition to this flat field applied to the individual images, the
    657 ``ubercal'' analysis -- in which photometric data are used define
    658 image zero points
    659 \citep[][]{2012ApJ...756..158S,magnier2017.calibration} and in turn
    660 used used to calibrate the database of all detections -- constructs
    661 ``in catalog'' flat field corrections.  Although a single set of image
    662 flat fields was used for the PV3 processing of the entire $3\pi$
    663 survey, five separate ``seasons'' of database flat fields were needed
    664 to ensure proper calibration.  This indicates that the flat field
    665 response is not completely fixed in time.  More details on this
    666 process are contained in \citet{magnier2017.calibration}.
    667 
    668 \subsection{Fringe correction}
    669 \label{sec:fringe}
    670 % det_id 296 is the fringe we use.
    671 
    672 Due to variations in the thickness of the detectors, we observe
    673 interference patterns at the infrared end of the filter set, as the
    674 wavelength of the light becomes comparable to the thickness of the
    675 detectors.  Visually inspecting the images shows that the fringing is
    676 most prevalent in the \yps{} filter images, with negligible fringing in the
    677 other bands.  As a result of this, we only apply a fringe correction
    678 to the \yps{} filter data.
    679 
    680 The fringe used for PV3 processing was constructed from a set of 20
    681 120s science exposures.  These exposures are overscan subtracted, and
    682 corrected for non-linearity, and have the dark and flat models
    683 applied.  These images are smoothed with a Gaussian kernel with
    684 $\sigma = 2$ pixels to minimize pixel to pixel noise.  The fringe
    685 image data is then constructed by calculating the clipped mean of the
    686 input images with two iteration of clipping at the $3\sigma$ level.
    687 
    688 A coarse background model for each cell is constructed by calculating
    689 the median on a 3x3 grid (approximately 200x200 pixels each).  A set
    690 of 1000 points are randomly selected from the fringe image for each
    691 cell, and a median calculated for this position in a 10x10 pixel box,
    692 with the background level subtracted.  These sample locations provide
    693 scale points to allow the amplitude of the measured fringe to be
    694 compared to that found on science images.
    695 
    696 To apply the fringe, the same sample locations are measured on the
    697 science image to determine the relative strength of the fringing in
    698 that particular image.  A least squares fit between the fringe
    699 measurements and the corresponding measurements on the science image
    700 provides the scale factor multiplied to the fringe before it is
    701 subtracted from the science image.  An example of the fringe correction can be seen in Figure~\ref{fig: fringe example}. 
    702 
    703 \begin{figure}
     628\begin{figure*}[htpb]
    704629  \centering
    705630  \begin{minipage}{0.45\hsize}
     
    717642    patterns.  }
    718643  \label{fig: fringe example}
    719 \end{figure}
    720 
    721 \subsection{Masking}
    722 \label{sec:masking}
    723 
    724 \subsubsection{Static Masks}
    725 \label{sec:static_masks}
    726 
    727 Due to the large size of the detector, it is expected that there are a
    728 number of pixels that respond poorly.  To remove these pixels, we have
    729 constructed a mask that identifies the known defects.  This mask is
    730 referred to as the ``static'' mask, as it is applied to all images
    731 processed.  The ``dynamic'' mask (Section \ref{sec:dynamic_masks}) is
    732 calculated based on objects in the field, and so changes between
    733 images.  Construction of the static mask consists of three phases.
    734 
    735 First, regions in which the charge transfer efficiency (CTE) is low
    736 compared to the rest of the detector are identified.  Twenty-five of
    737 the sixty OTAs in GPC1 show some evidence of poor CTE, with this
    738 pattern appearing (to varying degrees) in roughly triangular patches.
    739 During the manufacture of the devices, an improperly tuned
    740 semiconductor process step resulted in a radial pattern of poor
    741 performance on some silicon wafers.  When the OTAs were cut from these
    742 wafers, the outer corners exhibited the issue.  To generate the mask
    743 for these regions, a sample set of 26 evenly-illuminated flat-field
    744 images were measured to produce a map of the image variance in 20x20
    745 pixel bins.  As the flat screen is expected to illuminate the image
    746 uniformly on this scale, the expected variances in each bin should be
    747 Poissonian distributed with the flux level.  However, in regions with
    748 poor CTE, adjacent pixels are not independent, as the charge in those
    749 pixels is more free to spread along the image columns.  This reduces
    750 the pixel-to-pixel differences, resulting in a lower than expected
    751 variance.  All regions with variance less than half the average image
    752 level are added to the static mask.
    753 
    754 
    755 The next step of mask construction is to examine the flat and dark
    756 models, and exclude pixels that appear to be poorly corrected by these
    757 models.  The DARKMASK process looks for pixels that are more than
    758 $8\sigma$ discrepant in $10\%$ of the 100 input dark frame images
    759 after those images have had the dark model applied to them.  These
    760 pixels are assumed to be unstable with respect to the dark model, and
    761 have the DARK bit set in the static mask, indicating that they are
    762 unreliable in scientific observing.  Similarly, the FLATMASK process
    763 looks for pixels that are $3\sigma$ discrepant in the same fraction of
    764 16 input flat field images after both the dark and flat models have
    765 been applied.  Those pixels that do not follow the flat field model of
    766 the rest of image are assigned the FLAT mask bit in the static mask,
    767 removing the pixels that cannot be corrected to a linear response.
    768 
    769 % http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/StaticMasks20101215
    770 The final step of mask construction is to examine the detector for
    771 bright columns and other static pixel issues.  This is first done by
    772 processing a set of 100 \ips{} filter science images in the same fashion as
    773 for the DARKMASK.  A median image is constructed from these inputs
    774 along with the per-pixel variance.  These images are used to identify
    775 pixels that have unexpectedly low variation between all inputs, as
    776 well as those that significantly deviate from the global median value.
    777 Once this initial set of bad pixels is identified, a $3\times{}3$
    778 pixel triangular kernel is convolved with the initial set, and any
    779 convolved pixel with value greater than 1 is assigned to the static
    780 mask.  This does an excellent job of removing the majority of the
    781 problem pixels.  A subsequent manual inspection allows human
    782 interaction to identify other inconsistent pixels including the
    783 vignetted regions around the edge of the detector. 
    784 
    785 Figure \ref{fig:static mask} shows an example of the static mask for
    786 the full GPC1 field of view.  Table \ref{tab:mask_values} lists the
    787 bit mask values used for the different sources of masking.
    788 
    789 \begin{figure}
    790   \centering
    791   \includegraphics[width=0.9\hsize,angle=0,clip]{images/gpc1_mask_indexed.png}
    792   \caption{Image map of the GPC1 static mask.  The CTE regions are clearly visible as roughly triangular patches covering the corners of some OTAs.  Some entire cells are masked, including an entire column of cells on OTA14.  Calcite cells remove large areas from OTA17 AND OTA76.}
    793   \label{fig:static mask}
    794 \end{figure}
    795 
    796 \begin{deluxetable*}{ccl}
     644\end{figure*}
     645
     646As the noisemap uses bias frames that have had a dark model
     647subtracted, we constructed noisemaps for each dark model used for
     648science processing.  There is some evidence that the noise has changed
     649over time as measured on full cells, so matching the noisemap to the
     650dark model allows for these changes to be tracked.  There is no
     651evidence that the noisemap has the A/B modes found in the dark, so we
     652do not generate separate models for that time period.
     653
     654The noisemap detrend is not directly applied to the science image.
     655Instead, it is used to construct the weight image that contains the
     656pixel-by-pixel variance for the \IPPstage{chip} stage image.  The
     657initial weight image is constructed by dividing the science image by
     658the cell gain (approximately 1.0 e$^{-} /$ DN).  This weight image
     659contains the expected Poissonian variance in electrons measured.  The
     660square of the noisemap is then added to this initial weight, adding
     661the additional empirical variance term in place of a single read noise
     662value.
     663
     664\subsection{Flat}
     665
     666Determining a flat field correction for GPC1 is a challenging
     667endeavor, as the wide field of view makes it difficult to construct a
     668uniformly illuminated image.  Using a dome screen is not possible, as
     669the variations in illumination and screen rigidity create large
     670scatter between different images that are not caused by the detector
     671response function.  Because of this, we use sky flat images taken at
     672twilight, which are more consistently illuminated than screen flats.
     673We calculate the mean of these images to determine the initial flat
     674model.
     675
     676From this starting skyflat model, we construct a photometric
     677correction to remove the effect of the illumination differences over
     678the detector surface.  This is done by dithering a series of science
     679exposures with a given pointing, as described in
     680\citet{2004PASP..116..449M}.  By fully calibrating these exposures
     681with the initial flat model, and then comparing the measured fluxes
     682for the same star as a function of position on the detector, we can
     683determine position dependent scaling factors.  From the set of scaling
     684factors for the full catalog of stars observed in the dithered
     685sequence, we can construct a model of the error in the initial flat
     686model as a function of detector position.  Applying a correction that
     687reduces the amplitude of these errors produces a flat field model that
     688better represents the true detector response.
     689
     690In addition to this flat field applied to the individual images, the
     691``ubercal'' analysis -- in which photometric data are used define
     692image zero points
     693\citep[][]{2012ApJ...756..158S,magnier2017.calibration} and in turn
     694used used to calibrate the database of all detections -- constructs
     695``in catalog'' flat field corrections.  Although a single set of image
     696flat fields was used for the PV3 processing of the entire $3\pi$
     697survey, five separate ``seasons'' of database flat fields were needed
     698to ensure proper calibration.  This indicates that the flat field
     699response is not completely fixed in time.  More details on this
     700process are contained in Paper V.
     701
     702\subsection{Fringe correction}
     703\label{sec:fringe}
     704% det_id 296 is the fringe we use.
     705
     706Due to variations in the thickness of the detectors, we observe
     707interference patterns at the infrared end of the filter set, as the
     708wavelength of the light becomes comparable to the thickness of the
     709detectors.  Visually inspecting the images shows that the fringing is
     710most prevalent in the \yps{} filter images, with negligible fringing in the
     711other bands.  As a result of this, we only apply a fringe correction
     712to the \yps{} filter data.
     713
     714The fringe used for PV3 processing was constructed from a set of 20
     715120s science exposures.  These exposures are overscan subtracted, and
     716corrected for non-linearity, and have the dark and flat models
     717applied.  These images are smoothed with a Gaussian kernel with
     718$\sigma = 2$ pixels to minimize pixel to pixel noise.  The fringe
     719image data is then constructed by calculating the clipped mean of the
     720input images with two iteration of clipping at the $3\sigma$ level.
     721
     722\begin{deluxetable*}{ccl}[htp]
    797723  \tablecolumns{3}
    798724  \tablewidth{0pc}
     
    822748\end{deluxetable*}
    823749
     750A coarse background model for each cell is constructed by calculating
     751the median on a 3x3 grid (approximately 200x200 pixels each).  A set
     752of 1000 points are randomly selected from the fringe image for each
     753cell, and a median calculated for this position in a 10x10 pixel box,
     754with the background level subtracted.  These sample locations provide
     755scale points to allow the amplitude of the measured fringe to be
     756compared to that found on science images.
     757
     758To apply the fringe, the same sample locations are measured on the
     759science image to determine the relative strength of the fringing in
     760that particular image.  A least squares fit between the fringe
     761measurements and the corresponding measurements on the science image
     762provides the scale factor multiplied to the fringe before it is
     763subtracted from the science image.  An example of the fringe
     764correction can be seen in Figure~\ref{fig: fringe example}.
     765
     766\subsection{Masking}
     767\label{sec:masking}
     768
     769\subsubsection{Static Masks}
     770\label{sec:static_masks}
     771
     772Due to the large size of the detector, it is expected that there are a
     773number of pixels that respond poorly.  To remove these pixels, we have
     774constructed a mask that identifies the known defects.  This mask is
     775referred to as the ``static'' mask, as it is applied to all images
     776processed.  The ``dynamic'' mask (Section \ref{sec:dynamic_masks}) is
     777calculated based on objects in the field, and so changes between
     778images.  Construction of the static mask consists of three phases.
     779
     780First, regions in which the charge transfer efficiency (CTE) is low
     781compared to the rest of the detector are identified.  Twenty-five of
     782the sixty OTAs in GPC1 show some evidence of poor CTE, with this
     783pattern appearing (to varying degrees) in roughly triangular patches.
     784During the manufacture of the devices, an improperly tuned
     785semiconductor process step resulted in a radial pattern of poor
     786performance on some silicon wafers.  When the OTAs were cut from these
     787wafers, the outer corners exhibited the issue.  To generate the mask
     788for these regions, a sample set of 26 evenly-illuminated flat-field
     789images were measured to produce a map of the image variance in 20x20
     790pixel bins.  As the flat screen is expected to illuminate the image
     791uniformly on this scale, the expected variances in each bin should be
     792Poissonian distributed with the flux level.  However, in regions with
     793poor CTE, adjacent pixels are not independent, as the charge in those
     794pixels is more free to spread along the image columns.  This reduces
     795the pixel-to-pixel differences, resulting in a lower than expected
     796variance.  All regions with variance less than half the average image
     797level are added to the static mask.
     798
     799The next step of mask construction is to examine the flat and dark
     800models, and exclude pixels that appear to be poorly corrected by these
     801models.  The DARKMASK process looks for pixels that are more than
     802$8\sigma$ discrepant in $10\%$ of the 100 input dark frame images
     803after those images have had the dark model applied to them.  These
     804pixels are assumed to be unstable with respect to the dark model, and
     805have the DARK bit set in the static mask, indicating that they are
     806unreliable in scientific observing.  Similarly, the FLATMASK process
     807looks for pixels that are $3\sigma$ discrepant in the same fraction of
     80816 input flat field images after both the dark and flat models have
     809been applied.  Those pixels that do not follow the flat field model of
     810the rest of image are assigned the FLAT mask bit in the static mask,
     811removing the pixels that cannot be corrected to a linear response.
     812
     813\begin{figure}[b]
     814  \centering
     815  \includegraphics[width=0.9\hsize,angle=0,clip]{images/gpc1_mask_indexed.png}
     816  \caption{Image map of the GPC1 static mask.  The CTE regions are clearly visible as roughly triangular patches covering the corners of some OTAs.  Some entire cells are masked, including an entire column of cells on OTA14.  Calcite cells remove large areas from OTA17 AND OTA76.}
     817  \label{fig:static mask}
     818\end{figure}
     819
     820\begin{deluxetable}{lllc}[htpb]
     821  \tablecolumns{4}
     822  \tablewidth{0pc}
     823  \tablecaption{GPC1 Crosstalk Rules}
     824  \tablehead{\colhead{Type}&\colhead{Source OTA/Cell}&\colhead{Ghost OTA/Cell}&\colhead{$\Delta m$}}
     825  \startdata
     826  Inter-OTA & OTA2Y XY3v & OTA3Y XY3v & 6.16 \\
     827            & OTA3Y XY3v & OTA2Y XY3v &      \\
     828            & OTA4Y XY3v & OTA5Y XY3v &      \\
     829            & OTA5Y XY3v & OTA4Y XY3v &      \\
     830  Intra-OTA & OTA2Y XY5v & OTA2Y XY6v & 7.07 \\
     831            & OTA2Y XY6v & OTA2Y XY5v &      \\
     832            & OTA5Y XY5v & OTA5Y XY6v &      \\
     833            & OTA5Y XY6v & OTA5Y XY5v &      \\
     834  One-way   & OTA2Y XY7v & OTA3Y XY2v & 7.34 \\
     835            & OTA5Y XY7v & OTA4Y XY2v &      \\
     836  \enddata
     837  \label{tab:crosstalk_rules}
     838\end{deluxetable}
     839
     840% http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/StaticMasks20101215
     841The final step of mask construction is to examine the detector for
     842bright columns and other static pixel issues.  This is first done by
     843processing a set of 100 \ips{} filter science images in the same fashion as
     844for the DARKMASK.  A median image is constructed from these inputs
     845along with the per-pixel variance.  These images are used to identify
     846pixels that have unexpectedly low variation between all inputs, as
     847well as those that significantly deviate from the global median value.
     848Once this initial set of bad pixels is identified, a $3\times{}3$
     849pixel triangular kernel is convolved with the initial set, and any
     850convolved pixel with value greater than 1 is assigned to the static
     851mask.  This does an excellent job of removing the majority of the
     852problem pixels.  A subsequent manual inspection allows human
     853interaction to identify other inconsistent pixels including the
     854vignetted regions around the edge of the detector. 
     855
     856Figure \ref{fig:static mask} shows an example of the static mask for
     857the full GPC1 field of view.  Table~\ref{tab:mask_values} lists the
     858bit mask values used for the different sources of masking.
     859
    824860\subsubsection{Dynamic masks}
    825861\label{sec:dynamic_masks}
     
    884920pixels.
    885921
    886 \paragraph{Optical ghosts}
    887 \label{sec:optical_ghosts}
    888 
    889 The anti-reflective coating on the optical surfaces of GPC1 is less
    890 effective at shorter wavelengths, which can allow bright sources to
    891 reflect back onto the focal plane and generate large out-of-focus
    892 objects.  Due to the wavelength dependence, these objects are most
    893 prominent in the \gps{} filter data.  These objects are the result of
    894 light reflecting back off the surface of the detector, reflecting
    895 again off the lower surfaces of the optics (particularly the L1
    896 corrector lens), and then back down onto the focal plane.  Due to the
    897 extra travel distance, the resulting source is out of focus and
    898 elongated along the radial direction of the camera focal
    899 plane. Figure~\ref{fig:optical ghosts} shows an example exposure with
    900 several prominent optical ghosts.
    901 
    902 These optical ghosts can be modeled in the focal plane coordinates
    903 ($L,M$) which has its origin at the center of the focal plane.  In
    904 this system, a bright object at location ($L,M$) on the focal plane
    905 creates a reflection ghost on the opposite side of the optical axis
    906 near ($-L,-M$).  The exact location is fit as a third order polynomial
    907 in the focal plane $L$ and $M$ directions (as listed in Table
    908 \ref{tab:ghost_centers}).  An elliptical annulus mask is constructed
    909 at the expected ghost location, with the major and minor axes of the inner and outer elliptical annuli defined
    910 by linear functions of the ghost distance from the optical axis, and
    911 oriented with the ellipse major axis is along the radial direction
    912 (Table \ref{tab:ghost_radii}).  All stars brighter than a
    913 filter-dependent threshold (listed in Table
    914 \ref{tab:ghost_magnitudes}) have such masks constructed.
    915 
    916 \begin{deluxetable}{lllc}
    917   \tablecolumns{4}
    918   \tablewidth{0pc}
    919   \tablecaption{GPC1 Crosstalk Rules}
    920   \tablehead{\colhead{Type}&\colhead{Source OTA/Cell}&\colhead{Ghost OTA/Cell}&\colhead{$\Delta m$}}
    921   \startdata
    922   Inter-OTA & OTA2Y XY3v & OTA3Y XY3v & 6.16 \\
    923             & OTA3Y XY3v & OTA2Y XY3v &      \\
    924             & OTA4Y XY3v & OTA5Y XY3v &      \\
    925             & OTA5Y XY3v & OTA4Y XY3v &      \\
    926   Intra-OTA & OTA2Y XY5v & OTA2Y XY6v & 7.07 \\
    927             & OTA2Y XY6v & OTA2Y XY5v &      \\
    928             & OTA5Y XY5v & OTA5Y XY6v &      \\
    929             & OTA5Y XY6v & OTA5Y XY5v &      \\
    930   One-way   & OTA2Y XY7v & OTA3Y XY2v & 7.34 \\
    931             & OTA5Y XY7v & OTA4Y XY2v &      \\
    932   \enddata
    933   \label{tab:crosstalk_rules}
    934 \end{deluxetable}
    935 
    936 \begin{deluxetable}{lcc}
     922\begin{deluxetable}{lcc}[htpb]
    937923  \tablecolumns{3}
    938924  \tablewidth{0pc}
     
    954940\end{deluxetable}
    955941
    956 \begin{deluxetable*}{lcccc}
     942\paragraph{Optical ghosts}
     943\label{sec:optical_ghosts}
     944
     945The anti-reflective coating on the optical surfaces of GPC1 is less
     946effective at shorter wavelengths, which can allow bright sources to
     947reflect back onto the focal plane and generate large out-of-focus
     948objects.  Due to the wavelength dependence, these objects are most
     949prominent in the \gps{} filter data.  These objects are the result of
     950light reflecting back off the surface of the detector, reflecting
     951again off the lower surfaces of the optics (particularly the L1
     952corrector lens), and then back down onto the focal plane.  Due to the
     953extra travel distance, the resulting source is out of focus and
     954elongated along the radial direction of the camera focal
     955plane. Figure~\ref{fig:optical ghosts} shows an example exposure with
     956several prominent optical ghosts.
     957
     958\begin{deluxetable*}{lcccc}[htpb]
    957959  \tablecolumns{5}
    958960  \tablewidth{0pc}
    959961  \tablecaption{Optical Ghost Annulus Axis Length}
    960962  \tablehead{\colhead{Radial Order}&\colhead{Inner Major Axis}&\colhead{Inner Minor Axis}&\colhead{Outer Major Axis}&\colhead{Outer Minor Axis}}
     963  % \tablehead{\colhead{Order}&\colhead{Maj$_{\rm in}$}&\colhead{Min$_{\rm in}$}&    \colhead{Maj$_{\rm out}$}&\colhead{Min$_{\rm out}$}}
    961964  \startdata
    962965  $r^0$ & 3.926693e+01 & 5.287548e+01 & 7.928722e+01 & 1.314265e+02 \\
     
    966969\end{deluxetable*}
    967970
    968 %% \begin{deluxetable}{lcccc}
    969 %%   \tablecolumns{5}
    970 %%   \tablewidth{0pc}
    971 %%   \tablecaption{Optical Ghost Annulus Axis Length}
    972 %%   \tablehead{\colhead{Order}&\colhead{Maj$_{\rm in}$}&\colhead{Min$_{\rm in}$}&    \colhead{Maj$_{\rm out}$}&\colhead{Min$_{\rm out}$}}
    973 %%   \startdata
     971These optical ghosts can be modeled in the focal plane coordinates
     972($L,M$) which has its origin at the center of the focal plane.  In
     973this system, a bright object at location ($L,M$) on the focal plane
     974creates a reflection ghost on the opposite side of the optical axis
     975near ($-L,-M$).  The exact location is fit as a third order polynomial
     976in the focal plane $L$ and $M$ directions (as listed in Table
     977\ref{tab:ghost_centers}).  An elliptical annulus mask is constructed
     978at the expected ghost location, with the major and minor axes of the inner and outer elliptical annuli defined
     979by linear functions of the ghost distance from the optical axis, and
     980oriented with the ellipse major axis is along the radial direction
     981(Table \ref{tab:ghost_radii}).  All stars brighter than a
     982filter-dependent threshold (listed in Table
     983\ref{tab:ghost_magnitudes}) have such masks constructed.
     984
     985%% \begin{table*}[htpb]
     986%% \begin{center}
     987%%   % \tablecolumns{5}
     988%%   % \tablewidth{0pc}
     989%%   % \tablecaption{Optical Ghost Annulus Axis Length}
     990%%   \caption{Optical Ghost Annulus Axis Length\label{tab:ghost_radii}}
     991%%   \begin{tabular}{lcccc}
     992%%   % \tablehead{\colhead{Radial Order}&\colhead{Inner Major Axis}&\colhead{Inner Minor Axis}&\colhead{Outer Major Axis}&\colhead{Outer Minor Axis}}
     993%%   % \startdata
     994%%   \hline
     995%%   \hline
     996%%   {\bf Radial Order}&{\bf Inner Major Axis}&{\bf Inner Minor Axis}&{\bf Outer Major Axis}&{\bf Outer Minor Axis} \\
     997%%   \hline
    974998%%   $r^0$ & 3.926693e+01 & 5.287548e+01 & 7.928722e+01 & 1.314265e+02 \\
    975999%%   $r^1$ & 5.325759e-03 &-2.191669e-03 & 1.722181e-02 & -2.627153e-03 \\
    976 %%   \enddata
    977 %%   \label{tab:ghost_radii}
    978 %% \end{deluxetable}
    979 
    980 \begin{deluxetable}{lrr}
     1000%%   \hline
     1001%%   \end{tabular}
     1002%% \end{center}
     1003%% \end{table*}
     1004
     1005\paragraph{Optical glints}
     1006\label{sec:glints}
     1007
     1008Prior to 2010-08-24, a reflective surface at the edge of the camera
     1009aperture was incompletely screened to light passing through the
     1010telescope.  Sources brighter than $m_{inst} = -21$ ($\rps \lesssim
     10117.5$) that fell on this reflective surface resulted in light being
     1012scattered across the detector surface in a long narrow glint. 
     1013Figure~\ref{fig:optical glints} shows an example exposure with
     1014a prominent optical glint.
     1015
     1016This reflective surface in the camera was physically masked on
     10172010-08-24, removing the possibility of glints in subsequent data, but
     1018images that were taken prior to this date have an advisory dynamic
     1019mask constructed when a reference source falls on the focal plane
     1020within one degree of the detector edge.  This mask is 150 pixels wide,
     1021with length $L = 2500 \left(-20 - m_{inst}\right)$ pixels.  These
     1022glint masks are constructed by selecting sufficiently bright sources
     1023in the reference catalog that fall within rectangular regions around
     1024each edge of the GPC1 camera.  These regions are separated from the
     1025edge of the camera by 17 arcminutes, and extend outwards an additional
     1026degree.
     1027
     1028\paragraph{Diffraction Spikes and Saturated Stars}
     1029\label{sec:diffraction_spikes}
     1030
     1031Bright sources also form diffraction spikes that are dynamically
     1032masked.  These are filter independent, and are modeled as rectangles
     1033with length $L = 10^{0.096 \times (7.35 - m_{inst})} - 200$ and
     1034width $W = 8 + (L - 200) \times 0.01$, with negative values indicating no
     1035mask is constructed, as the source is likely too faint to produce the
     1036feature.  These spikes are dependent on the camera rotation, and are
     1037oriented based on the header keyword at $\theta = n \times \frac{\pi}{2} -
     1038\mathrm{ROTANGLE} + 0.798$, for $n = {0,1,2,3}$.
     1039
     1040The cores of stars that are saturated are masked as well, with a
     1041circular mask radius $r = 10.15 \times (-15 - m_{inst})$.  An
     1042example of a saturated star, with the masked regions for the
     1043diffraction spikes and core saturation highlighted, is shown in Figure
     1044\ref{fig:saturated star}.
     1045
     1046Saturation for the GPC1 detectors varies from chip to chip and cell to
     1047cell.  Saturation levels have been measured in the lab for each cell
     1048and are recorded in the headers.  The IPP analysis code reads the
     1049header value to determine the appropriate saturation point.  Of the
     10503840 cells in GPC1, the median saturation level is 60,400; 95\% have
     1051saturation levels $> 54,500$ DN; 99\% have saturation levels $>
     105241,000$ DN.  A small number of cells have recorded saturation values
     1053much lower than these values, but these also tend to be the cells for
     1054which other cosmetic effects (\eg, CTE \& dark current) are strong,
     1055likely affecting the measurement of the saturation value.
     1056
     1057\begin{figure*}[htpb]
     1058  \centering
     1059% \includegraphics[width=0.9\hsize,angle=0,clip]{images/full_fpa_ghosts.jpg}
     1060% \includegraphics[width=0.9\hsize,angle=0,clip]{images/full_fpa_ghosts_sm.png}
     1061  \includegraphics[width=0.9\hsize,angle=0,clip]{images/GPC1_Ghosts_with_Zoom.png}
     1062  \caption{{\bf Ghosts:} Example of optical ghosts in GPC1.  The
     1063    central $6 \times 6$ detectors from exposure o5677g0123o
     1064    (2011-04-26, 43s \gps{} filter) are shown.  The dashed red lines
     1065    link three example sets of stellar sources and the destinations of
     1066    the corresponding ghosts.  The insets zoom in on these ghosts and
     1067    highlight the increasingly distorted images away from the optical
     1068    axis.  The bright star on OTA33 results in a nearly circular ghost
     1069    on the opposite OTA.  In contrast, the trio of stars on OTA11
     1070    result in very elongated ghosts on OTA66, in the upper left
     1071    corner.}
     1072  \label{fig:optical ghosts}
     1073\end{figure*}
     1074
     1075\begin{figure*}[htpb]
     1076  \centering
     1077% \includegraphics[width=0.9\hsize,angle=0,clip]{images/glint_example_o5379g0103o.jpg}
     1078  \includegraphics[width=0.9\hsize,angle=0,clip]{images/full_fpa_glints_sm.png}
     1079  \caption{{\bf Glints:}  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.}
     1080  \label{fig:optical glints}
     1081\end{figure*}
     1082
     1083\begin{figure}[htpb]
     1084  \centering
     1085  \includegraphics[width=0.9\hsize,angle=0,clip]{images/o6802g0338o_SATSTAR_XY51_sm.png}
     1086  \caption{Example of saturated star, with diffraction spikes extending from the core on exposure o6802g0338o, OTA51 (2014-05-25, 45s \gps{} filter).}
     1087  \label{fig:saturated star}
     1088\end{figure}
     1089
     1090\subsubsection{Masking Fraction}
     1091\label{sec:masking_fraction}
     1092
     1093The GPC1 camera was designed such that where possible, OTAs with CTE
     1094issues were placed towards the edge of the detector.  Because of this,
     1095the main analysis of the mask fraction is based not on the total
     1096footprint of the detector, but upon a circular reference field of view
     1097with a radius of 1.5 degrees.  This radius corresponds approximately
     1098to half the width and height of the detector.  This field of view
     1099underestimates the unvignetted region of GPC1.  A second ``maximum''
     1100field of view is also used to estimate the mask fraction within a
     1101larger 1.628 degree radius.  This larger radius includes far larger
     1102missing fractions due to the circular regions outside region populated
     1103with OTAs, but does include the contribution from well-illuminated
     1104pixels that are ignored by the reference radius.
     1105
     1106The results of simulating the footprint of the detector as a grid of
     1107uniformly sized pixels of $0\farcs{}258$ size are provided in Table
     1108\ref{tab:mask fraction}.  Both fields of view contain circular
     1109segments outside of the footprint of the detector, which increase the
     1110area estimate that is unpopulated.  This category also accounts for
     1111the inter-OTA and inter-cell gaps.  The regions with poor CTE also
     1112contribute to a significant fraction of the masked pixels.  The
     1113remaining mask category accounts for known bad columns, cells that do
     1114not calibrate well, and vignetting.  There are also a small fraction
     1115that have static advisory masks marked on all images.  These masks
     1116mark regions where bright columns on one cell periodically create
     1117cross talk ghosts on other cells.
     1118
     1119%% summary of different masking fractions:
     1120%%                64       60      Ch   3.00  3.25
     1121%% Good pix :  71.28    76.030   76.0   78.9  71.1
     1122%% Off Chip :  15.700   10.083   10.1   13.1  19.6
     1123%% Flaws    :   3.296    3.515   10.7   
     1124%% Flat     :   4.541    4.844
     1125%% Various  :   2.157    2.303
     1126%% CTE      :   2.104    2.244    2.2    2.3   2.6
     1127%% Other    :   0.638    0.681    1.0    5.4   6.4
     1128%% advisory :                            0.3   0.3
     1129%%
     1130%% 64, 60 : from CZW comment in Chambers et al: masking fractions
     1131%% counting the full set of 64 (theoretical) or 60 chips
     1132
     1133%% Ch : totals from Table 3 in Chambers et al, matches '60'
     1134
     1135%% 3.00, 3.25 : from Table 6 this paper: masking fractions for 3 and
     1136%% 3.25 deg FOV circles assuming a theoretical fixed focal plane pixel
     1137%% grid.  This analysis uses the accounting in the gpc1 database table
     1138%% and compares with a nominal number of pixels in the circles.
     1139
     1140%% Unpopulated = BLANK, DETECTOR, FLAT, DARK, CTE
     1141%% I'm not sure where his CTE value comes from (not the database query)
     1142%% Other = CR, SPIKE, GHOST, STARCORE [Ghost & Spike probably dominate]
     1143
     1144\begin{deluxetable}{lrr}[b]
    9811145  \tablecolumns{3}
    9821146  \tablewidth{0pc}
     
    9951159\end{deluxetable}
    9961160
    997 \paragraph{Optical glints}
    998 \label{sec:glints}
    999 
    1000 Prior to 2010-08-24, a reflective surface at the edge of the camera
    1001 aperture was incompletely screened to light passing through the
    1002 telescope.  Sources brighter than $m_{inst} = -21$ ($\rps \lesssim
    1003 7.5$) that fell on this reflective surface resulted in light being
    1004 scattered across the detector surface in a long narrow glint. 
    1005 Figure~\ref{fig:optical glints} shows an example exposure with
    1006 a prominent optical glint.
    1007 
    1008 This reflective surface in the camera was physically masked on
    1009 2010-08-24, removing the possibility of glints in subsequent data, but
    1010 images that were taken prior to this date have an advisory dynamic
    1011 mask constructed when a reference source falls on the focal plane
    1012 within one degree of the detector edge.  This mask is 150 pixels wide,
    1013 with length $L = 2500 \left(-20 - m_{inst}\right)$ pixels.  These
    1014 glint masks are constructed by selecting sufficiently bright sources
    1015 in the reference catalog that fall within rectangular regions around
    1016 each edge of the GPC1 camera.  These regions are separated from the
    1017 edge of the camera by 17 arcminutes, and extend outwards an additional
    1018 degree.
    1019 
    1020 \paragraph{Diffraction Spikes and Saturated Stars}
    1021 \label{sec:diffraction_spikes}
    1022 
    1023 Bright sources also form diffraction spikes that are dynamically
    1024 masked.  These are filter independent, and are modeled as rectangles
    1025 with length $L = 10^{0.096 \times (7.35 - m_{inst})} - 200$ and
    1026 width $W = 8 + (L - 200) \times 0.01$, with negative values indicating no
    1027 mask is constructed, as the source is likely too faint to produce the
    1028 feature.  These spikes are dependent on the camera rotation, and are
    1029 oriented based on the header keyword at $\theta = n \times \frac{\pi}{2} -
    1030 \mathrm{ROTANGLE} + 0.798$, for $n = {0,1,2,3}$.
    1031 
    1032 The cores of stars that are saturated are masked as well, with a
    1033 circular mask radius $r = 10.15 \times (-15 - m_{inst})$.  An
    1034 example of a saturated star, with the masked regions for the
    1035 diffraction spikes and core saturation highlighted, is shown in Figure
    1036 \ref{fig:saturated star}.
    1037 
    1038 Saturation for the GPC1 detectors varies from chip to chip and cell to
    1039 cell.  Saturation levels have been measured in the lab for each cell
    1040 and are recorded in the headers.  The IPP analysis code reads the
    1041 header value to determine the appropriate saturation point.  Of the
    1042 3840 cells in GPC1, the median saturation level is 60,400; 95\% have
    1043 saturation levels $> 54,500$ DN; 99\% have saturation levels $>
    1044 41,000$ DN.  A small number of cells have recorded saturation values
    1045 much lower than these values, but these also tend to be the cells for
    1046 which other cosmetic effects (\eg, CTE \& dark current) are strong,
    1047 likely affecting the measurement of the saturation value.
    1048 
    1049 \begin{figure}
    1050   \centering
    1051 % \includegraphics[width=0.9\hsize,angle=0,clip]{images/full_fpa_ghosts.jpg}
    1052   \includegraphics[width=0.9\hsize,angle=0,clip]{images/full_fpa_ghosts_sm.png}
    1053   \caption{{\bf Ghosts:} Example of the full GPC1 field of view
    1054     illustrating the sources and destinations of optical ghosts on
    1055     exposure o5677g0123o (2011-04-26, 43s \gps{} filter).  The bright
    1056     stars on OTA33 and OTA44 result in nearly circular ghosts on the
    1057     opposite OTA.  In contrast, the trio of stars on OTA11 result in
    1058     very elongated ghosts on OTA66.}
    1059   \label{fig:optical ghosts}
    1060 \end{figure}
    1061 
    1062 \begin{figure}
    1063   \centering
    1064 % \includegraphics[width=0.9\hsize,angle=0,clip]{images/glint_example_o5379g0103o.jpg}
    1065   \includegraphics[width=0.9\hsize,angle=0,clip]{images/full_fpa_glints_sm.png}
    1066   \caption{{\bf Glints:}  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.}
    1067   \label{fig:optical glints}
    1068 \end{figure}
    1069 
    1070 \begin{figure}
    1071   \centering
    1072   \includegraphics[width=0.9\hsize,angle=0,clip]{images/o6802g0338o_SATSTAR_XY51_sm.png}
    1073   \caption{Example of saturated star, with diffraction spikes extending from the core on exposure o6802g0338o, OTA51 (2014-05-25, 45s \gps{} filter).}
    1074   \label{fig:saturated star}
    1075 \end{figure}
    1076 
    1077 \subsubsection{Masking Fraction}
    1078 \label{sec:masking_fraction}
    1079 
    1080 The GPC1 camera was designed such that where possible, OTAs with CTE
    1081 issues were placed towards the edge of the detector.  Because of this,
    1082 the main analysis of the mask fraction is based not on the total
    1083 footprint of the detector, but upon a circular reference field of view
    1084 with a radius of 1.5 degrees.  This radius corresponds approximately
    1085 to half the width and height of the detector.  This field of view
    1086 underestimates the unvignetted region of GPC1.  A second ``maximum''
    1087 field of view is also used to estimate the mask fraction within a
    1088 larger 1.628 degree radius.  This larger radius includes far larger
    1089 missing fractions due to the circular regions outside region populated
    1090 with OTAs, but does include the contribution from well-illuminated
    1091 pixels that are ignored by the reference radius.
    1092 
    1093 The results of simulating the footprint of the detector as a grid of
    1094 uniformly sized pixels of $0\farcs{}258$ size are provided in Table
    1095 \ref{tab:mask fraction}.  Both fields of view contain circular
    1096 segments outside of the footprint of the detector, which increase the
    1097 area estimate that is unpopulated.  This category also accounts for
    1098 the inter-OTA and inter-cell gaps.  The regions with poor CTE also
    1099 contribute to a significant fraction of the masked pixels.  The
    1100 remaining mask category accounts for known bad columns, cells that do
    1101 not calibrate well, and vignetting.  There are also a small fraction
    1102 that have static advisory masks marked on all images.  These masks
    1103 mark regions where bright columns on one cell periodically create
    1104 cross talk ghosts on other cells.
    1105 
    11061161During the \IPPstage{camera} processing, a separate estimate of the
    11071162mask fraction for a given exposure is calculated by counting the
     
    11171172The significant advisory value is a result of applying such masks to
    11181173all burntool corrected pixels.
    1119 
    1120 \begin{deluxetable}{lcc}
    1121   \tablecolumns{3}
    1122   \tablewidth{0pc}
    1123   \tablecaption{Mask Fraction by Mask Source}
    1124   \tablehead{\colhead{Mask Source}&\colhead{3 Degree FOV}&\colhead{3.25 Degree FOV}}
    1125   \startdata
    1126   Good pixel      & 78.9\% & 71.1\% \\
    1127   Unpopulated     & 13.1\% & 19.6\% \\
    1128   CTE issue       &  2.3\% &  2.6\% \\
    1129   Other issue     &  5.4\% &  6.4\% \\
    1130   Static advisory &  0.3\% &  0.3\% \\
    1131   \enddata
    1132   \label{tab:mask fraction}
    1133 \end{deluxetable}
    11341174
    11351175\subsection{Background subtraction}
     
    12371277model mean and standard deviation.
    12381278
     1279\begin{deluxetable}{lcc}[htpb]
     1280  \tablecolumns{3}
     1281  \tablewidth{0pc}
     1282  \tablecaption{Mask Fraction by Mask Source}
     1283  \tablehead{
     1284    &\multicolumn{2}{c}{Field of View} \\
     1285    \colhead{Mask Source}&\colhead{3\degree}&\colhead{3.25\degree}}
     1286  \startdata
     1287  Good pixel              & 78.9\% & 71.1\% \\
     1288  Unpopulated             & 13.1\% & 19.6\% \\
     1289  CTE issue               &  2.3\% &  2.6\% \\
     1290  Other issue             &  5.4\% &  6.4\% \\
     1291  Static advisory         &  0.3\% &  0.3\% \\
     1292  \enddata
     1293  \label{tab:mask fraction}
     1294\end{deluxetable}
     1295
    12391296Although this background modeling process works well for most of the
    12401297sky, astronomical sources that are large compared to the
     
    12711328minutes.
    12721329
    1273 Both of these types of persistence trails are measured and optionally
    1274 repaired via the \IPPprog{burntool} program.  This program does an
    1275 initial scan of the image, and identifies objects with pixel values
    1276 higher than a conservative threshold of 30000 DN.  The trail from the
    1277 peak of that object is fit with a one-dimensional power law in each
    1278 pixel column above the threshold, based on empirical evidence that
    1279 this is the functional form of this persistence effect.  This fit also
    1280 matches the expectation that a constant fraction of charge is
    1281 incompletely transferred at each shift beyond the persistence
    1282 threshold.  Once the fit is done, the model can be subtracted from
    1283 the image.  The location of the source is stored in a table along
    1284 with the exposure PONTIME, which denotes the number of seconds since
    1285 the detector was last powered on and provides an internally
    1286 consistent time scale.
    1287 
    1288 For subsequent exposures, the table associated with the previous image
    1289 is read in, and after correcting trails from the stars on the new
    1290 image, the positions of the bright stars from the table are used to
    1291 check for remnant trails from previous exposures on the image.  These
    1292 are fit and subtracted using a one-dimensional exponential model,
    1293 again based on empirical studies.  The output table retains this
    1294 remnant position for 2000 seconds after the initial PONTIME recorded.
    1295 This allows fits to be attempted well beyond the nominal lifetime of
    1296 these trails.  Figure \ref{fig:burntool images} shows an example of a
    1297 cell with a persistence trail from a bright star, the post-correction
    1298 result, as well as the pre and post correction versions of the same
    1299 cell on the subsequent exposure.  The profiles along the detector
    1300 columns for these two exposures are presented in Figure
    1301 \ref{fig:burntool plot}.
    1302 
    1303 Using this method of correcting the persistence trails has the
    1304 challenge that it is based on fits to the raw image data, which may
    1305 have other signal sources not determined by the persistence effect.
    1306 The presence of other stars or artifacts in the detector column can
    1307 result in a poor model to be fit, resulting in either an over- or
    1308 under-subtraction of the trail.  For this reason, the image mask is
    1309 marked with a value indicating that this correction has been applied.
    1310 These pixels are not fully excluded, but they are marked as suspect,
    1311 which allows them to be excluded from consideration in subsequent
    1312 stages, such as image stacking.
    1313 
    1314 The cores of very bright stars can also be deformed by this process,
    1315 as the burntool fitting subtracts flux from only one side of the star.
    1316 As most stars that result in persistence trails already have saturated
    1317 cores, they are already ignored for the purpose of PSF determination
    1318 and are flagged as saturated by the photometry reduction.
    1319 
    1320 \begin{figure}
     1330\begin{figure}[htpb]
    13211331  \centering
    13221332  \begin{minipage}{0.45\hsize}
     
    13361346\end{figure}
    13371347
    1338 
    1339 \begin{figure}
     1348Both of these types of persistence trails are measured and optionally
     1349repaired via the \IPPprog{burntool} program.  This program does an
     1350initial scan of the image, and identifies objects with pixel values
     1351higher than a conservative threshold of 30000 DN.  The trail from the
     1352peak of that object is fit with a one-dimensional power law in each
     1353pixel column above the threshold, based on empirical evidence that
     1354this is the functional form of this persistence effect.  This fit also
     1355matches the expectation that a constant fraction of charge is
     1356incompletely transferred at each shift beyond the persistence
     1357threshold.  Once the fit is done, the model can be subtracted from
     1358the image.  The location of the source is stored in a table along
     1359with the exposure PONTIME, which denotes the number of seconds since
     1360the detector was last powered on and provides an internally
     1361consistent time scale.
     1362
     1363For subsequent exposures, the table associated with the previous image
     1364is read in, and after correcting trails from the stars on the new
     1365image, the positions of the bright stars from the table are used to
     1366check for remnant trails from previous exposures on the image.  These
     1367are fit and subtracted using a one-dimensional exponential model,
     1368again based on empirical studies.  The output table retains this
     1369remnant position for 2000 seconds after the initial PONTIME recorded.
     1370This allows fits to be attempted well beyond the nominal lifetime of
     1371these trails.  Figure \ref{fig:burntool images} shows an example of a
     1372cell with a persistence trail from a bright star, the post-correction
     1373result, as well as the pre and post correction versions of the same
     1374cell on the subsequent exposure.  The profiles along the detector
     1375columns for these two exposures are presented in Figure
     1376\ref{fig:burntool plot}.
     1377
     1378\begin{figure}[htpb]
    13401379  \centering
    13411380  \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123n4o_XY11_bt_trail.pdf}
     
    13531392  \label{fig:burntool plot}
    13541393\end{figure}
     1394
     1395Using this method of correcting the persistence trails has the
     1396challenge that it is based on fits to the raw image data, which may
     1397have other signal sources not determined by the persistence effect.
     1398The presence of other stars or artifacts in the detector column can
     1399result in a poor model to be fit, resulting in either an over- or
     1400under-subtraction of the trail.  For this reason, the image mask is
     1401marked with a value indicating that this correction has been applied.
     1402These pixels are not fully excluded, but they are marked as suspect,
     1403which allows them to be excluded from consideration in subsequent
     1404stages, such as image stacking.
     1405
     1406The cores of very bright stars can also be deformed by this process,
     1407as the burntool fitting subtracts flux from only one side of the star.
     1408As most stars that result in persistence trails already have saturated
     1409cores, they are already ignored for the purpose of PSF determination
     1410and are flagged as saturated by the photometry reduction.
    13551411
    13561412\subsection{Non-linearity Correction}
     
    14021458rejected.
    14031459
     1460\begin{deluxetable}{lcccc}[htpb]
     1461  \tablecolumns{3}
     1462  \tablewidth{0pc}
     1463  \tablecaption{Cells which have PATTERN.ROW correction applied}
     1464  \tablehead{\colhead{OTA} & \colhead{Cell columns} & \colhead{Additional cells}}
     1465  \startdata
     1466  OTA11 &  & xy02, xy03, xy04, xy07 \\
     1467  OTA14 &  & xy23 \\
     1468  OTA15 & 0 & \\
     1469  OTA27 & 0, 1, 2, 3, 7 & \\
     1470  OTA31 & 7 & \\
     1471  OTA32 & 3, 7 & \\
     1472  OTA45 & 3, 7 & \\
     1473  OTA47 & 0, 3, 5, 7 & \\
     1474  OTA57 & 0, 1, 2, 6, 7 & \\
     1475  OTA60 &  & xy55 \\
     1476  OTA74 & 2, 7 & \\
     1477  \enddata
     1478  \label{tab:pattern_row_cells}
     1479\end{deluxetable}
     1480
    14041481% this figure does not really clarify anything
    1405 % \begin{figure}
     1482% \begin{figure}[htpb]
    14061483%   \centering
    14071484%   \includegraphics[width=0.9\hsize,angle=0,clip]{images/linearity_XY27_xy16.png}
     
    14481525linear ramp that exists in the sky.
    14491526
     1527\begin{figure}[htpb]
     1528  \centering
     1529  \includegraphics[width=0.9\hsize,angle=0,clip]{images/pattern_row_edit.png}
     1530  \caption{Diagram illustrating in red which cells on GPC1 require the PATTERN.ROW correction to be applied.  The footprint of each OTA is outlined, and cell xy00 is marked with either a filled box or an outline.  The labeling of the non-existent corner OTAs is provided to orient the focal plane.}
     1531  \label{fig: pattern row cells}
     1532\end{figure}
     1533
    14501534These row-by-row variations have the largest impact on data taken in
    14511535the \gps{} filter, as the read noise is the dominant noise source in
     
    14771561shows an example of a cell pre- and post-correction.
    14781562
    1479 \begin{deluxetable}{lcccc}
    1480   \tablecolumns{3}
    1481   \tablewidth{0pc}
    1482   \tablecaption{Cells which have PATTERN.ROW correction applied}
    1483   \tablehead{\colhead{OTA} & \colhead{Cell columns} & \colhead{Additional cells}}
    1484   \startdata
    1485   OTA11 &  & xy02, xy03, xy04, xy07 \\
    1486   OTA14 &  & xy23 \\
    1487   OTA15 & 0 & \\
    1488   OTA27 & 0, 1, 2, 3, 7 & \\
    1489   OTA31 & 7 & \\
    1490   OTA32 & 3, 7 & \\
    1491   OTA45 & 3, 7 & \\
    1492   OTA47 & 0, 3, 5, 7 & \\
    1493   OTA57 & 0, 1, 2, 6, 7 & \\
    1494   OTA60 &  & xy55 \\
    1495   OTA74 & 2, 7 & \\
    1496   \enddata
    1497   \label{tab:pattern_row_cells}
    1498 \end{deluxetable}
    1499 
    1500 \begin{figure}
    1501   \centering
    1502   \includegraphics[width=0.9\hsize,angle=0,clip]{images/pattern_row_edit.png}
    1503   \caption{Diagram illustrating in red which cells on GPC1 require the PATTERN.ROW correction to be applied.  The footprint of each OTA is outlined, and cell xy00 is marked with either a filled box or an outline.  The labeling of the non-existent corner OTAs is provided to orient the focal plane.}
    1504   \label{fig: pattern row cells}
    1505 \end{figure}
    1506 
    1507 \begin{figure}
     1563\begin{figure*}[htpb]
    15081564  \centering
    15091565  \begin{minipage}{0.45\hsize}
     
    15151571  \caption{{\bf Correlated Noise:} Example of the PATTERN.ROW correction on exposure o5379g0103o OTA57 cell xy01 (\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.}
    15161572  \label{fig: pattern row example}
    1517 \end{figure}
     1573\end{figure*}
    15181574
    15191575\subsubsection{Pattern Continuity}
     
    15931649the PV3 processing.
    15941650
    1595 \begin{deluxetable*}{lcccc}
     1651\begin{deluxetable*}{lcccc}[htpb]
    15961652  \tablecolumns{5}
    15971653  \tablewidth{0pc}
     
    16161672
    16171673
    1618 \begin{deluxetable*}{lcccc}
     1674\begin{deluxetable*}{lcccc}[htpb]
    16191675  \tablecolumns{5}
    16201676  \tablewidth{0pc}
     
    16331689\end{deluxetable*}
    16341690
    1635 \begin{deluxetable*}{lclll}
     1691\begin{deluxetable*}{lclll}[htpb]
    16361692  \tablecolumns{5}
    16371693  \tablewidth{0pc}
     
    16821738\label{sec:warping}
    16831739
    1684 In order to perform image combination operations (stacking and
    1685 differences), the individual OTA images are geometrically transformed
    1686 to a set of images with a consistent and uniform relationship between
    1687 sky coordinates and image pixels.  This warping operation transforms
    1688 the image pixels from the regular grid laid out on the chips in the
    1689 camera to a system of pixels with consistent geometry for a location
    1690 on the sky.
    1691 
    1692 The new image coordinate system is defined by one of a number of
    1693 ``tessellations'' which specify how the sky is divided into individual
    1694 images.  A single tessellation starts with a collection of projection
    1695 centers distributed across the sky.  A grid of image pixels about each
    1696 projection center corresponds to sky positions via a projection with a
    1697 specified pixel scale and rotation.  In general, the pixel grid within
    1698 the projection is defined as a simplified grid with the y-axis aligned
    1699 to the Declination lines and no distortion terms.  The projection
    1700 centers are typically separated by several degrees on the sky; for
    1701 pixel scales appropriate to GPC1, the resulting collection of pixels
    1702 would be unwieldy in terms of memory in the processing computer.  The
    1703 pixel grid is thus subdivided into smaller sub-images called
    1704 'skycells'.
    1705 
    1706 A tessellation can be defined for a limited region, with only a small
    1707 number of projection centers (e.g., for processing the M31 region), or
    1708 even a single projection center (e.g., for the Medium Deep fields).
    1709 For the $3\pi$ survey, the tessellation contains projection centers
    1710 covering the entire sky.  The version used to for the PV3 analysis is
    1711 called the \ippmisc{RINGS.V3}.  This tessellation consists of 2643
    1712 projection centers spaced every four degrees in DEC, with RA spacing
    1713 of approximately four degrees, adjusted to ensure an integer number of
    1714 equal-sized regions.  \ippmisc{RINGS.V3} uses a pixel scale of
    1715 $0\farcs{}25$ per pixel.  The projections subdivided into a
    1716 $10\times{}10$ grid of skycells, with an overlap region of
    1717 60\arcsec\ between adjacent skycells to ensure that objects of modest
    1718 size are not split on all images.  The coordinate system used for
    1719 these images matches the parity of the sky, with north in the positive
    1720 $y$ direction and east to the negative $x$ direction.
    1721 
    1722 After the detrending and photometry, the detection catalog for the
    1723 full camera is fit to the reference catalog, producing astrometric
    1724 solutions that map the detector focal plane to the sky, and map the
    1725 individual OTA pixels to the detector focal plane
    1726 \citep[see][]{magnier2017.calibration}.  This solution is then used to
    1727 determine which skycells the exposure OTAs overlap.
    1728 
    1729 For each output skycell, all overlapping OTAs and the calibrated
    1730 catalog are read into the \IPPprog{pswarp} program.  The output warp
    1731 image is broken into $128\times{}128$ pixel grid boxes.  For purposes
    1732 of speed, each grid box has a locally linear map calculated that
    1733 converts the output warp image coordinates to the input chip image
    1734 coordinates.  By doing the transformation in this direction, each
    1735 output pixel has a unique sampling position on the input image
    1736 (although it may be off the image frame and therefore not populated),
    1737 guaranteing that all output pixels are addressed, and thus preventing
    1738 gaps in the output image due to the spacing of the input pixels.
    1739 
    1740 With the locally linear grid defined, Lanczos interpolation
    1741 \citep{lanczos1956applied} with filter size parameter $a = 3$ on the
    1742 input image is used to determine the values to assign to the output
    1743 pixel location.  This interpolation kernel was chosen as a compromise
    1744 between simple interpolations and higher-order Lanczos kernels, with
    1745 the goal of limiting the smear in the output image while avoiding
    1746 the high-frequency ringing generated by higher order kernels.  This
    1747 process is repeated for all grid boxes, for all input images, and for
    1748 each output image product: the science image, the variance, and the
    1749 mask.  The image values are scaled by the absolute value of the
    1750 Jacobian determinant of the transformation for each grid box.  This
    1751 corrects the pixel values for the possible change in pixel area due to
    1752 the transformation.  Similarly, the variance image is scaled by the
    1753 square of this value, again to correctly account for the pixel area
    1754 change.
    1755 
    1756 The interpolation constructs the output pixels from more than one
    1757 input pixel, which introduces covariance between pixels.  For each
    1758 locally-linear grid box, the covariance matrix is calculated from the
    1759 kernel in the center of the 128 pixel range.  Once the image has been
    1760 fully populated, this set of individual covariance matrices are
    1761 averaged to create the final covariance for the full image.
    1762 
    1763 An output catalog is also constructed from the full exposure input
    1764 catalog, including only those objects that fall on the new warped image.
    1765 These detections are transformed to match the new image location, and
    1766 to scale the position uncertainties based on the new orientation.
    1767 
    1768 The output image also contains header keywords SRC\_nnnn, SEC\_nnnn,
    1769 MPX\_nnnn, and MPY\_nnnn that define the mappings from the warped
    1770 pixel space to the input images.  The 'nnnn' for each keyword has the
    1771 values 0000, 0001, etc., up to the number of input images.  The SRC
    1772 keyword lists the input OTA name, and the SEC keyword lists the image
    1773 section that the mapping covers.  The MPX and MPY contain the
    1774 back-transformation linearized across the full chip.  These parameters
    1775 are stored in a string listing the reference position in the chip
    1776 coordinate frame, the slope of the relation in the warp $x$ axis, and
    1777 the slope of the relation in the warp $y$ axis.  From these keywords,
    1778 any position in the warp can be mapped back to the location in any of
    1779 the input OTA images, with some reduction in accuracy.
    1780 
    1781 Examples of a warped signal, variance, and mask image are illustrated
    1782 in Figures~\ref{fig:warp image} through \ref{fig:warp mask}.
    1783 
    1784 \begin{figure}
     1740\begin{figure}[htpb]
    17851741  \centering
    17861742  \includegraphics[width=0.9\hsize,angle=0,clip]{images/warp_2046019_sci_sm.png}
     
    17951751\end{figure}
    17961752
    1797 \begin{figure}
     1753\begin{figure}[htpb]
    17981754  \centering
    17991755  \includegraphics[width=0.9\hsize,angle=0,clip]{images/warp_2046019_var_sm.png}
     
    18101766\end{figure}
    18111767
    1812 \begin{figure}
     1768\begin{figure}[htpb]
    18131769  \centering
    18141770  \includegraphics[width=0.9\hsize,angle=0,clip]{images/warp_2046019_mask.png}
     
    18281784\end{figure}
    18291785
     1786In order to perform image combination operations (stacking and
     1787differences), the individual OTA images are geometrically transformed
     1788to a set of images with a consistent and uniform relationship between
     1789sky coordinates and image pixels.  This warping operation transforms
     1790the image pixels from the regular grid laid out on the chips in the
     1791camera to a system of pixels with consistent geometry for a location
     1792on the sky.
     1793
     1794The new image coordinate system is defined by one of a number of
     1795``tessellations'' which specify how the sky is divided into individual
     1796images.  A single tessellation starts with a collection of projection
     1797centers distributed across the sky.  A grid of image pixels about each
     1798projection center corresponds to sky positions via a projection with a
     1799specified pixel scale and rotation.  In general, the pixel grid within
     1800the projection is defined as a simplified grid with the y-axis aligned
     1801to the Declination lines and no distortion terms.  The projection
     1802centers are typically separated by several degrees on the sky; for
     1803pixel scales appropriate to GPC1, the resulting collection of pixels
     1804would be unwieldy in terms of memory in the processing computer.  The
     1805pixel grid is thus subdivided into smaller sub-images called
     1806'skycells'.
     1807
     1808A tessellation can be defined for a limited region, with only a small
     1809number of projection centers (e.g., for processing the M31 region), or
     1810even a single projection center (e.g., for the Medium Deep fields).
     1811For the $3\pi$ survey, the tessellation contains projection centers
     1812covering the entire sky.  The version used to for the PV3 analysis is
     1813called the \ippmisc{RINGS.V3}.  This tessellation consists of 2643
     1814projection centers spaced every four degrees in DEC, with RA spacing
     1815of approximately four degrees, adjusted to ensure an integer number of
     1816equal-sized regions.  \ippmisc{RINGS.V3} uses a pixel scale of
     1817$0\farcs{}25$ per pixel.  The projections subdivided into a
     1818$10\times{}10$ grid of skycells, with an overlap region of
     181960\arcsec\ between adjacent skycells to ensure that objects of modest
     1820size are not split on all images.  The coordinate system used for
     1821these images matches the parity of the sky, with north in the positive
     1822$y$ direction and east to the negative $x$ direction.
     1823
     1824After the detrending and photometry, the detection catalog for the
     1825full camera is fit to the reference catalog, producing astrometric
     1826solutions that map the detector focal plane to the sky, and map the
     1827individual OTA pixels to the detector focal plane
     1828(see Paper V).  This solution is then used to
     1829determine which skycells the exposure OTAs overlap.
     1830
     1831For each output skycell, all overlapping OTAs and the calibrated
     1832catalog are read into the \IPPprog{pswarp} program.  The output warp
     1833image is broken into $128\times{}128$ pixel grid boxes.  For purposes
     1834of speed, each grid box has a locally linear map calculated that
     1835converts the output warp image coordinates to the input chip image
     1836coordinates.  By doing the transformation in this direction, each
     1837output pixel has a unique sampling position on the input image
     1838(although it may be off the image frame and therefore not populated),
     1839guaranteing that all output pixels are addressed, and thus preventing
     1840gaps in the output image due to the spacing of the input pixels.
     1841
     1842With the locally linear grid defined, Lanczos interpolation
     1843\citep{lanczos1956applied} with filter size parameter $a = 3$ on the
     1844input image is used to determine the values to assign to the output
     1845pixel location.  This interpolation kernel was chosen as a compromise
     1846between simple interpolations and higher-order Lanczos kernels, with
     1847the goal of limiting the smear in the output image while avoiding
     1848the high-frequency ringing generated by higher order kernels.  This
     1849process is repeated for all grid boxes, for all input images, and for
     1850each output image product: the science image, the variance, and the
     1851mask.  The image values are scaled by the absolute value of the
     1852Jacobian determinant of the transformation for each grid box.  This
     1853corrects the pixel values for the possible change in pixel area due to
     1854the transformation.  Similarly, the variance image is scaled by the
     1855square of this value, again to correctly account for the pixel area
     1856change.
     1857
     1858\begin{figure}[t]
     1859  \centering
     1860  \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_sci_sm.png}
     1861  \caption{Example of the stack image for skycell skycell.1146.095
     1862    centered at ($\alpha,\delta$) = (11.934, -4.197) in the \rps{}
     1863    filter, stack\_id 3956997.  This stack includes 39 input images
     1864    including o5104g0266o, the warp image in Figure \ref{fig:warp
     1865      image}, and has a combined exposure time of 1880s.  Combining
     1866    such a large number of input images removes the inter-cell and
     1867    inter-chip gaps, providing a fully populated image.  In addition,
     1868    the combined signal allows many more faint objects to be found
     1869    than were visible on the single frame warp image.}
     1870
     1871  \label{fig:stack image}
     1872\end{figure}
     1873
     1874The interpolation constructs the output pixels from more than one
     1875input pixel, which introduces covariance between pixels.  For each
     1876locally-linear grid box, the covariance matrix is calculated from the
     1877kernel in the center of the 128 pixel range.  Once the image has been
     1878fully populated, this set of individual covariance matrices are
     1879averaged to create the final covariance for the full image.
     1880
     1881An output catalog is also constructed from the full exposure input
     1882catalog, including only those objects that fall on the new warped image.
     1883These detections are transformed to match the new image location, and
     1884to scale the position uncertainties based on the new orientation.
     1885
     1886The output image also contains header keywords SRC\_nnnn, SEC\_nnnn,
     1887MPX\_nnnn, and MPY\_nnnn that define the mappings from the warped
     1888pixel space to the input images.  The 'nnnn' for each keyword has the
     1889values 0000, 0001, etc., up to the number of input images.  The SRC
     1890keyword lists the input OTA name, and the SEC keyword lists the image
     1891section that the mapping covers.  The MPX and MPY contain the
     1892back-transformation linearized across the full chip.  These parameters
     1893are stored in a string listing the reference position in the chip
     1894coordinate frame, the slope of the relation in the warp $x$ axis, and
     1895the slope of the relation in the warp $y$ axis.  From these keywords,
     1896any position in the warp can be mapped back to the location in any of
     1897the input OTA images, with some reduction in accuracy.
     1898
     1899Examples of a warped signal, variance, and mask image are illustrated
     1900in Figures~\ref{fig:warp image} through \ref{fig:warp mask}.
     1901
    18301902\section{Stacking}
    18311903\label{sec:stacking}
     1904
     1905\begin{figure}[t]
     1906  \centering
     1907  \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_var_sm.png}
     1908  \caption{Example of the stack variance image for skycell
     1909    skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
     1910    in the \rps{} filter, stack\_id 3956997.  The variance
     1911    map for this stack is reasonably smooth, with the mottled pattern
     1912    from the inter-chip and inter-cell gaps printing through.  Some
     1913    regions with higher variance are found where the number of inputs
     1914    is lower.}
     1915
     1916  \label{fig:stack wt image}
     1917\end{figure}
    18321918
    18331919Once individual exposures have been warped onto a common projection
     
    18571943and image components are loaded into the \IPPprog{ppStack} program to
    18581944prepare the inputs and stack the frames.
     1945
     1946\begin{figure}[t]
     1947  \centering
     1948  \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_mask.png}
     1949  \caption{Example of the stack mask image for skycell
     1950    skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
     1951    in the \rps{} filter, stack\_id 3956997.  The entire frame is
     1952    largely unmasked after combining inputs, with the only remaining
     1953    masks falling on the cores of bright stars, and in small regions
     1954    around the brightest objects where the overlapping of diffraction
     1955    spike masks have removed all inputs.}
     1956  \label{fig:stack mask image}
     1957\end{figure}
    18591958
    18601959Once all files are ingested, the first step is to measure the size and
     
    18931992included in the zeropoint and transparency values.
    18941993
     1994\begin{figure}[t]
     1995  \centering
     1996  \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_num_sm.png}
     1997  \caption{Example of the stack number image for skycell
     1998    skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
     1999    in the \rps{} filter, stack\_id 3956997.  This map shows
     2000    the number of inputs contributing to each pixel of the output
     2001    stack.  Again, the pattern of the inter-chip and inter-cell gaps
     2002    is visible, along with other mask features. }
     2003
     2004  \label{fig:stack num image}
     2005\end{figure}
     2006
    18952007The zeropoint calibration performed here uses the calibration of the
    18962008individual input exposures against the reference catalog.  Upon the
     
    19002012the entire region of the sky imaged.  This further calibration is not
    19012013available at the time of stacking, and so there may be small residuals
    1902 in the transparency values as a result of this \citep{magnier2017.calibration}.
     2014in the transparency values as a result of this (Paper V).
    19032015
    19042016With the flux normalization factors and target PSF chosen, the
     
    19272039the square of it, scaling all inputs to the common zeropoint.
    19282040
     2041\begin{figure}[t]
     2042  \centering
     2043  \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_exp_sm.png}
     2044  \caption{Example of the stack exposure time image for skycell
     2045    skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
     2046    in the \rps{} filter, stack\_id 3956997.  Since the input
     2047    exposures had exposures times of 40 and 60 seconds, the pattern
     2048    observed here similar to, but subtly different from the number
     2049    map.}
     2050  \label{fig:stack exp image}
     2051\end{figure}
     2052
    19292053Once the convolution kernels are defined for each image, they are used
    19302054to convolve the image to match the target PSF.  Any input image that
     
    19712095The output mask value is taken to be zero (no masked bits), unless
    19722096there were no valid inputs, in which case the BLANK mask bit is set.
     2097
     2098\begin{figure}[t]
     2099  \centering
     2100  \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_expwt_sm.png}
     2101  \caption{Example of the stack weighted exposure image for skycell
     2102    skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
     2103    in the \rps{} filter, stack\_id 3956997.  This map shows
     2104    the weighted average exposure time, as described in the text.  It
     2105    is similar to the simple exposure time map, but shows how some
     2106    input exposures have their contributions weighted down due to the
     2107    observed larger image variances.}
     2108  \label{fig:stack exp wtimage}
     2109\end{figure}
    19732110
    19742111Due to uncorrected artifacts that can occur on GPC1, and the fact that
     
    21132250such that: $L = \mathrm{BOFFSET} + \mathrm{BSOFTEN} \cdot \left(\exp(C
    21142251/ \alpha) - \exp(-C / \alpha)\right)$.
    2115 
    2116 \begin{figure}
    2117   \centering
    2118   \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_sci_sm.png}
    2119   \caption{Example of the stack image for skycell skycell.1146.095
    2120     centered at ($\alpha,\delta$) = (11.934, -4.197) in the \rps{}
    2121     filter, stack\_id 3956997.  This stack includes 39 input images
    2122     including o5104g0266o, the warp image in Figure \ref{fig:warp
    2123       image}, and has a combined exposure time of 1880s.  Combining
    2124     such a large number of input images removes the inter-cell and
    2125     inter-chip gaps, providing a fully populated image.  In addition,
    2126     the combined signal allows many more faint objects to be found
    2127     than were visible on the single frame warp image.}
    2128 
    2129   \label{fig:stack image}
    2130 \end{figure}
    2131 
    2132 \begin{figure}
    2133   \centering
    2134   \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_mask.png}
    2135   \caption{Example of the stack mask image for skycell
    2136     skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
    2137     in the \rps{} filter, stack\_id 3956997.  The entire frame is
    2138     largely unmasked after combining inputs, with the only remaining
    2139     masks falling on the cores of bright stars, and in small regions
    2140     around the brightest objects where the overlapping of diffraction
    2141     spike masks have removed all inputs.}
    2142   \label{fig:stack mask image}
    2143 \end{figure}
    2144 
    2145 \begin{figure}
    2146   \centering
    2147   \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_var_sm.png}
    2148   \caption{Example of the stack variance image for skycell
    2149     skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
    2150     in the \rps{} filter, stack\_id 3956997.  The variance
    2151     map for this stack is reasonably smooth, with the mottled pattern
    2152     from the inter-chip and inter-cell gaps printing through.  Some
    2153     regions with higher variance are found where the number of inputs
    2154     is lower.}
    2155 
    2156   \label{fig:stack wt image}
    2157 \end{figure}
    2158 
    2159 \begin{figure}
    2160   \centering
    2161   \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_num_sm.png}
    2162   \caption{Example of the stack number image for skycell
    2163     skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
    2164     in the \rps{} filter, stack\_id 3956997.  This map shows
    2165     the number of inputs contributing to each pixel of the output
    2166     stack.  Again, the pattern of the inter-chip and inter-cell gaps
    2167     is visible, along with other mask features. }
    2168 
    2169   \label{fig:stack num image}
    2170 \end{figure}
    2171 
    2172 \begin{figure}
    2173   \centering
    2174   \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_exp_sm.png}
    2175   \caption{Example of the stack exposure time image for skycell
    2176     skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
    2177     in the \rps{} filter, stack\_id 3956997.  Since the input
    2178     exposures had exposures times of 40 and 60 seconds, the pattern
    2179     observed here similar to, but subtly different from the number
    2180     map.}
    2181   \label{fig:stack exp image}
    2182 \end{figure}
    2183 
    2184 \begin{figure}
    2185   \centering
    2186   \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_expwt_sm.png}
    2187   \caption{Example of the stack weighted exposure image for skycell
    2188     skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
    2189     in the \rps{} filter, stack\_id 3956997.  This map shows
    2190     the weighted average exposure time, as described in the text.  It
    2191     is similar to the simple exposure time map, but shows how some
    2192     input exposures have their contributions weighted down due to the
    2193     observed larger image variances.}
    2194   \label{fig:stack exp wtimage}
    2195 \end{figure}
    21962252
    21972253\section{Difference Images}
     
    22502306pointings are as close to identical as possible.  The observing
    22512307strategy to enable this is discussed in more detail in
    2252 \citet{chambers2017}.
     2308Paper I.
    22532309
    22542310
Note: See TracChangeset for help on using the changeset viewer.