IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40594


Ignore:
Timestamp:
Jan 2, 2019, 3:47:30 PM (8 years ago)
Author:
eugene
Message:

cleanups and update to analysis table

File:
1 edited

Legend:

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

    r40592 r40594  
    9393sources have been automatically detected and characterized by the
    9494Pan-STARRS Image Processing Pipeline photometry software,
    95 \code{psphot}.  This fast, automatic, and reliable software was
     95\ippprog{psphot}.  This fast, automatic, and reliable software was
    9696developed for the Pan-STARRS project, but is easily adaptable to
    9797images from other telescopes.  We describe the analysis of the
    98 astronomical sources by \code{psphot} in general as well as for the
     98astronomical sources by \ippprog{psphot} in general as well as for the
    9999specific case of the 3rd processing version used for the first public
    100100release of the Pan-STARRS $3\pi$ survey data.
     
    108108% \begin{verbatim}
    109109% here is a list of things to do:
    110 % * clear out \note entries
    111 %   * explain use of covariance
    112 %   * add example for sky model
    113 %   * Kaiser optimal detection reference
    114 % * define more tests and generate examples
     110%  * explain use of covariance
     111%  * add example for sky model
     112%  * define more tests and generate examples
    115113%   * simulation example of background subtraction
    116114%     at different densities
    117115%   * real example of oversubtracted galaxy
    118 % * check all references
    119116% \end{verbatim}
    120117
     
    155152Release 1 (DR1) on 16 December 2016.  DR1 contains the results of the
    156153third full reduction of the Pan-STARRS $3\pi$ Survey archival data,
    157 idenfied as PV3.  Previous reductions \citep[PV0, PV1, PV2;
     154identified as PV3.  Previous reductions \citep[PV0, PV1, PV2;
    158155  see][]{magnier2017.datasystem} were used internally for pipeline
    159156optimization and the development of the initial photometric and
     
    169166
    170167This is the fourth in a series of seven papers describing the
    171 Pan-STARRS1 Surveys, the data reduction techiques and the resulting
     168Pan-STARRS1 Surveys, the data reduction techniques and the resulting
    172169data products.  This paper (Paper IV) describes the details of the
    173170source detection and photometry, including point-spread-function and
     
    188185%Pan-STARRS Data Processing Stages
    189186\citet[][Paper II]{magnier2017.datasystem}
    190 describes how the various data processing stages are organised and implemented
     187describes how the various data processing stages are organized and implemented
    191188in the Imaging Processing Pipeline (IPP), including details of the
    192189the processing database which is a critical element in the IPP infrastructure .
     
    305302were integrated into the IPP's mid-level astronomy data analysis
    306303toolkit called \code{psModules} \citep{magnier2017.datasystem}.  The
    307 resulting software, `\code{psphot}', can be used either as a
     304resulting software, `\ippprog{psphot}', can be used either as a
    308305stand-alone C program, or as a set of library functions which may be
    309306integrated into other programs
    310307
    311 Several variants of \code{psphot} have been used in the PS1 PV3
    312 analysis.  The main variant of \code{psphot} operates on a single
     308Several variants of \ippprog{psphot} have been used in the PS1 PV3
     309analysis.  The main variant of \ippprog{psphot} operates on a single
    313310image, or a group of related images representing the data read from a
    314311camera in a single exposure.  The images are expected to have already
     
    316313The gain may be specified by the configuration system, or a variance
    317314image may be supplied.  A mask may also be supplied to mark good, bad,
    318 and suspect pixels.  This variant of \code{psphot} can be called as a
    319 stand-alone program, also called \code{psphot}.  In standard IPP
     315and suspect pixels.  This variant of \ippprog{psphot} can be called as a
     316stand-alone program, also called \ippprog{psphot}.  In standard IPP
    320317operations, this variant is used as a library call within the analysis
    321 program \code{ppImage} during the \ippstage{chip} analysis stage.
    322 
    323 The variant called \code{psphotStack} accepts a set of images, each
     318program \ippprog{ppImage} during the \ippstage{chip} analysis stage.
     319
     320The variant called \ippprog{psphotStack} accepts a set of images, each
    324321representing the same patch of sky in a different filter, nominally
    325322the full $grizy$ filter set for the analysis of the PS1 PV3 stack
    326323images, though where insufficient data were available in a given
    327324filter, a subset of these filters was processed as a group.  As
    328 discussed in detail below, the \code{psphotStack} analysis includes the
     325discussed in detail below, the \ippprog{psphotStack} analysis includes the
    329326capability of measuring forced PSF photometry in some filter images
    330327based on the position of sources detected in the other filters.  It
     
    333330photometry.
    334331
    335 Another variant of \code{psphot} used in the PV3 analysis is called
    336 \code{psphotFullForce}.  In this variant, a set of image all representing the
     332Another variant of \ippprog{psphot} used in the PV3 analysis is called
     333\ippprog{psphotFullForce}.  In this variant, a set of image all representing the
    337334same pixels are processed together, with the positions of sources to
    338 be analysed loaded from a supplied file.  In this variant of the
     335be analyzed loaded from a supplied file.  In this variant of the
    339336analysis, sources are not discovered -- only the supplied sources are
    340337considered.  PSF models are determined for each exposure and the
     
    346343\section{\nocode{psphot} Design Goals}
    347344
    348 \code{psphot} has a number of important requirements that it must meet, and a
    349 number of design goals which we believe will help to make usable in a
    350 wide range of circumstances.  The critical requirements of the
    351 Pan-STARRS IPP which drive the requirements for \code{psphot}:
    352 
    353 \begin{itemize}
    354 \item {\bf 10 millimagnitude photometric accuracy}.  For \code{psphot}, this
    355   implies that the measured photometry of stellar sources must be
    356   substantially better than this 10 mmag since the photometry error
    357   per image is combined with an error in the flat-field calibration
    358   and an error in measuring the atmospheric effects.  We have set a
    359   goal for \code{psphot} of 3mmag photometric consistency for bright stars
    360   between pairs of images obtained in photometric conditions at the
    361   same pointing, ie to remove sensitivity to flat-field errors.  This
    362   goal splits the difference between the three main contributors and
    363   still allows some leeway.  This requirement must be met for
    364   well-sampled images and images with only modest undersampling.
    365 
    366 \item {\bf 10 milliarcsecond astrometric accuracy}. Relative
    367   astrometric calibration depends on the consistency of the individual
    368   measurements.  The measurements from \code{psphot} must be sufficiently
    369   representative of the true source position to enable astrometric
    370   calibration at the 10mas level.  The error in the individual
    371   measurements will be folded together with the errors introduced by
    372   the optical system, the effects of seeing, and by the available
    373   reference catalogs.  We have set a goal for \code{psphot} of 5mas
    374   consistency between the true source postion and the measured
    375   position given reasonable PSF variations under simulations.  This
    376   level must be reached for images with 250 mas pixels, implying
    377   \code{psphot} must introduce measurement errors less than 1/50th of a
    378   pixel. The choice of 32 bit floating point data values for the
    379   source centroids places a numerical limit of 1e-7 on the accuracy of
    380   a pixel relative to the size of a chip (since a single data value is
    381   used for X or Y).  For the $4800^2$ GPC chips, this yields a limit
    382   of about 0.25 milliarcsecond.
    383 \end{itemize}
    384 
    385 The design goals for \code{psphot} are chosen to make the program flexible,
    386 general, and able to meet the unknown usages cases future projects may
     345% \subsection{Astronomy Measurement Goals}
     346
     347\ippprog{psphot} has a number of important requirements that it must
     348meet, and a number of design goals which we believe will help to make
     349it usable in a wide range of circumstances.  The critical
     350astronomy-driven measurement goals of the Pan-STARRS project, which
     351drive the design of \ippprog{psphot}, are the photometric accuracy
     352goal (10 millimagntudes) and the astrometric accuracy goal (10
     353milliarcseconds).  For \ippprog{psphot}, the photometry accuracy goal
     354implies that the measured photometry of stellar sources must be
     355substantially better than this 10 mmag goal since the photometry error
     356per image is combined with an error in the flat-field calibration and
     357an error in measuring the atmospheric effects.  We have set a goal for
     358\ippprog{psphot} of 3mmag photometric consistency for bright stars
     359between pairs of images obtained in photometric conditions at the same
     360pointing, ie to remove sensitivity to flat-field errors.  This goal
     361splits the difference between the three main contributors and still
     362allows some leeway.  This requirement must be met for well-sampled
     363images and images with only modest undersampling.
     364
     365The relative astrometric calibration depends on the consistency of the
     366individual measurements.  The measurements from \ippprog{psphot} must
     367be sufficiently representative of the true source position to enable
     368astrometric calibration at the 10mas level.  The error in the
     369individual measurements will be folded together with the errors
     370introduced by the optical system, the effects of seeing, and by the
     371available reference catalogs.  We have set a goal for \ippprog{psphot}
     372of 5mas consistency between the true source postion and the measured
     373position given reasonable PSF variations under simulations.  This
     374level must be reached for images with 250 mas pixels, implying
     375\ippprog{psphot} must introduce measurement errors less than 1/50th of
     376a pixel. The choice of 32 bit floating point data values for the
     377source centroids places a numerical limit of 1e-7 on the accuracy of a
     378pixel relative to the size of a chip (since a single data value is
     379used for X or Y).  For the $4800^2$ GPC chips, this yields a limit of
     380about 0.25 milliarcsecond.
     381
     382% \subsection{Software System Goals}
     383
     384The design goals for \ippprog{psphot} are chosen to make the program flexible,
     385general, and able to meet the unknown usage cases future projects may
    387386require:
    388387
     
    396395  naturally incorporate 2-D variations.
    397396
    398 \item {\bf Flexible non-PSF models} \code{psphot} must be able to represent
     397\item {\bf Flexible non-PSF models} \ippprog{psphot} must be able to represent
    399398  PSF-like sources as well as non-PSF sources (e.g., galaxies).  It
    400399  must be easy to add new source models as interesting representations
    401400  of sources are invented.
    402401
    403 \item {\bf Clean code base} \code{psphot} should incorporate a high-degree of
     402\item {\bf Clean code base} \ippprog{psphot} should incorporate a high-degree of
    404403  abstraction and encapsulation so that changes to the code structure
    405404  can be performed without pulling the code apart and starting from scratch.
    406405
    407 \item {\bf PSF validity tests} \code{psphot} should include the ability to
    408   choose different types of PSF models for diffent situations, or to
     406\item {\bf PSF validity tests} \ippprog{psphot} should include the ability to
     407  choose different types of PSF models for different situations, or to
    409408  provide the user with methods for assessing the different PSF models.
    410409
    411 \item {\bf Careful systematic corrections} \code{psphot} must carefully
     410\item {\bf Careful systematic corrections} \ippprog{psphot} must carefully
    412411  measure and correct for the photometric and astrometric trends
    413412  introduced by using analytical PSF models.
    414413
    415 \item {\bf User Configurable} \code{psphot} should allow users to change the
     414\item {\bf User Configurable} \ippprog{psphot} should allow users to change the
    416415  options easily and to allow different approaches to the analysis.
    417416
     
    422421\subsection{Overview}
    423422
    424 The \code{psphot} analysis is divided into several major stages:
     423The \ippprog{psphot} analysis is divided into several major stages, as
     424listed below. 
    425425
    426426\begin{enumerate}
     
    451451\end{enumerate}
    452452
    453 \code{psphot} is highly configurable.  Users may choose via the configuration
     453Table~\ref{tab:measurements} lists the types of
     454analyses performed by \ippprog{psphot}, specifying which of the
     455\ippprog{psphot} usage cases performs the given analysis.  The table
     456also provides a reference to the section of this paper in which the
     457analysis is described.  Not all analyses are relevant to all sources
     458in all images.  The table identifies thoses cases where the analyses
     459are applied to only a subset of all sources. 
     460
     461\ippprog{psphot} is highly configurable.  Users may choose via the configuration
    454462system which of the above analyses are performed.  This is useful for
    455463testing, but also allows for specialized use cases.  For example, the
     
    457465case the PSF modeling stage can be skipped.
    458466
    459 % {\bf A note on nomenclature:  ???}
     467\begin{table*}
     468\begin{center}
     469\footnotesize
     470\caption{\label{tab:measurements} \nocode{psphot} measurements performed} % \vspace{-0.5cm}
     471\begin{tabular}{lccccll}
     472\hline
     473\hline
     474{\bf Measurement} & {\bf Camera} & {\bf Stack} & {\bf Forced Warp} & {\bf Diff} & {\bf Section} & {\bf Which} \\
     475\hline
     476  Background Subtraction     & Y & Y & Y & N$^1$ & \ref{sec:image.preparation}      & N/A \\
     477  Peaks                      & Y & Y & N & Y     & \ref{sec:peaks}                  & All \\
     478  Footprints                 & Y & Y & N & Y     & \ref{sec:footprints}             & All \\
     479  Moments                    & Y & Y & Y & Y     & \ref{sec:moments}                & All \\
     480  PSF Model                  & Y & Y & Y & N$^2$ & \ref{sec:PSF.Model}              & Uses bright, unsat. stars \\
     481  Bright Star Profile        & Y & Y & N & Y     & \ref{sec:very.bright.star}       & Saturated Stars \\
     482  Radial Profiles v1         & Y & Y & N & Y     & \ref{sec:radial.profile}         & All \\
     483  Kron Fluxes                & Y & Y & Y & Y     & \ref{sec:kron.mags}              & All \\
     484  Source-Size Tests          & Y & Y & N & Y     & \ref{sec:source.size}            & All \\
     485  Non-Linear PSF Fits        & Y & Y & N & N     & \ref{sec:nonlinear.psf.model}    & $S/N > 20$ \\
     486  Unconvolved Galaxy Model   & Y & Y & N & N     & \ref{sec:nonlinear.galaxy.model} & $S/N > 20$, extended \\
     487  Unconvolved Streak Model   & N & N & N & Y     & \ref{sec:nonlinear.galaxy.model} & $S/N > 20$, extended \\
     488  Linear PSF Fits            & Y & Y & Y & Y     & \ref{sec:faint.psf.model}        & All \\
     489  Radial Profiles v2         & Y & Y & N & Y     & \ref{sec:radial.profile.v2}      & Gal. Latitude Cut \\
     490  Petrosian Fluxes           & N & Y & Y & N     & \ref{sec:petrosian}              & Gal. Latitude Cut \\
     491  Convolved Galaxy Models    & N & Y & N & N     & \ref{sec:galaxy.conv.fit}        & Gal. Latitude Cut, mag cut \\
     492  Fixed Aperture Photometry  & N & Y & Y & N     & \ref{sec:fixed.aperture.photom}  & All \\
     493  Convolved, Fixed Apertures & N & Y & N & N     & \ref{sec:fixed.aperture.photom}  & All \\
     494  Aperture Corrections       & Y & Y & Y & N     & \ref{sec:aperture.correction}    & All \\
     495  Forced PSF Fluxes          & N & N & Y & N     & \ref{sec:psf.forced.fit}         & All \\
     496  Forced Galaxy Models       & N & N & Y & N     & \ref{sec:galaxy.forced.fit}      & Have Stack Galaxy Models \\
     497  Lensing Parameters         & N & Y & Y & N     &                                  & All \\
     498\hline
     499\multicolumn{5}{l}{$^1$ Background subtraction is performed by {\tt ppSub} before calling {\tt psphot}} \\
     500\multicolumn{5}{l}{$^2$ PSF modeling is perform by {\tt ppSub} on the input warps before calling {\tt psphot}} \\
     501\end{tabular}
     502\end{center}
     503\end{table*}
     504
     505% \subsection{Output Formats}
    460506
    461507\subsection{Image Preparation}
     508\label{sec:image.preparation}
    462509
    463510The first step is to prepare the image for detection of the
     
    473520references to the mask and variance are provided in the configuration
    474521information.  As in the stand-alone C-program, the variance and mask may
    475 be constructed automatically by \code{psphot}.
     522be constructed automatically by \ippprog{psphot}.
    476523
    477524The mask is represented as a 16-bit integer image in which a value of
     
    482529other circumstances, it may be useful to know the flux value of the
    483530saturated pixel.  In addition, the mask pixels are used to define the
    484 pixels available during a model fit, and which should be ignored for
    485 that specific fit by setting a special bit (\code{MARK = 0x8000}).
     531pixels available during a model fit; those which should be ignored for
     532that specific fit are `marked' by setting a special bit (\code{MARK = 0x8000}).
    486533The initial mask, if not supplied by the user or library calls, is
    487534constructed by default from the image by applying three rules: 1)
     
    495542masked as dead.  (camera format keyword \code{CELL.BAD} = 0 for PS1
    496543PV3).  3) Pixels which lie outside of a user-defined coordinate window
    497 are considered non-data pixels (eg, overscan) and are marked as
    498 invalid.  (\code{psphot} recipe keywords \code{XMIN}, \code{XMAX},
     544are considered non-data pixels (\eg, overscan) and are marked as
     545invalid.  (\ippprog{psphot} recipe keywords \code{XMIN}, \code{XMAX},
    499546\code{YMIN}, \code{YMAX}, all set to 0 for PS1 PV3 -- invalid pixels
    500547were specified for PS1 PV3 with a supplied mask image
    501548\citep[see][]{waters2017}.
    502549
    503 The library functions used by \code{psphot} understand two types of
     550The library functions used by \ippprog{psphot} understand two types of
    504551masked pixels: ``bad'' and ``suspect''.  Bad pixels are those which
    505552should not be used in any operations, while suspect pixels are those
    506553for which the reported signal may be contaminated or biased, but may
    507 be useable in some contexts.  For example, a pixel with poor charge
     554be usable in some contexts.  For example, a pixel with poor charge
    508555transfer efficiency is likely to be too untrustworthy to use in any
    509556circumstance, while a pixel in which persistence ghosts have been
     
    528575  SAT      & 0x0020 & The pixel is saturated. \\
    529576  LOW      & 0x0040 & The pixel has a lower value than expected. \\
    530   SUSPECT  & 0x0080 & The pixel is suspected of being bad. \\
     577  SUSPECT  & 0x0080 & The pixel is suspected of being bad$^1$. \\
    531578  BURNTOOL & 0x0080 & The pixel contain an burntool repaired streak. \\
    532579  CR       & 0x0100 & A cosmic ray is present. \\
     
    539586  MARK     & 0x8000 & An internal flag for temporarily marking a pixel. \\
    540587\hline
     588\multicolumn{3}{l}{$^1$ The SUSPECT bit is generic and only
     589  used if a specific reason cannot be identified.}\\
     590\multicolumn{3}{l}{It is overloaded on the same bit as BURNTOOL.}\\
    541591\end{tabular}
    542592\end{center}
     
    560610Some image processing steps introduce cross-correlation between pixel
    561611fluxes.  An obvious case is smoothing, but geometric transformations
    562 which redistibute fractional flux between neighboring pixels also
     612which redistribute fractional flux between neighboring pixels also
    563613introduces cross-correlations.  In the noise model, it is necessary to
    564614track the impact of the cross correlations on the per-pixel variance.
     
    569619covariance image is prohibitive. 
    570620
    571 \note{describe the way we handle covariance}
     621% \note{describe the way we handle covariance}
    572622
    573623Before sources are detected in the image, a model of the background is
    574624subtracted.  The image is divided into a grid of background points
    575 with a spacing defined by the \code{psphot} recipe values
     625with a spacing defined by the \ippprog{psphot} recipe values
    576626\code{BACKGROUND.XBIN, BACKGROUND.YBIN}, set to 400 pixels for PS1
    577 PV3.  Superpixels of size \code{BACKGROUND.XSAMPLE,
    578   BACKGROUND.YSAMPLE} ($2 \times 2$ for PS1 PV3) times larger than
     627PV3.  Superpixels of size \code{BACKGROUND.XSAMPLE, BACKGROUND.YSAMPLE}
     628($2 \times 2$ for PS1 PV3) times larger than
    579629this spacing are used to measure the local background for each
    580630background grid point, thus over-sampling the background spatial
     
    600650suffering bias from the stellar flux.  We thus perform a second
    601651Gaussian fit using an asymmetric subset of the histogram pixels,
    602 fitting those histogram bins which are left of the peak but above 25\% of
    603 the peak value, or right of the peak but above 50\% of the peak
    604 value. 
     652fitting those histogram bins which are left of the peak but for which
     653the bin value is greater than 25\% of the peak bin, or right of the
     654peak but only using those bins for whch the bin value is greater than
     65550\% of the peak bin value.
    605656
    606657If the fit to the asymmetric lower fraction of the curve is less than
     
    614665standard deviation image are kept in memory from which the values of
    615666\code{SKY} and \code{SKY_SIGMA} are calculated for each source in the
    616 output catalog.  See also the discussion in \cite{waters2017}.
    617 
    618 \note{give examples with simulations and show examples of over-subtraction}
     667output catalog.  For more details of the background subtraction, see
     668the discussion in Section~2.7 of \cite{waters2017}.
     669
     670% \note{give examples with simulations and show examples of over-subtraction}
    619671
    620672\subsection{Initial Source Detection}
     
    703755The resulting peak position, ($x_{min}, y_{min}$), is used as the
    704756default starting coordinate for the source.  Later in the
    705 \code{psphot} analysis, improved measurements of the source positions
     757\ippprog{psphot} analysis, improved measurements of the source positions
    706758are calculated as discussed below.
    707759
     
    716768
    717769\subsubsection{Footprints}
     770\label{sec:footprints}
    718771
    719772The peaks detected in the image may correspond to real sources, but
    720773they may also correspond to noise fluctuations, especially in the
    721 wings of bright stars.  \code{psphot} attempts to identify peaks which may be
     774wings of bright stars.  \ippprog{psphot} attempts to identify peaks which may be
    722775formally significant, but are not locally significant.  It first
    723776generates a set of ``footprints'', contiguous collections of pixels in
     
    823876
    824877To choose the value of $\sigma_w$, we try a sequence of values
    825 spanning a range guaranateed to contain any reasonable seeing values.
    826 The values are specified in the \code{psphot} recipe as
     878spanning a range guaranteed to contain any reasonable seeing values.
     879The values are specified in the \ippprog{psphot} recipe as
    827880\code{PSF.SIGMA.VALUES} and have the following values for PS1 PV3: (1,
    8288812, 3, 4.5, 6, 9, 12, 18) pixels $\approx$ (0.26, 0.51, 0.77, 1.15,
     
    900953the first radial moment of the PSF stars, or $0.75\sigma_w$ if that
    901954cannot be determined.  $R_{\rm max}$ is set to the size of the moments
    902 aperture, $4\sigma_w$.  At this stage, the measurement of the Kron
    903 parameters are preliminary since the aperture has been chosen as a
    904 fixed size relative to the size of the PSF.  At a later stage,
    905 higher-quality Kron parameters appropriate to galaxies are measured
    906 with more care paid to the exact aperture used
     955aperture, $4\sigma_w$.  These Kron measurements are performed for all
     956sources with a valid set of moments.  At this stage, the measurement
     957of the Kron parameters are preliminary since the aperture has been
     958chosen as a fixed size relative to the size of the PSF.  At a later
     959stage, higher-quality Kron parameters appropriate to galaxies are
     960measured with more care paid to the exact aperture used
    907961(Section~\ref{sec:kron.mags}).
    908962
     
    911965
    912966\subsection{PSF Determination}
     967\label{sec:PSF.Model}
    913968
    914969\subsubsection{PSF Model vs Source Model}
     
    921976which vary across the image.
    922977
    923 The PSF used by \code{psphot} consists of an analytical function
     978The PSF used by \ippprog{psphot} consists of an analytical function
    924979combined with a pixelized representation of the residual differences
    925980between the analytical model and the true PSF.  Both the shape
     
    927982differences are allowed to vary in two dimensions across the images.
    928983
    929 Within \code{psphot}, several analytical models may be used to
     984Within \ippprog{psphot}, several analytical models may be used to
    930985describe the smooth portion of the PSF, but all share a few common
    931986characteristics.  As an example, a simple model consists of a 2-D
     
    9541009\sigma_x    & = & f_1(x_{\rm ccd},y_{\rm ccd}) \\
    9551010\sigma_y    & = & f_2(x_{\rm ccd},y_{\rm ccd}) \\
    956 \sigma_{xy} & = & f_3(x_{\rm ccd},y_{\rm ccd}) \\
     1011\sigma_{xy} & = & f_3(x_{\rm ccd},y_{\rm ccd}).
    9571012\end{eqnarray}
    958 \code{psphot} represents the variation in the PSF parameters as a function of
     1013\ippprog{psphot} represents the variation in the PSF parameters as a function of
    9591014position in the image in two possible ways, specified by the
    9601015configuration.  The first option is to use a 2-D polynomial which is
     
    9761031
    9771032Several analytical functions which are likely candidates to describe
    978 the smooth portion of the PSF are available in \code{psphot}:
     1033the smooth portion of the PSF are available in \ippprog{psphot}:
    9791034\begin{itemize}
    9801035\item Gaussian : $f = I_0 e^{-z}$
     
    9901045A user may choose to try more than one analytical function for a given
    9911046image.  As discussed below (Section~\ref{sec:psf.model.choice}),
    992 \code{psphot} can automatically choose the best model based on the
     1047\ippprog{psphot} can automatically choose the best model based on the
    9931048quality of the PSF fits.
    9941049
     
    10011056variable power-law exponent model.
    10021057
    1003 The analytical models in \code{psphot} are written with a high degree
     1058The analytical models in \ippprog{psphot} are written with a high degree
    10041059of code abstraction making it relatively easy to add different
    10051060analytical models to the software.  The same portion of code used to
     
    10251080expected residuals for any position in the image.  The value of each
    10261081pixel in the image model is determined from 2D fits to the measured
    1027 residuals of the PSF stars.  Pixel values in this model are only
    1028 defined for pixels with
     1082residuals of the PSF stars. 
    10291083
    10301084The residual model is calculated using the residuals for all PSF
     
    10321086renormalized by the flux of the star to put them on a consistent flux
    10331087scale.  For each PSF star, all pixels within a user-specified radius
    1034 (PSF.RESIDUALS.RADIUS = 9) are selected for the measurement.  For a
     1088(\code{PSF.RESIDUALS.RADIUS = 9}) are selected for the measurement.  For a
    10351089given pixel in the model, the pixel values from the PSF stars are
    1036 interpolated to the center of the model pixel.
     1090interpolated to the center of the model pixel. Pixels may be used in
     1091this analysis if their signal-to-noise exceeds a user-defined limit.
     1092For the PV3 $3\pi$ analysis, we allowed all pixels within the
     1093user-specified radius, not limiting on the basis of the
     1094signal-to-noise.
    10371095
    10381096Pixels for a given star which are more than a number of sigmas
    1039 (PSF.RESIDUALS.NSIGMA = 3.0) deviant from the median value of the
    1040 pixels from all stars are rejected. 
     1097(\code{PSF.RESIDUALS.NSIGMA = 3.0}) deviant from the median value of
     1098the pixels from all stars are rejected.
    10411099
    10421100If no spatial variation is allowed, the mean or median value is
     
    10631121The first stage of determining the PSF model for an image is to
    10641122identify a collection of sources in the image which are {\em likely}
    1065 to be unresolved (i.e., stars).  \code{psphot} uses the source sizes as
     1123to be unresolved (i.e., stars).  \ippprog{psphot} uses the source sizes as
    10661124estimated from the second moments to make the initial guess at a
    10671125collection of unresolved sources.  At this point, the program has
     
    10701128bright threshold.  All sources with a S/N ratio greater than a
    10711129user-defined parameter (\code{PSF_SN_LIM} = 20.0 for PS1 PV3) are
    1072 selected by \code{psphot}, though sources which have more than a
     1130selected by \ippprog{psphot}, though sources which have more than a
    10731131certain number of saturated pixels are excluded at this stage.  The
    10741132program then examines the 2-D plane of $M_{x,x}, M_{y,y}$ in search
     
    11151173model, allowing all of the parameters (PSF and independent) to vary in
    11161174the fit.  The software uses the Levenberg-Marquardt minimization
    1117 technique \citep{Press,Madsen} for the non-linear fitting.  Non-linear
    1118 fitting can be very computationally intensive, particularly for if the
     1175technique \citep{1992nrca.book.....P,Madsen} for the non-linear fitting.  Non-linear
     1176fitting can be very computationally intensive, particularly if the
    11191177starting parameters are far from the minimization values.  The first
    11201178and second moments are used to make a good guess for the centroid and
     
    11261184position using either the 2-D polynomial or the gridded superpixel
    11271185representation.  The maximum order of these fits depends on the number
    1128 of PSF sources (see Table~\ref{tab:order}).  The fitting process for
     1186of PSF sources (see Table~\ref{tab:psf.order.nstars}).  The fitting process for
    11291187these polynomials is iterative, and rejects the $3\sigma$ outliers in
    11301188each of three passes.  This fitting technique results in a robust
     
    11381196The order of the fit or number of grid samples is modified if the
    11391197number of stars available for the fit is insufficient to justify the
    1140 highest value.  Regardness of the requested order, if the number of
     1198highest value.  Regardless of the requested order, if the number of
    11411199stars is below the following limits, the order is limited as shown in
    11421200Table~\ref{tab:psf.order.nstars}.  Note that the number of grid cells
     
    11711229the PSF model for this particular image.
    11721230
    1173 The metric used by \code{psphot} to assess the PSF model is the
     1231The metric used by \ippprog{psphot} to assess the PSF model is the
    11741232scatter in the differences between the aperture and fit magnitudes for
    11751233the PSF sources.  This difference is a critical parameter for any PSF
     
    11891247
    11901248Once a PSF model has been determined, the brighter sources in the
    1191 image may be analysed in detail.  The goals in this stage are (1) to
     1249image may be analyzed in detail.  The goals in this stage are (1) to
    11921250determine the fluxes and positions of the bright stellar sources with
    11931251high precision appropriate to their high signal-to-noise and (2) to
     
    11971255several stages in which the 2D flux models for all sources are
    11981256subtracted from the image, and individual sources are replaced in the
    1199 image for a particular analysis step and then removed again. 
    1200 
     1257image for a particular analysis step and then removed again.  The flux
     1258limit for this analysis stage is user-defined as a signal-to-noise
     1259value.  In the PV3 analysis of the $3\pi$ survey data, this limit was
     1260set to a signal-to-noise ratio of 20.0.
     1261
     1262% maybe drop this discussion? too much detail?
    12011263In order to allow for multiple threads to process a single image, the
    1202 pixels in an image are divided into a grid of superpixels (see
    1203 Figure~\ref{fig:threadgrid}).  The superpixels are assigned to one of
    1204 four groups, as illustrated, so that each superpixel in a group is
    1205 well separated from the other superpixels of that group.  The analysis
    1206 of the image proceeds in 4 steps, one for each of these groups.  Each
    1207 of the superpixels in the first group is assigned to a single thread
    1208 until all threads are assigned.  A single thread is responsible for
    1209 the analysis of sources which land within their current superpixel, as
    1210 determined by the centroid coordinates.  As the threads complete their
    1211 analysis, they are assigned the next unfinished superpixel in the
    1212 active group.  When all superpixels in one group have been processed,
    1213 then the superpixels in the next group can start.  This strategy
    1214 allows the threading to process sources which may be extended without
    1215 the danger that two threads are actively touching the same pixels.
    1216 For the PV3 analysis, 4 threads were used for most processing tasks.
     1264pixels in an image are divided into a grid of superpixels.  The
     1265superpixels are assigned to one of four groups so that each superpixel
     1266in a group is well separated from the other superpixels of that group.
     1267The analysis of the image proceeds in 4 steps, one for each of these
     1268groups.  Each of the superpixels in the first group is assigned to a
     1269single thread until all threads are assigned.  A single thread is
     1270responsible for the analysis of sources which land within their
     1271current superpixel, as determined by the centroid coordinates.  Since
     1272the superpixels in a given thread group are not contiguous by
     1273construction, sources near the edge of a superpixel can be analysed by
     1274considering the nearby pixels from neighboring superpixel (guaranteed
     1275not to be in the current thread group).
     1276
     1277As the threads complete their analysis, they are assigned the next
     1278unfinished superpixel in the active group.  When all superpixels in
     1279one group have been processed, then the superpixels in the next group
     1280can start.  This strategy allows the threading to process sources
     1281which may be extended without the danger that two threads are actively
     1282touching the same pixels.  For the PV3 analysis, 4 threads were used
     1283for most processing tasks.
    12171284
    12181285\subsubsection{Very Bright Stars}
    1219 
    1220 The standard \code{psphot} PSF modeling code fails to fit the wings of
     1286\label{sec:very.bright.star}
     1287
     1288The standard \ippprog{psphot} PSF modeling code fails to fit the wings of
    12211289highly saturated stars, especially if the core of the star is too
    12221290contaminated by saturated pixels.  For stars with more than a single
     
    12651333diagonal; the guess is multiplied by $M_{i,j}$, and the result
    12661334compared with the observed vector $\bar{F_j}$.  The difference is used
    1267 to modify the initial guess.  This proces is repeated several times to
    1268 achieve a good convergence.  Convergence is quick (a few iterations)
     1335to modify the initial guess.  This process is repeated several times
     1336to achieve convergence.  Convergence is quick (a few iterations)
    12691337because of the highly diagonal matrix with small off-diagonal terms:
    12701338the dot product of source $i$ and source $j$ is 1 where $i = j$ and
     
    13321400If the source has 180\degree\ symmetry, this operation has no impact.
    13331401However, if one of the two pixels is unusually high, the value will be
    1334 surpressed by the matched pixel on the other side.  This trick has the
     1402suppressed by the matched pixel on the other side.  This trick has the
    13351403effect of reducing the impact of pixels which include flux from near
    13361404neighbors.
     
    13421410
    13431411After the PSF model has been fitted to all sources, and the Kron flux
    1344 has been measured for all sources, \code{psphot} uses these two measurements,
    1345 along with some additional pixel-level analysis, to determine the size class
    1346 of the source.  If the source is large compared to a PSF, it is
    1347 considered to be {\em extended} and will be
    1348 fitted with a galaxy model (or possibly another type of extended
    1349 source model in special cases).  If the source is small compared to a
    1350 PSF, it is considered to be a {\em cosmic ray} and masked.
     1412has been measured for all sources, \ippprog{psphot} uses these two
     1413measurements, along with some additional pixel-level analysis, to
     1414determine the size class of the source.  Sources identified as
     1415extended will be fitted with a galaxy model (or possibly another type
     1416of extended source model in special cases).  If the source is small
     1417compared to a PSF, it is considered to be a {\em cosmic ray} and
     1418masked.
    13511419
    13521420Extended sources are identified as those for which the Kron magnitude
     
    13611429considered to be extended.
    13621430
    1363 Cosmic Rays are identified by a combination of the Kron magnitude and
     1431Cosmic rays are identified by a combination of the Kron magnitude and
    13641432the second-moment width of the source in the minor axis direction.
    13651433The second-moment in the minor axis direction is calculated from
     
    13801448
    13811449\subsubsection{Full PSF Model Fitting}
     1450\label{sec:nonlinear.psf.model}
    13821451
    13831452% gaussSigma = MOMENTS_GAUSS_SIGMA from recipe (initially)
     
    13881457% apScale = 4.5
    13891458
    1390 Once a PSF model has been selected for an image, \code{psphot}
     1459Once a PSF model has been selected for an image, \ippprog{psphot}
    13911460attempts to fit all of the detected sources, with signal-to-noise
    13921461ratio greater than a user-defined limit, with the PSF model.  In the
     
    13951464the dependent parameters are fixed by the PSF model and only the 4
    13961465independent source model parameters are allowed to vary in the fit.
    1397 \code{psphot} again uses Levenberg-Marquardt minimization for the
     1466\ippprog{psphot} again uses Levenberg-Marquardt minimization for the
    13981467non-linear fitting.  The sources are fitted in their S/N order,
    13991468starting with the brightest and working down to the user-specified
     
    14201489of blended peaks.
    14211490
    1422 %% Once a solution has been achieved for a source, \code{psphot} attempts to
     1491%% Once a solution has been achieved for a source, \ippprog{psphot} attempts to
    14231492%% judge the quality of the PSF model as a representation of the source
    14241493%% shape.  To do this, it calculates the next step of the minimization
     
    14321501%% $\sigma_y$.  For a generic model, the shape parameters may be defined
    14331502%% differently, but there should always be two parameters which scale the
    1434 %% source size in two dimensions.  Currently, \code{psphot} requires the two
     1503%% source size in two dimensions.  Currently, \ippprog{psphot} requires the two
    14351504%% relevant shape parameters to be the first two dependent parameters in
    14361505%% the list of model parameters (ie, parameters 4 \& 5).
     
    14551524%% as a likely defect. 
    14561525
    1457 After the PSF model is fitted to each object, \code{psphot} makes an
     1526After the PSF model is fitted to each object, \ippprog{psphot} makes an
    14581527assessment of the quality of the PSF fits.  First, it checks that the
    14591528non-linear fitting process has converged with a valid fit.  The fit
     
    14671536exists, with a lower nearby sky region.  However, the fitted PSF model
    14681537cannot converge on the peak because it is very poorly defined (perhaps
    1469 only existing in the smoothed image).  In these cases, \code{psphot}
     1538only existing in the smoothed image).  In these cases, \ippprog{psphot}
    14701539flags the object with the bad bit \code{PM_SOURCE_MODE_FAIL}.  It is
    14711540also possible in this type of case for the fit to result in a very low
     
    14861555non-linear PSF model fit (\code{PM_SOURCE_MODE_SATSTAR}).  Among these
    14871556sources, those for which the peak flux is greater than the saturation
    1488 limit are marked as saturated stars (\code{PM_SOURCE_MODE_SATSTAR}).
    1489 These model fits should be consisdered with caution, but the fluxes
    1490 and positions may have some validity (see Section~\ref{Saturation}).
     1557limit (see Section~\ref{sec:image.preparation}) are marked as
     1558saturated stars (\code{PM_SOURCE_MODE_SATSTAR}).  These model fits
     1559should be considered with caution, but the fluxes and positions may
     1560have some validity.
     1561
     1562% \citep[see the discussion in][regarding the masking of saturated
     1563% pixels]{waters2017}
    14911564
    14921565As the sources are fitted to the PSF model, those which survive the
     
    15201593
    15211594\subsubsection{Non-PSF Sources}
     1595\label{sec:nonlinear.galaxy.model}
    15221596
    15231597Once every source (above the S/N cutoff) has been confronted with the
     
    15281602moments aperture) and working to a user defined S/N limit.
    15291603
    1530 \code{psphot} will use the user-selected extended source model to
     1604\ippprog{psphot} will use the user-selected extended source model to
    15311605attempt these fits.  In the configuration system, the keyword
    15321606\code{EXT_MODEL} is set to the model of interest.  All suspected
     
    15421616For each type of extended source model (in fact for all source
    15431617models), a function is defined which examines the fit results and
    1544 determines if the fit can be consider as a success or a failure.  The
     1618determines if the fit can be considered as a success or a failure.  The
    15451619exact criteria for this decision depends on the details of the model,
    15461620and so this level of abstraction is needed.  For example, in some
     
    15711645
    15721646\subsection{Faint Source Analysis}
     1647\label{sec:faint.psf.model}
    15731648
    15741649After a first pass through the image, in which the brighter sources
    15751650above a high threshold level have been detected, measured, and
    1576 subtracted, \code{psphot} optionally begins a second pass at the image.  In
     1651subtracted, \ippprog{psphot} optionally begins a second pass at the image.  In
    15771652this stage, the new peaks are detected on the image with the bright
    15781653sources subtracted.  In this pass, the peak detection process uses the
     
    15961671stacks in the major reprocessings.
    15971672
    1598 The extended souce analysis consists of the following types of
     1673The extended source analysis consists of the following types of
    15991674measurements: 1) an analysis of the radial profile of the surface
    16001675brightness of the source; 2) measurement of the Petrosian radius and
     
    16131688galaxies.  Several restrictions are possible within the software.  For
    16141689example, it is possible to limit which objects are processed by their
    1615 aparent magnitudes, by their signal-to-noise, by an indication if they
     1690apparent magnitudes, by their signal-to-noise, by an indication if they
    16161691are in fact extended, by the local stellar density, or by the galactic
    16171692latitude.  Some of these selections may be defined differently for the
     
    16641739
    16651740\subsubsection{Radial Profiles}
     1741\label{sec:radial.profile.v2}
    16661742
    16671743Galaxies with regular profiles, such as elliptical galaxies and
     
    16701746perturbation on that profile.  For many galaxies, the azimuthal shape
    16711747at a given isophotal level may be described as an elliptical contour.
    1672 To first order, a galaxy may be well decribed with a single elliptical
     1748To first order, a galaxy may be well described with a single elliptical
    16731749contour and radial profile. 
    16741750
    1675 In order to facilitate the Petrosian photometry analysis below, \code{psphot}
     1751In order to facilitate the Petrosian photometry analysis below, \ippprog{psphot}
    16761752generates a radial profile for each suspected galaxy.  This analysis
    16771753starts by generating a radial profile in 24 azimuthal segments.  Near
     
    17231799
    17241800\subsubsection{Petrosian Radii and Magnitudes}
     1801\label{sec:petrosian}
    17251802
    17261803\cite{1976ApJ...209L...1P} defined an adaptive aperture based on a
    17271804ratio of surface brightnesses.  The motivation is to define an
    17281805aperture which can be determined for galaxies without significant
    1729 biases as a function of distance.  Since surface brightness in a
    1730 resolved source is conserved as a function of distance, using a ratio
    1731 of surface brightness to define a spatial scale results in a spatial
    1732 scale which is constant regardless of galaxy distance.
     1806biases as a function of distance from the observer.  Since surface
     1807brightness in a resolved source is conserved as a function of
     1808distance, using a ratio of surface brightness to define a spatial
     1809scale results in a spatial scale which is constant regardless of
     1810galaxy distance.
    17331811
    17341812To measure the Petrosian radius and flux, we start by defining a
     
    17421820\beta r_{\rm min}$, the
    17431821Petrosian Ratio for that annulus is defined as the ratio of the
    1744 surface brightness in the annulus to the average surface brigthness
     1822surface brightness in the annulus to the average surface brightness
    17451823within $r_{\rm max}$.  The Petrosian Radius is defined to be $r_{\rm
    17461824  max}$ for the annulus for which the Petrosian Ratio = 0.2, i.e., the
     
    17701848\label{sec:galaxy.conv.fit}
    17711849
    1772 In the galaxy model fittting stage, sources which meet certain
     1850In the galaxy model fitting stage, sources which meet certain
    17731851criteria are fitted with analytical models for galaxies.  Three
    1774 traditional analytical galaxy models are implemented in \code{psphot}
     1852traditional analytical galaxy models are implemented in \ippprog{psphot}
    17751853and used in the PV3 analysis:
    17761854\begin{itemize}
     
    18111889\ref{sec:moments}) is used to estimate the effective radius of the
    18121890model based on the results of Graham \& Driver (2005, Table 1).  They
    1813 quantive the relationships between the first radial moment used to
     1891quantify the relationships between the first radial moment used to
    18141892calculated a Kron Magnitude and the effective radius for different
    18151893S\'ersic index values, $n$.  Since the Exponential and DeVaucouleur
     
    19041982values for $R_{\rm eff}$ based on the value of $R_1$, the first radial
    19051983moment.  For a given value of the S\'ersic index, the $R_{\rm eff}$ is
    1906 related to the 1st radial moment by the scale factor specificy by
     1984related to the 1st radial moment by the scale factor specified by
    19071985Graham \& Driver.  We use the observed value of the 1st radial moment
    19081986and try $R_{\rm eff}$ values of a factor of (0.8, 0.9, 1.0, 1.12,
     
    19252003
    19262004% Graham & Driver : Graham A. W., Driver S. P.  2005, PASA 22, 118
    1927 % DOI: https://doi.org/10.1071/AS05001
     2005a% DOI: https://doi.org/10.1071/AS05001
    19282006
    19292007The central pixel of the S\'ersic, DeVaucouleur, and Exponential
     
    19652043any of the parameters.
    19662044
    1967 \subsubsection{Convolved Radial Aperture Photometry}
     2045\subsubsection{Fixed Aperture Photometry}
     2046\label{sec:fixed.aperture.photom}
    19682047
    19692048For some science goals, a well-measured color of a galaxy is more
    19702049important than an accurate total magnitude.  In the case of PS1, the image
    19712050quality variations for stacks of different filters presents a serious
    1972 challenge for the determination of precise colors.  \code{psphot} determines
     2051challenge for the determination of precise colors.  \ippprog{psphot} determines
    19732052a set of PSF-matched radial aperture flux measurements in order to
    19742053minimize the impact of the stack image quality variations.
    19752054
    1976 In \code{psphotStack}, the stack analysis version of \code{psphot},
     2055In \ippprog{psphotStack}, the stack analysis version of \ippprog{psphot},
    19772056the 5 filter images are processed together.  After the PSF models have
    19782057been fitted and a best set of galaxy models have been determined,
     
    20052084wasteful.  We only calculate the circular apertures out to the second
    20062085aperture larger than the ``sky radius'' (defined in
    2007 Section~\label{sec:radial.profile}), but we calculate photometry for
     2086Section~\ref{sec:radial.profile}), but we calculate photometry for
    20082087at least the smallest 4 apertures.
    20092088
     
    20612140saturation. 
    20622141
    2063 In order to thread the needle between these effects, \code{psphot}
     2142In order to thread the needle between these effects, \ippprog{psphot}
    20642143measures the aperture photometry on a modest-sized aperture, and then
    20652144uses the PSF model to extrapolate to a large aperture.  When the PSF
     
    21252204% magnitude}.
    21262205
    2127 %%% \code{psphot} measures the aperture correction ({\em ApResid}) for every PSF
     2206%%% \ippprog{psphot} measures the aperture correction ({\em ApResid}) for every PSF
    21282207%%% candidate source, then calculates the trend of this correction as a
    21292208%%% function of the magnitude.  This trend is fitted with a line.  The
     
    21402219%%% term.
    21412220
    2142 \code{psphot} allows a collection of PSF model functions to be tried on all
     2221\ippprog{psphot} allows a collection of PSF model functions to be tried on all
    21432222PSF candidate sources.  For each model test, the above corrected
    21442223ApResid scatter is measured.  The PSF model function with the smallest
    2145 value for the ApResid scatter is then used by \code{psphot} as the best PSF
     2224value for the ApResid scatter is then used by \ippprog{psphot} as the best PSF
    21462225model for this image.  The number of models to be tested is specified
    21472226by the configuration keyword \code{PSF_MODEL_N}.  The configuration
     
    21502229tested.
    21512230
    2152 \begin{table*}
    2153 \begin{center}
    2154 \caption{\label{tab:measurements} \nocode{psphot} measurements performed} % \vspace{-0.5cm}
    2155 \begin{tabular}{lcccc}
    2156 \hline
    2157 \hline
    2158 {\bf Measurement} & {\bf Camera} & {\bf Stack} & {\bf Forced Warp} & {\bf Diff} \\
    2159 \hline
    2160   Background                 & Y & Y & Y & N$^1$ \\
    2161   Peaks                      & Y & Y & N & Y \\
    2162   Footprints                 & Y & Y & N & Y \\
    2163   Moments                    & Y & Y & Y & Y \\
    2164   PSF Model                  & Y & Y & Y & N$^2$ \\
    2165   Bright Star Profile        & Y & Y & N & Y \\
    2166   Non-Linear PSF Fits        & Y & Y & N & N \\
    2167   Source-Size Tests          & Y & Y & N & Y \\
    2168   Unconvolved Galaxy Model   & Y & Y & N & N \\
    2169   Unconvolved Streak Model   & N & N & N & Y \\
    2170   Linear PSF Fits            & Y & Y & Y & Y \\
    2171   Radial Profiles            & Y & Y & N & Y \\
    2172   Petrosian Fluxes           & N & Y & Y & N \\
    2173   Kron Fluxes                & Y & Y & Y & Y \\
    2174   Convolved Galaxy Models    & N & Y & N & N \\
    2175   Fixed Aperture Photometry  & N & Y & Y & N \\
    2176   Convolved, Fixed Apertures & N & Y & N & N \\
    2177   Aperture Corrections       & Y & Y & Y & N \\
    2178   Forced PSF Fluxes          & N & N & Y & N \\
    2179   Forced Galaxy Models       & N & N & Y & N \\
    2180   Lensing Parameters         & N & Y & Y & N \\
    2181 \hline
    2182 \hline
    2183 \multicolumn{5}{l}{$^1$ Background subtraction is performed by {\tt ppSub} before calling {\tt psphot}} \\
    2184 \multicolumn{5}{l}{$^2$ PSF modeling is perfom by {\tt ppSub} on the input warps before calling {\tt psphot}} \\
    2185 \end{tabular}
    2186 \end{center}
    2187 \end{table*}
    2188 
    2189 % \subsection{Output Formats}
    2190 
    21912231\section{Forced Photometry Modes}
     2232\label{sec:psf.forced.fit}
    21922233
    21932234Traditionally, projects which use multiple exposures to increase the
     
    21982239with best sensitivity and the best data quality at all magnitudes.  In
    21992240practice, these images have some significant limitations due to the
    2200 difficulty of modelling the PSF variations.  This difficulty is
     2241difficulty of modeling the PSF variations.  This difficulty is
    22012242particularly severe for the Pan-STARRS $3\pi$ survey stacks due to the
    22022243combination of the substantial mask fraction of the individual input
    2203 exposures, the large instrinsic image quality variations within a
     2244exposures, the large intrinsic image quality variations within a
    22042245single exposure, and the wide range of image quality conditions under
    22052246which data were obtained and used to generate the $3\pi$ PV3 stacks.
     
    22572298image; the measured flux may even be negative due to statistical
    22582299fluctuations.  When combined together, these low-significance
    2259 measurements result in a signficant measurement as the signal-to-noise
     2300measurements result in a significant measurement as the signal-to-noise
    22602301increases with the combination of more data.
    22612302
     
    23412382
    23422383The analysis of the difference image follows the same basic steps as
    2343 other \ippprog{psphot} versions with some minor modifictions (see
     2384other \ippprog{psphot} versions with some minor modifications (see
    23442385Table~\ref{tab:measurements}), as follows.  The background subtraction
    23452386is performed before the PSF matching and image subtraction is
     
    23782419motion.  If the astrometric solution for one of the two images is
    23792420insufficiently accurate, all stars in large portions of the images may
    2380 be noticably displaced.  In both of these situations, the stars will
     2421be noticeably displaced.  In both of these situations, the stars will
    23812422appear as PSF dipoles in the difference images.  The positive and the
    23822423negative images will have stellar profiles, but they will be offset
     
    24072448context of the input images, both the positive (subtrahend) and
    24082449negative (minuend) images.  We identify the closest source in both the
    2409 postive and negative images to the detection in the difference image,
     2450positive and negative images to the detection in the difference image,
    24102451out to a maximum of \code{INPUT.MATCH.RADIUS} (= 50 pixels), but only
    24112452if the source in those images has a signal-to-noise greater than
     
    24332474power-law profile) and flux from the tail (with a more complex flux
    24342475distribution).  We use the Kron magnitudes to identify possibly
    2435 extended objects which may be cometary in nature.  \note{need some
    2436   info from MOPS folks on what is used}
     2476extended objects which may be cometary in nature.
     2477
     2478% \note{need some info from MOPS folks on what is used}
    24372479
    24382480For a difference image, both positive and negative sources will be
     
    25122554* background model description (see waters)
    25132555
     2556% alternative version:
     2557% @book{madsen2004methods,
     2558%   title={Methods for Non-linear Least Squares Problems},
     2559%   author={Madsen, K. and Nielsen, H.B. and Tingleff, O. and Danmarks tekniske universitet. Informatik og Matematisk Modellering},
     2560%   url={https://books.google.com/books?id=mhj4MgEACAAJ},
     2561%   year={2004},
     2562%   publisher={Informatics and Mathematical Modelling, Technical University of Denmark}
     2563% }
     2564
     2565% programs mentioned in this text:
     2566% psphot
     2567% psphotStack
     2568% psphotFullForce
     2569% ppImage
     2570% ppSub
Note: See TracChangeset for help on using the changeset viewer.