IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40077 for trunk


Ignore:
Timestamp:
Jul 5, 2017, 5:19:05 PM (9 years ago)
Author:
eugene
Message:

move some chunk from datasystem to analysis

File:
1 edited

Legend:

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

    r40069 r40077  
    18781878\section{Forced Photometry Modes}
    18791879
     1880\note{too much detail in this section; balance relative to psphot}
     1881
     1882Traditionally, projects which use multiple exposures to increase the
     1883depth and sensitivity of the observations have generated something
     1884equivalent to the \ippstage{stack} images produced by the IPP analysis
     1885(c.f, CFHT Legacy survey, COSMOS, etc).  In theory, the photometry of
     1886the \ippstage{stack} images produces the ``best'' photometry catalog,
     1887with best sensitivity and the best data quality at all magnitudes.  In
     1888practice, these images have some significant limitations due to the
     1889difficulty of modelling the PSF variations.  This difficulty is
     1890particularly severe for the Pan-STARRS $3\pi$ survey stacks due to the
     1891combination of the substantial mask fraction of the individual input
     1892exposures, the large instrinsic image quality variations within a
     1893single exposure, and the wide range of image quality conditions under
     1894which data were obtained and used to generate the $3\pi$ PV3 stacks.
     1895
     1896For any specific stack, the point spread function at a particular
     1897location is the result of the combination of the point spread
     1898functions for those individual exposures which went into the stack at
     1899that point.  Because of the high mask fraction, the exposures which
     1900contributed to pixels at one location may be somewhat different just a
     1901few tens of pixels away.  In the end, the \ippstage{stack} images have
     1902a effective point spread function which is not just variable, but
     1903changing significantly on small scales in a highly textured fashion.
     1904
     1905Any measurement which relies on a good knowledge of the PSF at the
     1906location of an object either needs to determine the PSF variations
     1907present in the \ippstage{stack} image, or the measurement will be
     1908somewhat degraded.  The highly textured PSF variations make this a
     1909very challenging problem: not only would such a PSF model require an
     1910unusually fine-grained PSF model, there would likely not be enough PSF
     1911stars in a given \ippstage{stack} image to determine the model at the
     1912resolution required.  The IPP photometry analysis code uses a PSF
     1913model with 2D variations using a grid of at most $6\times 6$ samples
     1914per skycell, a number reasonably well-matched to the density of stars
     1915at most moderate Galactic latitudes.  This scale is far too large to
     1916track the fine-grained changes apparent in the stack images.
     1917
     1918Thus PSF photometry as well as convolved galaxy models in the stack
     1919are degraded by the PSF variations.  Aperture-like measurements are in
     1920general not as affected by the PSF variations, as long as the aperture
     1921in question is large compared to the FWHM of the PSF.
     1922
     1923%% The IPP team initially explored the option of convolving each input
     1924%% warp to a single target PSF chosen to match the worst of the input
     1925%% images for a given stack. 
     1926
     1927The PV3 $3\pi$ analysis solves this problem by using the sources
     1928detected in the stack images and performing forced photometry on the
     1929individual warp images used to generate the stack.  This
     1930\ippstage{fullforce} analysis is performed on all warps for a single
     1931skycell and filter as a single unit, as this matches the arrangement
     1932of the input source catalog from the \ippstage{skycal} stage.  When
     1933processing is queued for this stage, an entry is added to the
     1934\ippdbtable{fullForceRun} primary database table linking to the
     1935specific \ippdbcolumn{skycal\_id} entry that will be used as the
     1936catalog for the photometry.  The \ippdbcolumn{warp\_id} values for the
     1937input \ippstage{warp} stage images that contributed to the
     1938\ippstage{stack} associated with that \ippdbcolumn{skycal\_id} are
     1939then added to the \ippdbtable{fullForceInput} table, linked to the
     1940primary table by the \ippdbcolumn{ff\_id} identifier.  The individual
     1941jobs for each warp are then run, which passes the \ippstage{warp}
     1942stage image products along with the \ippstage{skycal} catalog to the
     1943\ippprog{psphotFullForce} program.
     1944
     1945In this program, the positions of sources are loaded from the input
     1946catalog.  PSF stars are pre-identified \note{how?} and a PSF model
     1947generated for each \ippstage{warp} image based on those stars, using
     1948the same stars for all warps to the extent possible (PSF stars which
     1949are excessively masked on a particular image are not used to model the
     1950PSF).  \note{this doesn't seem correct, as each warp is run
     1951  independently. EAM: not true!}  The PSF model is fitted to all of the known source
     1952positions in the warp images.  Aperture magnitudes, Kron magnitudes,
     1953and moments are also measured at this stage for each warp.  Note that
     1954the flux measurement for a faint, but significant, source from the
     1955stack image may be at a low significance (less than the $5\sigma$
     1956criterion used when the photometry is not run in this forced mode) in
     1957any individual warp image; the flux may even be negative for specific
     1958warps.  When combined together, these low-significance measurements
     1959will result in a signficant measurement as the signal-to-noise
     1960increases by the square root of the number of measurements.
     1961
     1962Upon completion of the forced photometry (for point sources as well as
     1963galaxies, discussed below), an entry is added to the
     1964\ippdbtable{fullForceResult} table with the processing statistics for
     1965that combination of \ippdbcolumn{ff\_id} and \ippdbcolumn{warp\_id}.
     1966Once all of the entries in the \ippdbtable{fullForceInput} table have
     1967finished, a summary operation is run to generate an appropriate
     1968average value for each measurement, by combining the measurements from
     1969each of the inputs.  The output catalogs listed in the
     1970\ippdbtable{fullForceResult} table are passed to the
     1971\ippprog{psphotFullForceSummary} to do this averaging.  \note{describe
     1972  what is done} When this completes, an entry is added to the
     1973\ippdbtable{fullForceSummary}, and the \ippdbtable{fullForceRun} entry
     1974is marked as completed.
     1975
    18801976\subsection{Forced Photometry : PSFs}
    18811977
    18821978\subsection{Forced Photometry : galaxies}
     1979
     1980The convolved galaxy models are also re-measured on the
     1981\ippstage{warp} images by the \ippstage{fullforce} stage analysis.  In
     1982this analysis, the galaxy models determined by the
     1983\ippstage{staticsky} photometry analysis are used to seed the analysis
     1984in the individual \ippstage{warp} images.  The purpose of this
     1985analysis is the same as the \ippstage{fullforce} PSF photometry: the
     1986PSF of the \ippstage{stack} image is poorly determined due to the
     1987masking and PSF variations in the inputs.  Without a good PSF model,
     1988the PSF-convolved galaxy models are of limited accuracy.
     1989
     1990In the \ippstage{fullforce} galaxy model analysis, we assume that the
     1991galaxy position and position angle, along with the Sersic index if
     1992appropriate, have been sufficiently well determined in the
     1993\ippstage{staticsky} analysis.  In this case, the goal is to determine
     1994the best values for the major and minor axis of the elliptical contour
     1995and at the same time the best normalization corresponding to the best
     1996elliptical shape, and thus the best galaxy magnitude value.
     1997
     1998For each \ippstage{warp} image, the \ippstage{staticsky} value for the
     1999major and minor axis are used as the center of a $7\times{} 7$ grid
     2000search of the major and minor axis parameter values.  The grid spacing
     2001is defined as a function of the signal-to-noise of the galaxy in the
     2002stack image so that bright galaxies are measured with a much finer
     2003grid spacing that faint galaxies \note{need to quantify this}.  For
     2004each grid point, the major and minor axis values at that point are
     2005determined for the model.  The model is then generated and convolved
     2006with the PSF model for the \ippstage{warp} image at that point.  The
     2007resulting model is then compared to the \ippstage{warp} pixel data
     2008values and the best fit normalization value is defined.  The
     2009normalization and the $\chi^2$ value for each grid point is recorded.
     2010
     2011For a given galaxy, the result is a collection of $\chi^2$ values for
     2012each of the grid points spanning all \ippstage{warp} images.  A single
     2013$\chi^2$ grid can then be made by combining each grid point across the
     2014inputs.  The combined $\chi^2$ for a single grid point is simply the
     2015sum of all $\chi^2$ values at that point.  If, for a single \ippstage{warp}
     2016image, the galaxy model is excessively masked, then that image will be
     2017dropped for all grid points for that galaxy.  The reduced $\chi^2$
     2018values can be determined by tracking the total number of pixels
     2019used across all inputs to generate the combined $\chi^2$ values.  From
     2020the combined grid of $\chi^2$ values, the point in the grid with the
     2021minimum $\chi^2$ is found.  Quadratic interpolation is used to
     2022determine the major, minor axis values for the interpolated minimum
     2023$\chi^2$ value.  The errors on these two parameters is then found by
     2024determining the contour at which the \note{reduced?} $\chi^2$
     2025increases by 1.
     2026
     2027Thus the \ippstage{fullforce} galaxy analysis uses the PSF information
     2028from each \ippstage{warp} to determine a best set of convovled galaxy
     2029models for each object in the \ippstage{skycal} catalog.
     2030\note{discuss the subset of galaxy models and objects}.
    18832031
    18842032\section{Difference Image Photometry}
     
    20132161* put engineering docs (psLib, psModules) on public website
    20142162
     2163
Note: See TracChangeset for help on using the changeset viewer.