IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 28, 2017, 2:55:27 PM (9 years ago)
Author:
eugene
Message:

updates to the analysis paper

File:
1 edited

Legend:

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

    r39948 r39960  
    103103\section{INTRODUCTION}\label{sec:intro}
    104104
     105\begin{verbatim}
     106here is a list of things to do:
     107* clear out \note entries
     108  * explain use of covariance
     109  * add example for sky model
     110  * Kaiser optimal detection reference
     111  * find a brighter-fatter reference
     112* define more tests and generate examples
     113  * simulation example of background subtraction at different densities
     114  * real example of oversubtracted galaxy
     115* check all references
     116* fix the \code macro to work with alternate concepts
     117  * DONE : the use of \textbf style formats was a problem : expects \textbf{foobar}
     118\end{verbatim}
     119
    105120This is the fourth in a series of seven papers describing the
    106121Pan-STARRS1 Surveys, the data reduction techiques and the resulting
     
    163178    from early users of the data products are welcome during the
    164179    submission and refereeing process.}}
     180
     181\end{document}
    165182
    166183\section{Background}
     
    227244
    228245When the IPP development was starting, the existing photometry
    229 packages either did not meet the accuracy requirements or
    230 required too much human intervention to be considered for the needs of
    231 PS1.  In the case of the SDSS Photo tool, the software was judged to
    232 be too tightly integrated to the architecture of SDSS to be easily
    233 re-integrated into the Pan-STARRS pipeline.  A new photometry analysis
    234 package was developed using lessons learned from the existing
    235 photometry systems.  In the process, the source analysis software was
    236 written using the data analysis C-code library written for the IPP,
    237 \code{psLib}.  Components of the photometry code were integrated into
     246packages either did not meet the accuracy requirements or required too
     247much human intervention to be considered for the needs of PS1.  In the
     248case of the SDSS Photo tool, the software was judged to be too tightly
     249integrated to the architecture of SDSS to be easily re-integrated into
     250the Pan-STARRS pipeline.  A new photometry analysis package was
     251developed using lessons learned from the existing photometry systems.
     252In the process, the source analysis software was written using the
     253data analysis C-code library written for the IPP, \code{psLib}
     254\citep{psLib}.  Components of the photometry code were integrated into
    238255the IPP's mid-level astronomy data analysis toolkit called
    239 \code{psModules}.  The resulting software, `\code{psphot}', can be used either
    240 as a stand-alone C program, or as a set of library functions which may
    241 be integrated into other programs
    242 
    243 \note{add refs to the psLib and psModules ADDs}
    244 
    245 The main version of \code{psphot} is a stand-alone program which is run on a
    246 single image, or a group of related images representing the data read
    247 from a camera in a single exposure.  The images are expected to have
    248 already been detrended so that pixel values are linearly related to
    249 the flux.  The gain may be specified by the configuration system, or a
    250 variance image may be supplied.  A mask may also be supplied to mark
    251 good, bad, and suspect pixels.  Several variants of psphot have also
    252 been used in the PS1 PV3 analysis.  \note{ppImage version is an
    253   integrated library call}
    254 
    255 The version called \code{psphotStack} accepts a set of images, each
     256\code{psModules} \citep{psModules}.  The resulting software,
     257`\code{psphot}', can be used either as a stand-alone C program, or as
     258a set of library functions which may be integrated into other programs
     259
     260% \note{add refs to the psLib and psModules ADDs} : ref to online docs?
     261
     262Several variants of \code{psphot} have been used in the PS1 PV3
     263analysis.  The main variant of \code{psphot} operates on a single
     264image, or a group of related images representing the data read from a
     265camera in a single exposure.  The images are expected to have already
     266been detrended so that pixel values are linearly related to the flux.
     267The gain may be specified by the configuration system, or a variance
     268image may be supplied.  A mask may also be supplied to mark good, bad,
     269and suspect pixels.  This variant of \code{psphot} can be called as a
     270stand-alone program, also called \code{psphot}.  In standard IPP
     271operations, this variant is used as a library call within the analysis
     272program \code{ppImage} during the \ippstage{chip} analysis stage.
     273
     274The variant called \code{psphotStack} accepts a set of images, each
    256275representing the same patch of sky in a different filter, nominally
    257276the full $grizy$ filter set for the analysis of the PS1 PV3 stack
     
    265284photometry.
    266285
    267 Another version of \code{psphot} used in the PV3 analysis is called
    268 \code{psphotFullForce}.  In this version, a set of image all representing the
     286Another variant of \code{psphot} used in the PV3 analysis is called
     287\code{psphotFullForce}.  In this variant, a set of image all representing the
    269288same pixels are processed together, with the positions of sources to
    270 be analysed loaded from a supplied file.  In this version of the
     289be analysed loaded from a supplied file.  In this variant of the
    271290analysis, sources are not discovered -- only the supplied sources are
    272291considered.  PSF models are determined for each exposure and the
     
    389408case the PSF modeling stage can be skipped.
    390409
    391 {\bf A note on nomenclature:}
     410% {\bf A note on nomenclature:  ???}
    392411
    393412\subsection{Image Preparation}
     
    415434saturated pixel.  In addition, the mask pixels are used to define the
    416435pixels available during a model fit, and which should be ignored for
    417 that specific fit (\code{MARK = 0x8000}).  The initial mask, if not
    418 supplied by the user, is constructed by default from the image by
    419 applying three rules: 1) Pixels which are above a specified saturation
    420 level are marked as saturated.  The level is specified by the camera
    421 format keyword \code{CELL.SATURATION}, which may specify a value or
    422 define a header keyword which in turn specifies the value in the image
    423 header.  In the case of PS1 PV3, the header keyword \code{MAXLIN}
    424 specifies the saturation level for each chip. \note{refer to detrend
    425   paper here?  what are GPC1 saturation levels?}. 2) Pixels which are
    426 below a user-defined value are considered unresponsive and masked as
    427 dead.  (camera format keyword \code{CELL.BAD} = 0 for PS1 PV3).  3)
    428 Pixels which lie outside of a user-defined coordinate window are
    429 considered non-data pixels (eg, overscan) and are marked as invalid.
    430 (psphot recipe keywords \code{XMIN}, \code{XMAX}, \code{YMIN},
    431 \code{YMAX}, all set to 0 for PS1 PV3 -- invalid pixels were specified
    432 for PS1 PV3 with a supplied mask image, see \cite{waters2017}.
     436that specific fit by setting a special bit (\code{MARK = 0x8000}).
     437The initial mask, if not supplied by the user or library calls, is
     438constructed by default from the image by applying three rules: 1)
     439Pixels which are above a specified saturation level are marked as
     440saturated.  The level is specified by the camera format keyword
     441\code{CELL.SATURATION}, which may specify a value or define a header
     442keyword which in turn specifies the value in the image header.  In the
     443case of PS1 PV3, the header keyword \code{MAXLIN} specifies the
     444saturation level for each chip (see \cite{waters2017}). 2) Pixels
     445which are below a user-defined value are considered unresponsive and
     446masked as dead.  (camera format keyword \code{CELL.BAD} = 0 for PS1
     447PV3).  3) Pixels which lie outside of a user-defined coordinate window
     448are considered non-data pixels (eg, overscan) and are marked as
     449invalid.  (psphot recipe keywords \code{XMIN}, \code{XMAX},
     450\code{YMIN}, \code{YMAX}, all set to 0 for PS1 PV3 -- invalid pixels
     451were specified for PS1 PV3 with a supplied mask image, see
     452\cite{waters2017}.
    433453
    434454The library functions used by \code{psphot} understand two types of
     
    888908some of the observed PSF variations in the images
    889909
    890 \note{need to describe fitting the pixel residual image}
    891 
    892910\note{write up the fitting process to define the grid?}
    893 
    894 \notespecify the rule for the polynomial order and grid scale}
    895 
    896 \note{discuss the improvements in the astrometric modeling PV1 - PV3}
    897911
    898912Several analytical functions which are likely candidates to describe
     
    940954  \end{center}
    941955\end{figure}
     956
     957Once the smooth component of the PSF has been fitted with an
     958analytical model, a pixel representation of the residuals is
     959generated.  This representation is constructed as an image of the
     960expected residuals for any position in the image.  The value of each
     961pixel in the image model is determined from 2D fits to the measured
     962residuals of the PSF stars.  Pixel values in this model are only
     963defined for pixels with
     964
     965The residual model is calculated using the residuals for all PSF
     966stars.  The residuals (and their errors) for each star are
     967renormalized by the flux of the star to put them on a consistent flux
     968scale.  For each PSF star, all pixels within a user-specified radius
     969(PSF.RESIDUALS.RADIUS = 9) are selected for the measurement.  For a
     970given pixel in the model, the pixel values from the PSF stars are
     971interpolated to the center of the model pixel.
     972
     973Pixels for a given star which are more than XX sigma
     974(PSF.RESIDUALS.NSIGMA = 3.0) deviant from the median value of the
     975pixels from all stars are rejected. 
     976
     977If no spatial variation is allowed, the mean or median value is
     978calculated for the model pixel based on the user-specified mean
     979statistic (\code{PSF.RESIDUALS.STATISTIC = ROBUST_MEDIAN}).
     980
     981If spatial variation is requested, then the pixel values are fitted to
     982a linear model:
     983\[
     984R[(x_{\rm mod},y_{\rm mod})][(x_{\rm ccd},y_{\rm ccd})] = R_o[(x_{\rm
     985      mod},y_{\rm mod})] + R_x[(x_{\rm
     986      mod},y_{\rm mod})] x_{\rm ccd} + R_y[(x_{\rm
     987      mod},y_{\rm mod})] y_{\rm ccd}
     988\]
     989where $R[(x_{\rm mod},y_{\rm mod})][(x_{\rm ccd},y_{\rm ccd})]$ is the
     990value for model pixel $(x_{\rm mod},y_{\rm mod})$ for a star with
     991centroid at image pixel $(x_{\rm ccd},y_{\rm ccd})$.  The parameters
     992$R_o, R_x, R_y$ are determined for each pixel in the model $[(x_{\rm
     993    mod},y_{\rm mod})]$.
    942994
    943995\subsubsection{Candidate PSF Source Selection}
     
    9691021ignored.
    9701022
     1023% \note{is the pixel scale $0.1 \sigma_w$ or PSF_CLUMP_GRID_SCALE = 0.2?}
     1024% psphotSourceStats sets PSF_CLUMP_GRID_SCALE to 0.1 \sigma_w^2, set
     1025% to 0.2 by default (before \sigma_w is known).
     1026% pmSource uses PSF_CLUMP_GRID_SCALE.  note that the image is in Mxx
     1027% (\sigma_x^2) not \sigma_x,\sigma_y)
     1028
     1029\note{re-work wording above reflecting comment above}
     1030
    9711031Once a peak has been detected in this plane, the centroid and second
    972 moments of this peak are measured.  All sources which land within XXX
    973 $\sigma$ of this centroid are selected as likely PSF-like sources in
    974 the image. 
    975 
    976 \note{work out the logic for selecting the PSF stars}
     1032moments of this peak are measured.  All sources which land within 2
     1033pixels of this centroid are selected as candidate PSF sources in the
     1034image.
    9771035
    9781036\begin{figure}[htbp]
     
    10211079sources and ignored in the later PSF model fitting stages.
    10221080
    1023 %% table of orders:
    1024 %% N stars | max order | max Ncells
    1025 %%  16   |  1; //  4 cells, 4 per cell
    1026 %%  54   |  2; //  9 cells, 6 per cell
    1027 %% 128   |  3; // 16 cells, 8 per cell
    1028 %% 300   |  4; // 25 cells, 12 per cell
    1029 %% 576   |  5; // 36 cells, 16 per cell
     1081The order of the fit or number of grid samples is modified if the
     1082number of stars available for the fit is insufficient to justify the
     1083highest value.  Regardness of the requested order, if the number of
     1084stars is below the following limits, the order is limited as shown in
     1085Table~\ref{tab:psf.order.nstars}.  Note that the number of grid cells
     1086in one dimension is one greater than the equivalent polynomial order.
     1087
     1088\begin{table}
     1089\caption{\label{tab:psf.order.nstars} Minimum number of stars required
     1090  for a given order of the PSF 2D variations.}\vspace{-0.5cm}
     1091\begin{center}
     1092\begin{tabular}{lcl}
     1093\hline
     1094\hline
     1095{\bf Minimum Number of Stars} & {\bf Order} & {\bf Number of Grid Cells} \\
     1096\hline
     1097 16 &  1 &  4 &   4 \\
     1098 54 &  2 &  9 &   6 \\
     1099128 &  3 & 16 &   8 \\
     1100300 &  4 & 25 &  12 \\
     1101576 &  5 & 36 &  16 \\
     1102\hline
     1103\end{tabular}
     1104\end{center}
     1105\end{table}
     1106
    10301107
    10311108All of the PSF-candidate sources are then re-fitted using the PSF
Note: See TracChangeset for help on using the changeset viewer.