IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41333


Ignore:
Timestamp:
Apr 13, 2020, 2:38:00 PM (6 years ago)
Author:
eugene
Message:

adding new figures, lots of text updats

Location:
trunk/doc/release.2015/ps1.analysis
Files:
6 added
2 edited

Legend:

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

    r41324 r41333  
    100100images from other telescopes.  We describe the analysis of the
    101101astronomical sources by \ippprog{psphot} in general as well as for the
    102 specific case of the 3rd processing version used for the first \textmod{two public
    103 releases} of the Pan-STARRS $3\pi$ survey data.
     102specific case of the 3rd processing version used for the first
     103\textmod{two public releases} of the Pan-STARRS $3\pi$ survey data.
    104104\end{abstract}
    105105
     
    156156partners collaborate with the Pan-STARRS team to harvest the transient
    157157sources such supernovae and graviational wave counterparts.  A second
    158 Pan-STARRS telescope \citep[PS2][]{chambers2017,chambers2020},
    159 generally matching the PS1 design \citep{Morgan2012} has since been
     158Pan-STARRS telescope \citep[PS2][Chambers et al 2020 in prep]{chambers2017},
     159generally matching the PS1 design \citep{2012SPIE.8444E..0HM} has since been
    160160constructed and has been producing science results since early 2018.
    161161
     
    281281
    282282The photometric and astrometric precision goals for the Pan-STARRS\,1
    283 surveys were quite stringent.  The astrometric goals were relative astrometric accuracy of 10 milliarcseconds
    284 and absolute astrometric accuracy of 100 milliarcseconds with respect
    285 to the ICRS reference stars.  For photometry, the goal was 10
    286 millimagnitudes accuracy within the internal photometric system across
    287 the sky, though the tie to an absolute standard was not required to
    288 meet this standard.
     283surveys were quite stringent.  The astrometric goals were relative
     284astrometric accuracy of 10 milliarcseconds and absolute astrometric
     285accuracy of 100 milliarcseconds with respect to the ICRS reference
     286stars.  For photometry, the goal was 10 millimagnitudes accuracy
     287within the internal photometric system across the sky, though the tie
     288to an absolute standard was not required to meet this standard.
    289289
    290290An additional constraint on the Pan-STARRS analysis system comes from
     
    303303efficient.  Not only is it necessary to make a careful measurement of
    304304the flux of individual sources, it is also critical to characterize
    305 the image point spread function (PSF), and its variations across the field
    306 and from image to image.  Since comparisons between images must be
    307 reliable, the measurements must be stable for both photometry and
    308 astrometry.
     305the image point spread function (PSF), and its variations across the
     306field and from image to image.  Since comparisons between images must
     307be reliable, the measurements must be stable for both photometry and
     308astrometry. 
    309309
    310310A variety of astronomical software packages perform the basic source
     
    518518\end{itemize}
    519519
    520 \note{Discuss the psphot photometry accuracy and the ubercal solution,
    521   etc.  mention Paper V}
    522 
    523 \textadd{The success of the \ippprog{psphot} implementation is meeting
     520\textadd{The success of the \ippprog{psphot} implementation in meeting
    524521  the photometry and astrometry design requirements is demonstrated by
    525   the achieved accuracy for the Pan-STARRS $3\pi$ Survey data. 
    526 }
     522  the achieved accuracy for the Pan-STARRS $3\pi$ Survey data.  For a
     523  survey like the Pan-STARRS\,1 $3\pi$ survey to achieve photometry
     524  and astrometry accuracy at the level of our goals, not only must the
     525  measurement of the astronomical detections be precise, but it is
     526  necessary for the detrending (instrumental signature remove) and
     527  calibration processes to correct for a wide variety of systematic
     528  effects and it is also necessary for the observations to be
     529  performed in such a way that the data can be calibrated well.  These
     530  others aspects of the process are discussed in detail elsewhere
     531  (Papers I, III, V).  In the end, the goals were largely achieved for
     532  the Pan-STARRS\,1 $3\pi$ survey. As reported in Paper V, the
     533  resulting photometric system is consistent across the sky to between
     534  7 and 12.4 millimagnitudes depending on the filter.  The systematic
     535  error floor for individual photometry measurements is $(\sigma_g,
     536  \sigma_r, \sigma_i, \sigma_z, \sigma_y) = (14, 14, 15, 15, 18)$
     537  millimagnitudes.  The bright-star systematic error floor for
     538  individual astrometric measurements is 16 milliarcseconds and the
     539  Pan-STARRS Data Release 2 (DR2) astrometric system is tied to the
     540  Gaia DR1 coordinate frame with a systematic uncertainty of $\sim 5$
     541  milliarcseconds. }
    527542
    528543\section{Basic Analysis}
     
    554569
    555570\item {\bf Output} Write out sources in selected format, write out
    556   difference image, variance image, etc, as selected.
     571  difference image, variance image, etc, as selected. 
    557572\end{enumerate}
    558573
     
    578593PSF model may already be available from external information, in which
    579594case the PSF modeling stage can be skipped.
     595
     596\textadd{Ultimately, all measurements of individual astronomical
     597  sources from \ippprog{psphot} are reported in one of the tables in
     598  the PSPS database.  As discussed in detail in Paper VI, measurements
     599  from individual exposures are available from the
     600  \ippdbtable{Detection} table.  Measurements of objects in the
     601  stacked images are stored in one of several \ippdbtable{Stack...}
     602  tables while the `forced' measurements from individual warp images
     603  are stored in tables beginning with \ippdbtable{ForcedWarp...}.}
    580604
    581605\begin{table*}
     
    893917Since a typical smoothing or warping operation may introduce
    894918correlation between 25 - 100 neighboring pixels, the size of such a
    895 covariance image is prohibitive. 
    896 \note{describe the way we handle covariance}
     919covariance image is prohibitive.
     920
     921%% \note{describe the way we handle covariance}
     922
     923%% Within the IPP analysis generally, we carry a simplified
     924%% representation of the impact of covariance on the variance values
     925%% used in pixel analysis operations.  Whenever image operations
     926%% introduce covariance by combining information from multiple pixels,
     927%% we update a matrix tracking the covariance at the image center for
     928%% a small range of pixels. 
    897929
    898930Before sources are detected in the image, a model of the background is
     
    93096250\% of the peak bin value.
    931963
     964\begin{table}
     965\caption{\label{tab:sky.offset} Comparison of background
     966  measurement methods.  Backgrounds were measured for simulated images with the given stellar
     967  density (at the low-density detection threshold) and known
     968  background level.  The {\tt psphot} technique is less biased at high
     969stellar densities.} \vspace{-0.5cm}
     970\begin{center}
     971% \footnotesize
     972\begin{tabular}{cccccc}
     973\hline
     974\hline
     975{\bf Density} & {\bf True} & {\bf Image} & {\bf  Image} & {\bf Gauss} & {\bf \tt psphot} \\
     976{\bf \footnotesize $\log_{10}(\mbox{deg}^{-2}$)} & {\bf Sky} & {\bf Mean} & {\bf  Median} & {\bf Fit} & {\bf \tt Value} \\
     977\hline
     9784.2 & 202.8 & 203.3 & 202.8 & 202.8 & 202.9 \\
     9794.7 & 202.8 & 204.9 & 203.1 & 203.0 & 203.0 \\
     9805.2 & 202.8 & 210.6 & 204.0 & 203.5 & 203.5 \\
     9815.7 & 202.8 & 233.9 & 207.4 & 205.4 & 205.3 \\
     9826.2 & 202.8 & 300.9 & 219.7 & 211.2 & 210.6 \\
     9836.7 & 202.8 & 534.6 & 286.2 & 242.8 & 233.9 \\
     984\hline
     985%\multicolumn{5}{l}{$^1$ a footnote} \\
     986\end{tabular}
     987\end{center}
     988\end{table}
     989
    932990If the fit to the asymmetric lower fraction of the curve is less than
    933991the symmetric fit, but greater than the above lower-bound of the full
    934992symmetric fit, then the lower fraction value is kept as the true mean
    935 sky value for this superpixel.
     993sky value for this superpixel.  Table~\ref{tab:sky.offset} shows a
     994comparison of this technique to several other methods to measure the
     995sky background using simulated data with a range of stellar
     996densities. The stellar density listed in the table is the number of stars per
     997square degree at the $5\sigma$ detection limit {\em in the
     998  lowest-density image}. In our simulations, we find that as the
     999stellar density rises to values typical in the Galactic plane regions,
     1000this technique results in a more accurate estimate of the background,
     1001though it still over-estimates the background compared to the truth.
    9361002
    9371003Bilinear interpolation is used to generate a full-resolution image
     
    9861052\textadd{For an image with a Gaussian PSF of the same size, this method
    9871053  would represent the optimal detection algorithm, equivalent to a
    988   matched filter \note{add ref}.  At this stage, our goal is simply to
     1054  matched filter.  At this stage, our goal is simply to
    9891055  detect the brighter sources, so the exact size and shape of the PSF
    9901056  is not critical. }
     
    13781444parameters would be the shape terms ($\sigma_x, \sigma_y, \sigma_{\rm
    13791445  xy}$) while the independent parameters would be the centroid,
    1380 normalization and local sky values ($x_o, y_o, I_o, S$).  \note{we do
    1381   not fit sky as a free parametery, right?}  Thus the
    1382 shape parameters are each a function of the source centroid
    1383 coordinates:
     1446normalization and local sky values ($x_o, y_o, I_o, S$), though as
     1447noted below (Section~\ref{sec:nonlinear.psf.model}), in practice we do
     1448not allow the sky to be fitted independently since we subtract the
     1449background model.  Thus the shape parameters are each a function of
     1450the source centroid coordinates:
    13841451\begin{eqnarray}
    13851452\sigma_x    & = & f_1(x_{\rm ccd},y_{\rm ccd}) \\
     
    14231490\textadd{For these PSF models, the functions are evaluated at the pixel center.
    14241491Unlike some galaxy model representations (see
    1425 Section~\label{sec:galaxy.conv.fit} ), the first derivatives of these
     1492Section~\ref{sec:galaxy.conv.fit} ), the first derivatives of these
    14261493functions approach zero as the radius approaches zero, so sub-pixel
    14271494integration is not necessary.}
     
    16161683With $\sigma_a$, $\sigma_b$, $\theta$ in hand, we can now transform
    16171684these values to the parameters of our fits, $\sigma_x$, $\sigma_y$,
    1618 $\sigma_{\rm xy}$ (Eqn~\label{eqn:2d.gaussian} above).  This transformation
     1685$\sigma_{\rm xy}$ (Eqn~\ref{eqn:2d.gaussian} above).  This transformation
    16191686can be determined by rotating the 2D Gaussian equation, yielding:
    16201687\begin{eqnarray}
     
    18021869not to be in the current thread group).
    18031870
    1804 \note{explain number of superpixels (psphotThreadTools.c)}
     1871% \note{explain number of superpixels (psphotThreadTools.c)}
    18051872
    18061873As the threads complete their analysis, they are assigned the next
     
    18971964sky radius.  These values are saved in the \textmod{output FITS catalog files}, but
    18981965not sent to the PSPS.  The sky radius value is used below in the
    1899 calculation of the Kron magnitude. \note{used in both versions?}
    1900 \note{calculated for the second pass?}
     1966calculation of the Kron magnitude.
    19011967
    19021968\subsubsection{Kron Magnitudes}
     
    19492015the neighbors.}
    19502016
    1951 % \note{give a test example}
    1952 
    19532017\subsubsection{Source Size Assessment}
    19542018\label{sec:source.size}
     
    20252089PV3 analysis of the $3\pi$ survey data, this limit was set to a
    20262090signal-to-noise ratio of 20.0 for all analysis stages.  In these fits,
    2027 the dependent parameters are fixed by the PSF model and only the 4
    2028 independent source model parameters are allowed to vary in the fit.
    2029 \ippprog{psphot} again uses Levenberg-Marquardt minimization for the
    2030 non-linear fitting.  The sources are fitted in their S/N order,
    2031 starting with the brightest and working down to the user-specified
    2032 limit, with the other sources subtracted as discussed above.  All
    2033 sources for which a non-linear PSF model has been attempted have the
    2034 flag bit \code{PM_SOURCE_MODE_FITTED} set, regardless of the quality
    2035 of that fit.
     2091the dependent parameters are fixed by the PSF model and only \textmod{the 3
     2092independent source model parameters (position in $X$ and $Y$ and flux
     2093normalization) are allowed to vary in the fit.  Note that we do {\em
     2094  not} allow the local sky to be fitted as a free parameters.  Since
     2095we have subtracted a model for the background, allowing the sky to be
     2096again at this stage is redundant.  In fact, in our testing, we found
     2097that allowing the sky to float resulted in higher scatter for the flux
     2098normalizations.}  \ippprog{psphot} again uses Levenberg-Marquardt
     2099minimization for the non-linear fitting.  The sources are fitted in
     2100their S/N order, starting with the brightest and working down to the
     2101user-specified limit, with the other sources subtracted as discussed
     2102above.  All sources for which a non-linear PSF model has been
     2103attempted have the flag bit \code{PM_SOURCE_MODE_FITTED} set,
     2104regardless of the quality of that fit.
    20362105
    20372106Since the PSF model describes the variation of the PSF across the
     
    21482217As the sources are fitted to the PSF model, those which survive the
    21492218exclusion stage are subtracted from the image.  The subtraction
    2150 process modifies the image pixels (removing the fitted flux, though
    2151 not the locally fitted background)\note{is the background actually
    2152   fitted locally?} but does not modify the mask or the variance
    2153 images.  The signal-to-noise ratio in the image after subtraction
    2154 represents the significance of the remaining flux.  If the
    2155 subtractions are sufficiently accurate models of the PSF flux
    2156 distribution, \textmod{the remaining flux should be normally distributed about
    2157 zero with a standard deviation of 1 $\sigma$}.  In practice the cores
    2158 of bright stars are poorly represented and may have larger residual
    2159 significance.
     2219process modifies the image pixels (removing the fitted flux) but does
     2220not modify the mask or the variance images.  The signal-to-noise ratio
     2221in the image after subtraction represents the significance of the
     2222remaining flux.  If the subtractions are sufficiently accurate models
     2223of the PSF flux distribution, \textmod{the remaining flux should be
     2224  normally distributed about zero with a standard deviation of 1
     2225  $\sigma$}.  In practice the cores of bright stars are poorly
     2226represented and may have larger residual significance.
    21602227
    21612228For sources in groups of blended stars, the resulting fits are
     
    22012268comparing the ratio to that expected.
    22022269
    2203 \note{more on the parameter guess}
    2204 
    22052270For each type of extended source model (in fact for all source
    22062271models), a function is defined which examines the fit results and
     
    22382303\subsection{Faint Source Analysis}
    22392304\label{sec:faint.psf.model}
     2305
     2306% pueo:/home/real/eugene/ppsim.20200407
     2307\begin{figure}[htbp]
     2308  \begin{center}
     2309 \includegraphics[width=\hsize,clip]{\picdir/{completion.ppsim}.pdf}
     2310  \caption{\label{fig:complete.ppsim} Completeness as a function of
     2311    magnitude (blue curves) for different stellar densities in
     2312    simulated data.  The curves are labeled with the logarithm of the
     2313    stellar density at the detection threshold of the low-density
     2314    image.  The dotted red line shows the detection limit expected for
     2315    the sky level and seeing.  The solid red curve shows the
     2316    completeness estimated for the low-density image based on
     2317    injection and recovery.}
     2318  \end{center}
     2319\end{figure}
     2320
     2321% pueo:/home/real/eugene/ppsim.20200407
     2322\begin{figure}[htbp]
     2323  \begin{center}
     2324 \includegraphics[width=\hsize,clip]{\picdir/{psphot.complete.pv3}.pdf}
     2325  \caption{\label{fig:complete.pv3} Completeness and bogus fraction
     2326    as a function of magnitude for different stellar densities in real
     2327    PS1 exposures.  Each panel represents an exposure at different
     2328    Galactic latitudes towards anti-center, labeled by the density of
     2329    stars at the detection limit of the low-density exposure.  In each
     2330    panel, the completeness (compared to deep stack data) and fraction
     2331    of false detections (bogus fraction) is shown for a series of
     2332    cuts.  The gold curves show all detections in the exposures.  The
     2333    dotted black curve shows the impact of cutting detections
     2334    identified by {\tt psphot} as cosmic rays.  The blue curve
     2335    excludes cosmic rays and detections with {\tt PSF\_QF} $< 0.95$
     2336    while the red curve excludes cosmic rays and detections with {\tt
     2337      PSF\_QF\_PERFECT} $< 0.95$.}
     2338  \end{center}
     2339\end{figure}
    22402340
    22412341After a first pass through the image, in which the brighter sources
     
    22742374  centroids.}
    22752375
    2276 \textadd{After the flux-normalization is calculated, the moments
    2277   are used to calculate the preliminary Kron radius and flux (see
    2278   Section~\ref{sec:kron.mags}).  These are in turn used to assess the
    2279   source sizes as in Section~\ref{sec:source.size}.  However, the
     2376\textadd{After the flux-normalization is calculated, the radial
     2377  profile is measured (Section~\ref{sec:radial.profile}) and the
     2378  moments are used to calculate the preliminary Kron radius and flux
     2379  (see Section~\ref{sec:kron.mags}).  These are in turn used to assess
     2380  the source sizes as in Section~\ref{sec:source.size}.  However, the
    22802381  non-linear fitting steps for the PSF model fits
    22812382  (Section~\ref{sec:nonlinear.psf.model}) and the extended source
     
    22882389  parameters.  In addition, the positions (for PSF sources) are not
    22892390  much improved using the non-linear fitting compared with the
    2290   non-parametric centroid measurement for these faint sources.
    2291   \note{show with a model}.}
     2391  non-parametric centroid measurement for these faint sources. }
    22922392
    22932393The PV3 threshold for the bright source analysis is a signal-to-noise
     
    23122412on one image based on detections in other images have the flag bit
    23132413\code{PM_SOURCE_MODE2_MATCHED} set.
    2314 
    2315 \note{need to discuss the injection \& recovery analysis of the completeness}
    23162414
    23172415\subsection{Aperture Correction and Total Aperture Fluxes}
     
    23382436will by determined by how inconsistently the models represent the
    23392437actual source flux.
    2340 
    2341 Aperture photometry attempts to avoid these problems, but introduces
    2342 other difficulties.  In aperture photometry, if a large enough
    2343 aperture is chosen, the amount of flux which is lost will be a small
    2344 fraction of the total source flux.  Even more importantly, as the
    2345 image conditions change, the amount lost will change by an even
    2346 smaller fraction, at least for a large aperture. 
    2347 %
    2348 % This can be seen by
    2349 % the fact that the dominant variations in the image quality are in the
    2350 % focus, tracking and seeing.  All of these errors initially affect the
    2351 % cores of the stellar images, rather than the wide wings.  The wide
    2352 % wings are largely dominated by scattering in the optics and scattering
    2353 % in the atmosphere.  The amplitude and distribution of these two
    2354 % scattering functions do not change significantly or quickly for a
    2355 % single telescope and site. 
    2356 %
    2357 Aperture photometry can then be used to
    2358 correct the PSF photometry.
    2359 
    2360 The difficulty for aperture photometry is the need to make an accurate
    2361 measurement of the local background for each source.  As the aperture
    2362 grows, errors in the measurement of the sky flux start to become
    2363 dominant.  If the aperture is too small, then variations in the image
    2364 quality are dominant.  The brighter is the source, the smaller is the
    2365 error introduced by the large size of the aperture.  However, the
    2366 number of very bright stars is limited in any image, and of course the
    2367 brighter stars are more likely to suffer from non-linearity or
    2368 saturation. 
    23692438
    23702439% /data/kukui.1/eugene/psphot.examples.20190423/compare.sh
     
    24022471\end{figure*}
    24032472
     2473% on pueo ~eugene
     2474% /data/kukui.1/eugene/psphot.examples.20190423/compare.sh
     2475\begin{figure}[htbp]
     2476  \begin{center}
     2477 \includegraphics[width=\hsize,clip]{\picdir/{bright.mag.resid}.\plotext}
     2478  \caption{\label{fig:mag.resid.stdevs} Demonstration of photometric
     2479    accuracy using the image sequence from
     2480    Figure~\ref{fig:mag.resid.psf}. Using only bright stars (7 - 8
     2481    magnitudes above the detection threshold), we calculate the
     2482    difference between the magnitudes in the first image and the other
     2483    17 images.  The plotted dots show for each pair the mean
     2484    difference vs the standard deviation of the difference.  Red dots
     2485    show the PSF magnitudes and blue dots show aperture
     2486    magnitudes. Despite real transparency variations of 0.4 over the
     2487    50 minutes of this sequence, magnitudes are consistent at the few
     2488    millimagnitude level.  Aperture magnitudes have scatter in
     2489    the 2 - 7 millimagnitude range, while the PSF magnitudes have
     2490    scatter of 7 - 14 millimagntiudes. 
     2491}
     2492\end{center}
     2493\end{figure}
     2494
     2495% on pueo ~eugene/zpts.20200406/mana.sh
     2496\begin{figure*}[htbp]
     2497  \begin{center}
     2498 \includegraphics[width=\hsize,clip]{\picdir/{zpt.mjd.v0.i}.\plotext}
     2499  \caption{\label{fig:zpt.iband} Historical \ips-band zero points.
     2500    Blue dots are the individual exposure zero points, corrected to
     2501    airmass at the zenith.  Red dots are the median of zero points
     2502    from images groups in bins of 10 nights.  The grey line is a
     2503    spline fit to these median values.  }
     2504\end{center}
     2505\end{figure*}
     2506
     2507% on pueo ~eugene/zpts.20200406/mana.sh
     2508\begin{figure}[htbp]
     2509  \begin{center}
     2510 \includegraphics[width=\hsize,clip]{\picdir/{zptres.hist.v0.i}.\plotext}
     2511  \caption{\label{fig:zpt.resid.hist} Historical \ips-band zero-point
     2512    residual variations.  Log-histogram (black line) of the
     2513    per-exposure zero points, corrected to the zenith, after
     2514    subtracting a spline fit to the median of image groups in bins of
     2515    10 nights.  The inset shows the core of the distribution.  In
     2516    both, the red line is a Gaussian fit to the distribution.  The
     2517    large negative tails are due to clouds and haze.  }
     2518\end{center}
     2519\end{figure}
     2520
     2521Aperture photometry attempts to avoid these problems, but introduces
     2522other difficulties.  In aperture photometry, if a large enough
     2523aperture is chosen, the amount of flux which is lost will be a small
     2524fraction of the total source flux.  Even more importantly, as the
     2525image conditions change, the amount lost will change by an even
     2526smaller fraction, at least for a large aperture. 
     2527%
     2528% This can be seen by
     2529% the fact that the dominant variations in the image quality are in the
     2530% focus, tracking and seeing.  All of these errors initially affect the
     2531% cores of the stellar images, rather than the wide wings.  The wide
     2532% wings are largely dominated by scattering in the optics and scattering
     2533% in the atmosphere.  The amplitude and distribution of these two
     2534% scattering functions do not change significantly or quickly for a
     2535% single telescope and site. 
     2536%
     2537Aperture photometry can then be used to
     2538correct the PSF photometry.
     2539
     2540The difficulty for aperture photometry is the need to make an accurate
     2541measurement of the local background for each source.  As the aperture
     2542grows, errors in the measurement of the sky flux start to become
     2543dominant.  If the aperture is too small, then variations in the image
     2544quality are dominant.  The brighter is the source, the smaller is the
     2545error introduced by the large size of the aperture.  However, the
     2546number of very bright stars is limited in any image, and of course the
     2547brighter stars are more likely to suffer from non-linearity or
     2548saturation. 
     2549
    24042550In order to thread the needle between these effects, \ippprog{psphot}
    24052551measures the aperture photometry on a modest-sized aperture, and then
     
    24312577analysis, a grid with a maximum of $6\times 6$ samples per GPC1 chip
    24322578image was used.  The reported PSF magnitudes for all objects have this
    2433 aperture correction applied.
     2579aperture correction applied.  \textadd{Note that an initial aperture correction was
     2580measured during the initial steps of the analysis before the PSF model
     2581was chosen.  However, since the sources in the image were not yet
     2582measured and subtracted, that aperture could be contaminated by
     2583neighbors.  The analysis here is performed one fairly bright star at a
     2584time with all other sources subtracted in order to minimize such contamination.}
    24342585
    24352586% growth curve analysis in psphot:
     
    24812632%%% term.
    24822633
     2634\subsection{Completeness \& Contamination}
     2635
     2636At the end of the \ippprog{psphot} analysis of the sources in the
     2637image, an analysis is performed to test the detection efficiency.  A
     2638number of fake PSF sources are injected into the image and the peak
     2639detection analysis (Section~\ref{sec:peaks}) is use to determine if
     2640these sources would have been recovered.  The PSF model fluxes are
     2641measured for the source which are detected.  For a given image, the
     2642detection threshold is predicted based on the median image variance
     2643and the seeing.  A series of brightness bins straddling the threshold
     2644are defined and a number of sources are injected with magnitudes
     2645corresponding to each of these bin values.  The \ippprog{psphot}
     2646recipe value \code{EFF.NUM} specifies the number of sources in each
     2647brightness bin (500 the PV3), and the value \code{@EFF.MAG} specifies
     2648the bins as magnitudes above and below the threshold.  For PV3, the 13
     2649magnitude offsets were (-2.0, -1.0, -0.5, -0.25, -0.1, -0.05, 0.0,
     26500.05, 0.1, 0.25, 0.5, 1.0, 2.0), providing fine sampling near the
     2651limit, but more coarse coverage further away.  Poisson noise
     2652appropriate to the photon counts of the injected sources are included
     2653in the image.  Injected sources are uniformly distributed across the
     2654image in $X$ and $Y$ pixel coordinates {\em without any consideration
     2655  of the masked regions}.  This last point means the recovered
     2656fraction in the bright bins can be used to test the masking fraction.
     2657
     2658As the stellar density increases, the completeness suffers due to
     2659crowding and confusion.  Since the injection and recovery analysis of
     2660the fake sources operates on the source-subtracted image and does not
     2661attempt to fully discovery the sources, this analysis over-estimates
     2662the completeness in crowded fields.  To explore the completeness in
     2663crowded field images, we generate a series of simulated images using a
     2664Gaussian PSF with FWHM = 1\arcsec for a range of stellar densities.
     2665We generate fake stars with fluxes as faint as $\frac{1}{5}$ of the
     2666flux as the low-density detection limit, with densities ranging from
     2667\approx 14,000 stars per square degree at low-density detection limit
     2668to \approx 4.8 million stars per square degree at the low-density
     2669detection limit.  The latter is comparable to observed densities in
     2670the Galactic plane.  We run the \ippprog{psphot} analysis on these
     2671simulated images and compare the detected stars to those injected to
     2672calculate the completeness for each image as a function of the true
     2673magnitude of the stars.  Figure~\ref{fig:complete.ppsim} shows the measured
     2674completeness for each of the six simulated images, labeled by the
     2675logarithm of their faint-end stellar density. The red dashed line
     2676shows the expected detection limit based on the background and seeing,
     2677while the red curve shows the completeness curve calculated
     2678automatically by \ippprog{psphot} using the injection and recovery
     2679analysis.
     2680
     2681For low-density fields, the completeness function determined by
     2682injection and recovery is similar to that measured by the simulation,
     2683with the 50\% completeness threshold roughly 0.3 magnitudes too faint.
     2684As the stellar density increases, the true 50\% completeness magnitude
     2685rises relative to the value estimated by injection and recovery.
     2686
     2687Ideally, all sources detected by \ippprog{psphot} would correspond to
     2688real astrophysical objects.  In reality, many sources are detected in
     2689the images which do not correspond to real sources in the sky.  In the
     2690very simplified simulations discussed above, which do not include
     2691realistic detector artifacts, we find that the fraction of bogus
     2692detections is extremely low, even at the very faint end.  In real
     2693data, bogus detections are due to a variety of typical instrumental
     2694features including cosmic rays, diffraction spikes, satelite tracks,
     2695glows, non-Gaussian noise, variance mis-estimation, etc.  See paper III
     2696for extensive discussion of instrumental artifacts in the Pan-STARRS images.
     2697
     2698Figure~\ref{fig:complete.pv3} illustrates the completeness and bogus
     2699detection fraction for a set of 4 real PS1 exposures from the $3\pi$
     2700Survey.  This figure uses \ips-band exposures with Galactic longitude
     2701roughly 200\degrees and latitudes of 0, 10, 30, 90 degrees.  We
     2702identify the real astrophysical sources in these fields by comparing
     2703with the deeper stack exposures and counting as real any source
     2704detected in both \rps\ and \ips.  We correct for the masking fraction
     2705in the exposures (which is roughly 80\%) in the case of GPC1 and plot
     2706the completeness fraction for all detections in 0.5 magnitude wide
     2707bins from the saturation limit to below the detection limit.  We also
     2708show the bogus fraction, calculated as $1 - f_{\rm pure}$, where
     2709$f_{\rm pure}$ is the ratio of real detections to all detections for
     2710the given sample.  We then apply three cuts to remove certain kinds of
     2711bogus sources.  First, we exclude cosmic rays identified by
     2712\ippprog{psphot} by rejecting sources with the flag bit
     2713\code{PM_SOURCE_MODE_CR_LIMIT} (see Section~\ref{sec:source.size}).
     2714Next, we also remove detections with \ippmisc{PSF_QF} less than 0.95.
     2715Because this cut removes detections with heavy masking, it exclude a
     2716number of bogus detections due to glows and edge defects.  Finally, we
     2717also exclude  detections with \ippmisc{PSF_QF_PERFECT} less than
     27180.95.  This cut removes detections on residual persistent glows and
     2719diffraction spikes.
     2720
     2721For the exposures at high-Galactic latitude, with a relatively low
     2722density of sources, the cosmic rays represent a significant
     2723contamination, as seen in the excess of bogus sources with \ips-band
     2724magnitudes in the range 17 - 19.  These are efficiently removed with
     2725the cosmic ray cut listed above without noticable impact on the
     2726completeness.  The other two cuts remove significant numbers of bogus
     2727detections, especially at the faint end, but at a significant cost in
     2728completeness at even brighter magnitudes.  The completeness impact of
     2729these cuts is more significant at low-Galactic latitude, likely
     2730because the chance of having a source lie on the diffraction spikes or
     2731persistence glows is greatly increased at higher stellar densities.
     2732The impact of the crowding on the completeness is also clear in this dataset.
     2733
    24832734\subsection{Stellar Photometry Example}
    24842735\label{sec:phot.example}
     
    24982749configuration for \ippprog{psphot} as used for the full PV3
    24992750\ippstage{chip} analysis.  The first image of the sequence is compared
    2500 to the remaining 17 images.  A relative zero point correction is
     2751to the remaining 17 images.  A relative zero-point correction is
    25012752applied, measured as the median of the photometry difference for stars
    25022753with signal-to-noise greater than 50.  The combined error is reported
    2503 and used to generate the histograms shows in the figures.  From these
     2754and used to generate the histograms shown in the figures.  From these
    25042755two figures, one can observe the trade-off between PSF and aperture
    25052756photometry.  For the brightest instrumental magnitudes, corresponding
     
    25282779with the aperture photometry degrading rapidly as the flux of the star
    25292780decreases. 
     2781
     2782{\TEXTADD The figures above show the relative photometric accuracy for
     2783  observations at a consistent pointing compared to the photon
     2784  counting statistics. A related question is to ask how consistent is
     2785  the photometry of the very brightest stars in terms of magnitudes.
     2786  Figure~\ref{fig:mag.resid.stdevs} shows the accuracy of the
     2787  brightest stars in these images for both PSF and aperture
     2788  magnitudes.  The relative zero point between the 1st image in the
     2789  sequence and each of the remaining images was calculated and the
     2790  standard deviations were measured using stars 7 to 8 magnitudes
     2791  brighter than the detection threshold, for which the photon noise is
     2792  less than 1 millimagnitude.  Significant zero-point differences
     2793  between the images are observed, largely due to the atmospheric
     2794  transparency variations.  Even so, the relative zero points
     2795  calculated from the aperture magnitudes have standard deviations of
     2796  2.4 - 7.4 millimags with a median of 3.5 millimags, while for PSF
     2797  magnitudes, the standard deviations are in the range 6.7 - 14.2
     2798  millimags, with a median of 9.2. }
     2799
     2800{\TEXTADD Our ultimate ability to accurately measure the brightness of
     2801  individual sources depends on a few factors: the accuracy of the
     2802  flat-field response, the consistency of the flux measurement across
     2803  the image (either due to the accuracy of the PSF model or the
     2804  accuracy of the aperture correction), and the accuracy of our
     2805  correction for any zero point changes.  Our ability to accurately
     2806  measure the zero point of each exposure depends in part on the
     2807  characteristics of the observing site.  In hazy conditions, the
     2808  transparency of the atmosphere may vary substantially in time but be
     2809  relatively stable across the field-of-view of the camera, as is
     2810  shown in Figure~\ref{fig:mag.resid.stdevs}.  Conversely, thin patchy
     2811  clouds can result in small average transparency changes but
     2812  substantial localized variations.  If the site experiences more
     2813  patchy clouds than smooth haze, photometric calibration will be
     2814  difficult.  A large fraction of time with cloudless conditions will
     2815  benefit the calibration.}
     2816
     2817{\TEXTADD To examine the Pan-STARRS site characteristics, we extracted
     2818  \ips\ zero points for the lifetime of the observatory (2009 June -
     2819  2020 April), shown in Figure~\ref{fig:zpt.iband}.  These zero points
     2820  were measured as part of the PV3 analysis of the $3\pi$ Survey, and
     2821  from the nightly data analysis after the end of the $3\pi$ Survey,
     2822  in both cases using the Pan-STARRS-based reference catalog.  The
     2823  zero points vary from night-to-night and over long periods.  Over
     2824  the 11 years of PS1 operation, the observed \ips-band zero point
     2825  (for data in good weather, extrapolated to the zenith), has varied
     2826  over 0.175 magnitudes (see Figure~\ref{fig:zpt.iband}).  The
     2827  long-term variations are believed to be due mostly to dust
     2828  accumulation on the primary mirror and occasional cleaning, though
     2829  the effect of the atmosphere cannot be ruled out.}
     2830
     2831{\TEXTADD Figure~\ref{fig:zpt.resid.hist} shows a log-scale histogram
     2832  of the \ips-band zero points after subtracting a smoothly varying
     2833  spline fit to the median of groups of 10 nights.  A Gaussian fit to
     2834  this distribution has $\sigma = 28.4$ millimags.  If we
     2835  alternatively subtract a median zero point for each night, the
     2836  standard deviation is reduced to 18.9 millimags.  These values can be
     2837  compared to the results of \cite{2012ApJ...756..158S} in which only
     2838  photometric nights were included, yielding a standard deviation of
     2839  9.0 millimags.  On short time scales, weather (e.g., clouds \& haze)
     2840  causes the deviations to lower zero point values.  A small fraction
     2841  of positive deviations also seen in Figure~\ref{fig:zpt.resid.hist}
     2842  which are not expected from the normal effects of weather.  We
     2843  believe these are largely due to aperture correction errors.}
     2844
     2845\subsection{Basic Analysis Summary}
     2846
     2847\textadd{This section is focused on the basic analysis of the image
     2848  for point-source detection and measurement.  This analysis is
     2849  applied as described to the invidual exposures in the
     2850  \ippstage{chip}-stage analysis and the measurements are exposed in
     2851  the public release PSPS database in the \ippdbtable{Detection}
     2852  table.  The same analysis is applied to the individual skycells in
     2853  the \ippstage{stack}-stage analysis and the resulting values are
     2854  presented in the PSPS \ippdbtable{StackObjectThin} and
     2855  \ippdbtable{StackObjectAttribute} tables, with the later presenting
     2856  values in instrumental units and the former giving calibrated
     2857  values.  The detection efficiency information determined from the
     2858  injection and recovery analysis is stored in the
     2859  \ippdbtable{ImageDetEffMeta} and \ippdbtable{StackDetEffMeta} tables
     2860  for the \ippstage{chip} and \ippstage{stack} stage analysis.  }
    25302861
    25312862\section{Extended Source Analysis}
     
    26843015saved as equal-length vectors in the FITS table (\code{PROF_FLUX} and
    26853016\code{PROF_FILL}).  The values of the radial bins are saved in the
    2686 output file FITS header (\code{RMIN_NN}, \code{RMAX_NN}). 
    2687 
    2688 \note{specify PV3 config values?}
    2689 
    2690 % \note{these profiles are not saved in PSPS}
     3017output file FITS header (\code{RMIN_NN}, \code{RMAX_NN}).  \textadd{These
     3018measurements are saved in the catalog FITS files generated by
     3019\ippprog{psphot}, but they are not currently exported to the PSPS
     3020database for easy access.}
    26913021
    26923022\subsection{Petrosian Radii and Magnitudes}
     
    27463076parameters were attempted, but for which the radial profile analysis
    27473077failed have the flag bit
    2748 \code{PM_SOURCE_MODE2_PETRO_NO_PROFILE} set. 
     3078\code{PM_SOURCE_MODE2_PETRO_NO_PROFILE} set.  \textadd{These measurements are
     3079available from the PSPS \ippdbtable{StackPetrosian} table.}
    27493080
    27503081
     
    29593290\note{how much error does this approximation introduce?}
    29603291
     3292The convolved galaxy model fit results are available in one of three
     3293PSPS database tables: \ippdbtable{StackModelFitExp},
     3294\ippdbtable{StackModelFitDeV}, \ippdbtable{StackModelFitSer} for the
     3295Exponential, DeVaucouleur, and S\'ersic models, respectively.
     3296
     3297
    29613298\subsection{Fixed Aperture Photometry}
    29623299\label{sec:fixed.aperture.photom}
     
    30313368SDSS aperture magnitudes.}
    30323369
    3033 \note{test this?}
     3370\textadd{The measurements described in this subsection are presented
     3371  in the PSPS database (Paper VI) in the
     3372  \ippdbtable{StackApFlxExGalUnc}, \ippdbtable{StackApFlxExGalCon6},
     3373 \ippdbtable{StackApFlxExGalCon8}, and \ippdbtable{StackApFlx} tables.
     3374 The first three tables present measurements for all apertures from
     3375 the unconvolved, 6, and 8-pixel FWHM convolved images (respectively)
     3376 while the last table presents a subset of the radii from all three
     3377 sets of measurements joined together for ease of access.}
     3378
     3379\note{test SDSS radial apertures?}
    30343380
    30353381% at least out to aperture # RADIAL_AP_MIN (= 4), but no further than
     
    31903536Traditionally, projects which use multiple exposures to increase the
    31913537depth and sensitivity of the observations have generated something
    3192 equivalent to the stack images produced by the IPP analysis
    3193 (c.f, CFHT Legacy survey, COSMOS, etc).  In theory, the photometry of
    3194 the stack images produces the ``best'' photometry catalog,
    3195 with best sensitivity and the best data quality at all magnitudes.  In
     3538equivalent to the stack images produced by the IPP analysis,
     3539\textadd{as done for example by the CFHT Legacy Survey
     3540  \citep{2006ApJ...647..116H} or the Cosmic Evolution Survey
     3541  \citep[COSMOS][]{2007ApJS..172...99C}}.  In theory, the photometry
     3542of the stack images produces the ``best'' photometry catalog, with
     3543best sensitivity and the best data quality at all magnitudes
     3544\citep[see e.g., the discussion of]{2017ApJ...836..187Z}.  In
    31963545practice, these images have some significant limitations due to the
    31973546difficulty of modeling the PSF variations.  This difficulty is
     
    32013550single exposure, and the wide range of image quality conditions under
    32023551which data were obtained and used to generate the $3\pi$ PV3 stacks.
     3552
     3553% CFHTLS release doc:
     3554% http://www.cfht.hawaii.edu/Science/CFHLS/T0007/CFHTLS_T0007-TechnicalDocumentation.pdf
    32033555
    32043556For any specific stack, the point spread function at a particular
     
    32563608(Section~\ref{sec:ensemble.fitting}).
    32573609
    3258 \textmod{Aperture fluxes, Kron fluxes}, and moments are also measured at
    3259 this stage for each warp.  Note that the flux measurement for a faint,
     3610\textmod{Aperture fluxes, Kron fluxes}, and moments are also measured
     3611at this stage for each warp.  \textmod{For the Kron fluxes, the radii
     3612  are fixed to the value determined in the analysis of the stack.
     3613  Fluxes are also measured in 3 of the fixed apertures discussed in
     3614  Section~\ref{sec:fixed.aperture.photom}: those with 3.00, 4.64,
     3615  and 7.44 arcsecond radii.}
     3616  Note that the flux measurement for a faint,
    32603617but significant, source from the stack image may be at a low
    32613618significance (less than the $5\sigma$ criterion used when the
     
    32773634system.  The PSF photometry measurements are combined in the context
    32783635of the DVO database system \citep{magnier2017.datasystem}, including
    3279 recalibration of the zero points for the individual warp.
     3636recalibration of the zero points for the individual warp.  \textadd{These
     3637measurements for each warp are available from the PSPS database
     3638\ippdbtable{ForcedWarpMeasurement} and \ippdbtable{ForcedWarpExtended}
     3639tables, the latter containing the three fixed-aperture fluxes.  The
     3640average values calculated over the warps are found in the
     3641\ippdbtable{ForcedMeanObject} tables.}
    32803642
    32813643\note{discuss the relative quality of average exposure, forced warp
     
    33393701In this way, the forced galaxy model analysis uses the PSF information
    33403702from each warp image to determine a best set of convolved galaxy
    3341 models for each galaxy model measured for the stack image.
     3703models for each galaxy model measured for the stack image.  The
     3704results of these galaxy model fits are available from the PSPS
     3705database \ippdbtable{ForcedGalaxyShape} table.
    33423706
    33433707\subsection{Galaxy Lensing Parameters}
     
    35273891\code{PSF_QF_PERFECT} is less than 0.85.
    35283892
     3893The lensing parameters measured for individual warps are available
     3894from the PSPS database \ippdbtable{ForcedWarpLensing} table while the
     3895average values calculated over the warps is found in the
     3896\ippdbtable{ForcedMeanLensing} tables.
     3897
    35293898% \note{example of using the lensing elements for binaries?}
    35303899
     
    36734042\section{Conclusions}
    36744043
     4044\note{add lessons learned here}
     4045
     4046\begin{verbatim}
     4047Suggestions for improvements / changes
     4048* use more external knowledge:
     4049  ** Gaia or PS1 to select stars as PSF sources
     4050  ** pre-seed information about the very bright or very crowded
     4051                regions
     4052* background model
     4053  ** allow the superpixel scale to change as a function of environment
     4054  ** do not use the lower-end model unless region is known to be dense
     4055* use galactic latitude or local stellar density to smoothly
     4056  transition from double / multi-PSF to galaxy model fitting
     4057\end{verbatim}
     4058
    36754059The Pan-STARRS Image Processing Pipeline has used the \ippprog{psphot}
    36764060software to detect and characterize astronomical sources in images
  • trunk/doc/release.2015/ps1.analysis/response.txt

    r41324 r41333  
    1616data sets.
    1717
    18 **** TBD : all of these items until Abstract
     18** added to the end of Section 3 Psphot Design Goals
    1919
    2020For many of the sections, the reader would benefit by starting with
     
    7777state the same for galaxy astrometry, fluxes and colors.
    7878
    79 **** TBD
     79** for each section, we have added a summary of where the values may
     80   be found, and added an overall summary of this issue to the end of
     81   the Basic Analysis section.
    8082
    8183A detail of the code is presented (variable names, etc) that imply
     
    9698that the photometric goals are achieved
    9799
    98 **** TBD see note section Forced PSF Phot
     100**** TBD : discuss relative quality of chip, forced, stack photometry
    99101
    100102- Sec 7, where the image differencing detections and photometry is used
     
    124126in one place would be a useful service.
    125127
    126 **** TBD
     128**** TBD : summarize the lessons learned
    127129
    128130Abstract:
     
    219221applying to bright sources, and another addessing all (==faint) sources.
    220222
    221 **** TBD
     223** We have expanded the discussion in 4.7 (Faint Source Analysis) to
     224   explain which of the steps in the bright source pass are repeated
     225   and which are skipped.  We refer back to the specific sections and
     226   explain where there are detailed differences in the bright and
     227   faint versions of the same step.
    222228
    223229Sec 4.1:
     
    227233of Sec 4.8) that the PSF model for an image is actually selected.
    228234
    229 **** TBD
    230235** The aperture correction is measured at the end of the bright-star
    231 ** pass, at which point the PSF model is chosen and fixed.  A final
    232 ** aperture correction is measured at the end of the full analysis,
    233 ** but only for the PSF model class selected earlier.
     236   pass, at which point the PSF model is chosen and fixed for the rest
     237   of the analysis.  A final aperture correction is measured at the
     238   end of the full analysis, but only for the PSF model class selected
     239   earlier.  But for PV3, the PDF model was fixed to the PS1_V1
     240   version, so this selection was not performed. We have added text to
     241   4.5.3 to explain how the aperture correction is used to select a
     242   PSF model, and that only the single model form was used for PV3.
     243   We also note in section 4.8 that we re-measure the aperture
     244   correction at the end with the other sources subtracted.
    234245
    235246Sec 4.3:
     
    264275measure is used.
    265276
    266 **** TBD: model?
     277** added a table showing sky recovery vs stellar density from
     278   simulations using the standard psphot analysis vs other methods,
     279   added discussion of the results.
    267280
    268281Sec 4.4.1:
     
    319332
    320333**** TBD: SHOW SOME EXAMPLES of PSF variations
     334     choose 3 exposures: 1 with good IQ, one with bad IQ, but round, one with bad IQ but not round,
     335     plot some IQ stats (Mxx - Myy) / (Mxx + Myy)
    321336
    322337- Please state whether the PSF model is this set of formulae
     
    344359sources by GAIA.
    345360
    346 ***** TBD
     361** This is an interesting suggestion, but out of the scope of this
     362   effort.  we have added this to the lessons-learned discussion
    347363
    348364Sec 4.5.3:
     
    419435and presented as a future development effort.
    420436
    421 **** TBD
     437**** TBD : wording of full PSF model section 4.6.6
    422438
    423439- Remind the reader that the 4 independent parameters includes a local sky
    424440value.
    425441
    426 **** TBD: double-check if the sky is allowed to float in this step
     442** in fact, we do not allow the sky to float; fixed the wording to
     443   specify the *3* independent parameters and to explain why we do not
     444   allow the sky to float.
    427445
    428446- "remaining flux should be below 1\sigma significance" ->
     
    437455range.
    438456
    439 **** TBD: was the turned on for PV3?
     457**** TBD: double-star mode: was this turned on for PV3? ppSim to show recovery
    440458
    441459Sec 4.7:
     
    444462could be included here.
    445463
    446 **** TBD: include detection limit description
     464** This was a definitely gap.  We have added a subsection (4.9)
     465   discussing the completeness and contamination, using both simulated
     466   and real data to illustrate these effects
    447467
    448468Sec 4.8:
     
    501521atmospheric transparency variations.
    502522
    503 **** TBD
     523** we have added discussion and some plots showing the repeatability
     524   of the brightest stars for PSF and aperture magnitudes.  We also
     525   discuss the long-term site characteristics and the impact of the
     526   atmosphere on the photometric calibration, relating back to the
     527   ubercal work of Schlaley et al 2012.
    504528
    505529Sec 5:
     
    534558compare well to those in the PS1 catalog?
    535559
    536 **** TBD: compare to SDSS
     560**** TBD: compare Petrosian mags to SDSS for some example
    537561
    538562Sec 5.3:
     
    561585error of this approximation should be stated.
    562586
    563 **** TBD: model
     587**** TBD: model central pixel errors for Sersic models
    564588
    565589Sec 5.4:
     
    626650discussion would be Zackay & Ofek 2016.
    627651
    628 **** TBD
     652** added references and updated the text
    629653
    630654- The terms "skycell" and "warp image" are first used here without
     
    664688and if not, which code would it be most similar to?
    665689
    666 **** TBD
     690**** TBD : check on GREAT challenge to compare code
    667691
    668692- Define "KSB" and "HFK" references in-line
     
    789813- Some additional references should be included; some suggestions above.
    790814
    791 **** TBD
     815** added additional references
    792816
    793817** Also, we have added Danny Farrow (UK Durham & MPIA) to the authors
Note: See TracChangeset for help on using the changeset viewer.