IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39814


Ignore:
Timestamp:
Nov 17, 2016, 9:39:32 AM (10 years ago)
Author:
eugene
Message:

updates to analysis

File:
1 edited

Legend:

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

    r38591 r39814  
    1 \documentclass[iop,floatfix]{emulateapj}
     1\documentclass[iop,floatfix,onecolumn]{emulateapj}
    22% \pdfoutput=1
    33
     
    9393\keywords{Surveys:\PSONE }
    9494
    95 \section{OUTLINE}
    96 \begin{verbatim}
    97 Intro
    98  Pan-STARRS background
    99  Scope: Source Detection \& Characterization, Galaxy modeling
    100  Requirements / Goals
    101  Comparable programs
    102  PSPhot
    103 \end{verbatim}
    104 
    10595\section{INTRODUCTION}\label{sec:intro}
    10696
     
    441431\subsubsection{Determination of the Peak Coordinates and Errors}
    442432
    443 \note{this section is wrong: it is a poor estimator of the source
    444   position errors.  we gave up a reverted to using the FWHM / (S/N)}
    445 
    446433We use the 9 pixels which include the source peak to fit for the
    447434position and position errors.  We model the peak of the sources as a
     
    478465\end{verbatim}
    479466
    480 which can be used to determine the errors on the coefficients:
    481 
    482 \begin{eqnarray}
    483 \sigma^2_{00} & = & \sigma^2 (5/9) \\
    484 \sigma^2_{10} & = & \sigma^2 (1/6) \\
    485 \sigma^2_{01} & = & \sigma^2 (1/6) \\
    486 \sigma^2_{11} & = & \sigma^2 (1/6) \\
    487 \sigma^2_{20} & = & \sigma^2 (1/2) \\
    488 \sigma^2_{02} & = & \sigma^2 (1/2) \\
    489 \end{eqnarray}
    490 
    491467The location of the peak is determined from the minimum of the
    492468bi-quadratic function above, and is given by:
     
    498474\end{eqnarray}
    499475
    500 Applying error propagation to the above, we find:
    501 
    502 \begin{eqnarray}
    503 \sigma_{Det}^2  & = & \sigma_{11}^2 (4 C_{11}^2) + \sigma_{20}^2 (16 C_{02}^2) + \sigma_{02}^2 (16 C_{20}^2) \\
    504 \sigma_{xn}^2   & = & \sigma_{11}^2 C_{01}^2 + \sigma_{01}^2 C_{11}^2 + \sigma_{02}^2 (4 C_{10}^2) + \sigma_{10}^2 (4 C_{02}^2) \\
    505 \sigma_{yn}^2   & = & \sigma_{11}^2 C_{10}^2 + \sigma_{10}^2 C_{11}^2 + \sigma_{20}^2 (4 C_{01}^2) + \sigma_{01}^2 (4 C_{20}^2) \\
    506 \sigma_{x}^2    & = & x^2 (\sigma_{xn}^2 / xn^2 + \sigma_{Det}^2 / Det^2) \\
    507 \sigma_{y}^2    & = & y^2 (\sigma_{yn}^2 / yn^2 + \sigma_{Det}^2 / Det^2) \\
    508 \end{eqnarray}
     476\note{error on the peak position}
    509477
    510478\subsection{PSF Determination}
     
    652620All candidate PSF objects are then fitted with the selected object
    653621model, allowing all of the parameters (PSF and independent) to vary in
    654 the fit.  PSPhot uses the Levenberg-Marqardt process for the
    655 non-linear fitting.  Non-linear fitting can be very computationally
    656 intensive, particularly for if the starting parameters are far from
    657 the minimization values.  PSPhot uses the first and second moments to
    658 make a good guess for the centroid and shape parameters for the PSF
    659 models.  \note{still true? In order to minimize the impact of close
    660   neighbors, the variance values used in the fit are enhanced by a
    661   fraction of the deviation of the particular pixel value from the
    662   model guess.}  Any objects which fail to converge in the fit are
    663 flagged as invalid.
     622the fit.  PSPhot uses the Levenberg-Marqardt method \note{REF, link to
     623  psLibADD} for the non-linear fitting.  Non-linear fitting can be
     624very computationally intensive, particularly for if the starting
     625parameters are far from the minimization values.  PSPhot uses the
     626first and second moments to make a good guess for the centroid and
     627shape parameters for the PSF models.  \note{still true? In order to
     628  minimize the impact of close neighbors, the variance values used in
     629  the fit are enhanced by a fraction of the deviation of the
     630  particular pixel value from the model guess.}  Any objects which
     631fail to converge in the fit are flagged as invalid.
    664632
    665633\note{does the variance enhancement introduce too much bias?}
     
    698666correction is judged to be the best model.
    699667
    700 \subsubsection{Basic Deblending}
    701 
    702 The collection of identified peaks is examined to find peaks which are
    703 'blended', that is, they are close enough together to make the
    704 analysis of one of the sources difficult if performed in isolation.
    705 Saturated stars also result in additional peaks which are likely to be
    706 invalid; it is useful to restrict a saturated star to a single primary
    707 position with associated neighboring peaks.
    708 
    709 The deblending process first searches for any peaks which are within
    710 the image cell of another peak.  All such groups are examined,
    711 starting with the brightest source.  An isophot is found about the
    712 primary peak which is at least \code{DEBLEND\_SKY\_NSIGMA} times the sky
    713 sigma above the local background and which is otherwise
    714 \code{DEBLEND\_PEAK\_FRACTION} of the primary peak central pixel flux.
    715 Any secondary sources which are contained within this isophot are
    716 considered to be blended peaks associated with the primary peak. 
     668\subsection{Very Bright Stars}
     669\note{flesh out}
     670
     671The PSF modeling code fails to fit the wings of highly saturated stars
     672if the core of the star is too contaminated by saturated pixels. For
     673stars with estimated instrumental magnitudes brighter than XXX, we fit
     674and subtract a radial profile modeled with a spline (?).
     675
     676\subsection{PSF vs CR vs Extended}
    717677
    718678\subsection{Bright Source Analysis}
     
    10711031tested.
    10721032
    1073 \subsubsection{Types of Object / PSF models currently available}
     1033\subsection{Radial Profiles}
     1034
     1035Galaxies with regular profiles, such as elliptical galaxies and
     1036regular spiral galaxies, may be described as primarily a radial
     1037surface brightness profile, with additional structure acting as a
     1038perturbation on that profile.  For many galaxies, the azimuthal shape
     1039at a given isophotal level may be described as an elliptical contour.
     1040To first order, a galaxy may be well decribed with a single elliptical
     1041contour and radial profile. 
     1042
     1043In order to facilitate the Petrosian photometry analysis below, PSPhot
     1044generates a radial profile for each suspected galaxy.  This analysis
     1045starts by generating a radial profile in 24 azimuthal segments.  Near
     1046the center of the galaxy, the profile is defined for radial
     1047coordinates in steps of 1 pixel, with the closest pixel values
     1048interpolated to that radial position.  Further from the center,
     1049profile is defined using the median of the pixels landing in an
     1050annular segment of size $\delta R = r \sin \theta$, rounded up to the
     1051nearest integer pixel value.  The median of all pixels within a
     1052rectangular approximation to the radial wedge is used.
     1053
     1054The resulting 24 radial profiles are subject to contamination from
     1055neighboring sources or to NAN values from masked pixels.  To clean the
     1056profiles, pairs of radial profiles from opposite sides of the source
     1057are compared.  Any masked values are replaced by the corresponding
     1058value in the other profile.  The minimum of both profiles is the kept
     1059for both profiles.  The result of this analysis is a set of profiles
     1060of the form $f_i(r_i)$.  In this case, $f_i$ is effectively the
     1061surface brightness for each radius in instrumental counts per pixel.
     1062
     1063The surface brightness profiles are then used to define the radial
     1064contour at a specific isophotal level.  This contour will be used to
     1065rescale the radial profiles into a single set of profiles normalized
     1066by the elliptical contour.  This contour is defined by determining the
     1067median radius for profile bins with surface brightness in the range
     1068$F_{\rm min} + 0.1 F_{\rm range}$ to $F_{\rm min} + 0.5 F_{\rm
     1069  range}$.  The result of this analysis is a value for the radius as a
     1070function of the angle for a well-defined surface brightness regime.
     1071We then determine the elliptical shape parameters for this elliptical
     1072contour: $R_{\rm major}, R_{\rm minor}, \theta$.  This ellipse is then
     1073used to redefine a single radial profile normalized by the elliptical
     1074contour:
     1075\[
     1076\rho = \sqrt{\frac{x^2}{S^2_{xx}} + \frac{y^2}{S^2_{yy}} + x y S_{xy} \\
     1077\]
     1078
     1079The surface brightness values are sampled at a number of radial
     1080annuli, with the radii defined in the configuration ({\tt
     1081  RADIAL.ANNULAR.BINS.LOWER \& RADIAL.ANNULAR.BINS.UPPER}).  For each
     1082source, the resulting surface brightness profile is saved in the
     1083output cmf-file as an N-element value in the FITS table ({\tt
     1084  PROF\_SB}).  The flux at each radial position and the fill-factor
     1085(fraction of pixels used to the total possible) as also saved as
     1086equal-length vectors in the FITS table ({\tt PROF\_FLUX and
     1087  PROF\_FILL}).  The values of the radial bins are saved in the cmf
     1088header ({\tt RMIN\_NN, RMAX\_NN}).
     1089
     1090\note{these profiles are not saved in PSPS}
     1091
     1092\subsection{Petrosian Radii and Magnitudes}
     1093
     1094Petrosian (REF) defined an adaptive aperture based on a ratio of
     1095surface brightnesses.  The motivation is to define an aperture which
     1096can be determined for galaxies without significant biases as a
     1097function of distance.  Since surface brightness in a resolved object
     1098is conserved, using a ratio of surface brightness to define a spatial
     1099scale results in a spatial scale which is constant regardless of
     1100galaxy distance. 
     1101
     1102In the classic definition, a reference radius, R90
     1103is specified as the radius at which the flux
     1104
     1105To measure the Petrosian radius and flux, we start by defining a
     1106series of radial apertures with power-law spacing: $r_{i + 1} = 1.25
     1107r_i$.  We calculate the surface brightness for the annulus from $r_i -
     1108r_{i+1}$ by calculating the median of the values in the range $r_i /
     1109\sqrt{1.25}$ to $r_{i+1} \sqrt{1.25}$ and dividing the the effective
     1110area of the annulus corresponding to $r_i - r_{i+1}$. 
     1111
     1112For any annulus $i$ spanning the radii $r_{\rm min}$ to $r_{\rm max} =
     1113\Beta r_{\rm min}$, the
     1114Petrosian Ratio for that annulus is defined as the ratio of the
     1115surface brightness in the annulus to the average surface brigthness
     1116within $r_{\rm max}$.  The Petrosian Radius is defined to be $r_{\rm
     1117  max}$ for the annulus for which the Petrosian Ratio = 0.2, i.e., the
     1118point on the galaxy radial profile at which the surface brightness is
     111920\% of the average surface brightness at that point. 
     1120
     1121We determine the Petrosian Radius for the galaxy by quadratic
     1122interpolation between the last two of the fixed annuli with Petrosian
     1123Ratio $> 0.2$ and the first annulus with Petrosian Ratio $< 0.2$.  In
     1124general, the Petrosian Ratio for a galaxy with a regular morphology
     1125(spiral or elliptical) is falling monotonically, so this interpolation
     1126is unambiguous.  However, irregular galaxy morphologies, noise, and/or
     1127significant masking can cause the Petrosian Ratio to have rises as
     1128well as drops.  We track the Petrosian Ratio until the value is no
     1129longer significant ($\sigma_{\rm Ratio} < 2 {\rm Ratio}$).  If the
     1130Petrosian Ratio drops below 0.2 for more than one radius, we choose
     1131the largest such radius. 
     1132
     1133Once the Petrosian Radius has been determined, we can now measure the
     1134Petrosian Flux : this is defined to be the total flux within an
     1135aperture corresponding to 2 $\times$ the Petrosian Radius.  Using the
     1136Petrosian Flux, we can calculate two other interesting radii: $R_{50}$
     1137and $R_{90}$, the radii inside which 50\% and 90\% of the total
     1138Petrosian flux is contained. 
     1139
     1140\subsection{Kron Magnitudes}
     1141
     1142
     1143
     1144\subsection{Convolved Galaxy Model Fits}
     1145
     1146In the galaxy model fittting stage, sources which meet certain
     1147criteria are fitted with analytical models for galaxies.  The
     1148available models for the PV3 analysis were:
     1149\begin{itemize}
     1150\item Exponential profile : $f = I_0 e^{\frac{-r}{r_0}}$
     1151\item DeVaucouleur profile : $f = I_0 e^{\frac{-r^{1/4}}{r_0}}$
     1152\item Sersic : $f = I_0 e^{\frac{-r^{1/n}}{r_0}}$
     1153\end{itemize}
     1154
     1155In this stage, the galaxy model is convolved with our best guess for
     1156the PSF model at the location of the galaxy.  For the PV3 analysis,
     1157all sources detected in the 'bright source' analysis step (S/N > 20 ?)
     1158were fitted with all three galaxy models, unless (a) the morphological
     1159test identified the source as a likely cosmic ray (\ref{CR})
     1160or (b) the peak of the PSF profile was above the saturation limit
     1161\note{for the chip? cell?}.  Sources in the denser portions of the
     1162Galactic plane and bulge were not included in the analysis.  This
     1163restriction limited the total time spent on the galaxy modeling
     1164analysis at the expense of galaxy photometry in the plane (though Kron
     1165photometry is available for those objects).
     1166
     1167The Galactic Plane region was defined by $|b| > b_{\rm min}$ where
     1168$b_{\rm min} = b_0 + r_b e^{\frac{-l^2}{2 \sigma_b^2}}$.  For the PV3
     1169analysis, $b_0 = XX$, $r_b = XX$, $\sigma_b = XX$.
     1170
     1171The galaxy models are fitted using the same Levenberg-Marquart
     1172minimization code use for the other non-linear fitting stages.  In the
     1173convolved galaxy fit, the galaxy model image and the model derivative
     1174images are convolved with the psf at each iteration. WRITE out the
     1175chi-square and show how this is separated out as a set of images.  For
     1176the Exponential and DeVaucouleur fits, all parameters are fitted in
     1177the non-linear minimization stage.  For the Sersic model fits, there
     1178is too much degeneracy (yes?) between ???.  We determine the Sersic
     1179index using a grid search, using the non-linear minimization for the
     1180remaining parameters on each grid search step.  The index is fitted in
     1181the following values (XXXXX).
     1182
     1183With XXXM galaxies to It is important to make an initial guess for the model parameters
     1184which is reasonably close to the best fit value,
     1185
     1186\subsection{Convolved Radial Aperture Photometry}
     1187
     1188\subsection{Forced Photometry : PSFs}
     1189
     1190\subsection{Forced Photometry : galaxies}
     1191
     1192\subsection{Types of Object / PSF models currently available}
    10741193
    10751194\note{the discussion of the model types needs to be extended}
Note: See TracChangeset for help on using the changeset viewer.