IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39822


Ignore:
Timestamp:
Nov 22, 2016, 4:23:59 PM (10 years ago)
Author:
eugene
Message:

updates to stages.tex

Location:
trunk/doc/release.2015/ps1.analysis
Files:
3 edited

Legend:

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

    r37890 r39822  
    55        @echo "  targets:  all analysis"
    66
    7 all: analysis.pdf
     7all: analysis.pdf stages.pdf
    88
    9 ANALYSIS = analysis.tex
     9ANALYSIS = analysis.tex
     10STAGES = stages.tex
    1011
    1112#       pics/Metadata.ps
     
    1314
    1415analysis.pdf: $(ANALYSIS)
     16stages.pdf: $(STAGES)
    1517
    1618analysis.ps: $(ANALYSIS)
     19stages.ps: $(STAGES)
    1720
    1821include ../Makefile.Common
  • trunk/doc/release.2015/ps1.analysis/analysis.tex

    r39820 r39822  
    1 \documentclass[iop,floatfix]{emulateapj}
     1% \documentclass[iop,floatfix]{emulateapj}
    22% \documentclass[iop,floatfix,onecolumn]{emulateapj}
    33% \pdfoutput=1
    44
    55% see latex.readme.txt for notes on using the PS1 template
    6 %\documentclass[12pt,preprint]{aastex}
     6\documentclass[12pt,preprint]{aastex}
    77%\documentclass[manuscript]{aastex}
    88%\documentclass[preprint2]{aastex}
  • trunk/doc/release.2015/ps1.analysis/stages.tex

    r39821 r39822  
    299299monitoring system to visualize the data processing.
    300300
     301\section{Warp}
     302
     303Once astrometric and photometric calibrations have been performed,
     304images are geometrically transformed into a set of common pixel-grid
     305images with simple projections from the sky.  These images, called
     306skycells, can then be used in subsequent stacking and difference image
     307analysis without concern about the astrometric transformation of an
     308exposure.  This processing is called `warping'; the warp analysis
     309stage is run on all exposures before they are processed further.  For
     310details on the warping algorithm, see \note{Waters et al paper}.
     311
     312The output products from the Warp stage consist of the skycell images
     313containing the signal, the variance, and the mask information.  These
     314images have been shipped to STScI and \note{are available / will be
     315  available} from the image extraction tools \note{in DR2}.
     316
     317\section{Stack}
     318
     319The skycell images generated by the Warp process are added together to
     320make deeper, higher signal-to-noise images in the Stack stage.  The
     321stacks also fill in coverage gaps between different exposures,
     322resulting in an image of the sky with more uniform coverage than a
     323single exposure.  See~\note{Waters paper} for details on the stack
     324combination algorithm.
     325
     326In the IPP processing, stacks may be made with various options for the
     327input images.  During nightly science processing, the 8 exposures per
     328filter for each Medium Deep field are combined into a set of stacks
     329for that field.  These so-called `nightly stacks' are used by the
     330transient survey projects to detect the faint supernovae, among other
     331transient events.  For the PV3 $3\pi$ analysis, all filter images from
     332the $3\pi$ survey observation were stacked together to generate a
     333single set of images with $\sim 10 - 20\times$ the exposure of the
     334individual survey exposures.  The signal, variance, and mask images
     335resulting from these deep stacks are part of the DR1 release and are
     336available from the image extraction tools.
     337
     338For the PV3 processing of the Medium Deep fields, stacks have been
     339generated for the nightly groups and for the full depth using all
     340exposures (deep stacks).  In addition, a 'best seeing' set of stack
     341have been produced \note{using image quality cuts to be described}.
     342We have also generated out-of-season stacks for the Medium Deep
     343fields, in which all image not from a particular observing season for
     344a field are combined into a stack.  These later stacks are useful as
     345deep templates when studying long-term transient events in the Medium
     346Deep fields as they are not (or less) contaminated by the flux of the
     347transients from a given season.
     348
     349\section{Stack Photometry}
     350
     351The stack images are generated in the Stack stage of the IPP, but the
     352source detection and extraction analysis of those images is deferred
     353until a separate stage, the Stack Photometry stage.  This separation
     354is maintained because the stack photometry analysis is performed on
     355all 5 filter stack images at the same time.  By deferring the
     356analysis, the processing system may decouple the generation of the
     357pixels from the source detection.  This makes the sequencing of
     358analysis somewhat easier and less subject to blocks due to a failure
     359in the stacking analysis.
     360
     361The stack photometry algorithms are described in detail in
     362\note{Magnier et al}.  In short, sources are detected in all 5 filter
     363images down to the $5\sigma$ significance.  The collection of detected
     364sources is merged into a single master list.  If a source is detected
     365in at least two bands, or only in $y$-band, then a PSF model is fitted
     366to the pixels of the other bands in which the source was not detected.
     367This forced photometry results in lower significance measurements of
     368the flux at the positions of objects which are thought to be real
     369sources, by virtue of triggering a detection in at least two bands.
     370The relaxed limit for $y$-band is included to allow for searches of
     371$y$-dropout objects: it is known that faint, high-redshift quasars may
     372be detected in $y$-band only.  The casual user of the PV3 dataset
     373should be wary of sources detected only in $y$-band as these are
     374likely to have a higher false-positive rate than the other stack
     375sources.
     376
     377The stack photometry output files consist of a set of FITS tables in a
     378single file, with one file for each filter.  Within one of these
     379files, the tables include: the measurements of sources based on the
     380PSF model; aperture like parameters such as the Petrosian flux and
     381radius; the convolved Galaxy model fits; the radial aperture
     382measurements.  \note{is this list complete?}
     383
     384The stack photometry output catalogs are re-calibrated for both
     385photometry and astrometry in a process very similar to the Camera
     386calibration stage.  In the case of the stack calibration, however,
     387each skycell is processed independently.  The same reference catalog
     388is used for the Camera and Stack calibration stages.
     389
     390\section{Forced Warp Photometry}
     391
     392Traditionally, projects which use multiple exposures to increase the
     393depth and sensitivity of the observations have generated something
     394equivalent to the stack images produced by the IPP analysis.  In
     395theory, the photometry of the stack images produces the `best'
     396photometry catalog, with best sensitivity and the best data quality at
     397all magnitudes (c.f, CFHT Legacy survey, COSMOS, etc).  In practice,
     398the stack images have some significant limitations due to the
     399difficulty of modelling the PSF variations.  This difficulty is
     400particularly severe for the Pan-STARRS $3\pi$ survey stacks due to the
     401combination of the substantial mask fraction of the individual
     402exposures, the large instrinsic image quality variations within a
     403single exposure, and the wide range of image quality conditions under
     404which data were obtained and used to generate the $3\pi$ PV3 stacks.
     405
     406For any specific stack, the point spread function at a particular
     407location is the result of the combination of the point spread
     408functions for those individual exposures which went into the stack at
     409that point.  Because of the high mask fraction, the exposures which
     410contributed to pixels at one location may be somewhat different just a
     411few tens of pixels away.  Because of the intrinsic variations in the
     412PSF across an exposure and because of the variations from exposure to
     413exposure, the distribution of point spread functions of the images
     414used at one position may be quite different from those at a nearby
     415location.  In the end, the stack images have a effective point spread
     416function which is not just variable, but changing significantly on
     417small scales in a highly textured fashion. 
     418
     419Any measurement which relies on a good knowledge of the PSF at the
     420location of an object either needs to determine the PSF variations
     421present in the stack, or the measurement will be somewhat degraded.
     422The highly textured PSF variations make this a very challenging
     423problem: not would such a PSF model require an unusually fine-grained
     424PSF model, there would likely not be enough PSF stars in an given
     425stack to determine the model at the resolution required.  The IPP
     426photometry analysis code uses a PSF model with 2D variations using a
     427grid of at most $6\times 6$ samples per skycell, a number reasonably
     428well-matched to the density of stars at most moderate Galactic
     429latitudes.  This scale is far too large to track the fine-grained
     430changes apparent in the stack images.
     431
     432Thus PSF photometry as well as convolved Galaxy models in the stack
     433are degraded by the PSF variations.  Aperture-like measurements are in
     434general not as affected by the PSF variations, as long as the aperture
     435in question is large compared to the FWHM of the PSF.
     436
     437%% The IPP team initially explored the option of convolving each input
     438%% warp to a single target PSF chosen to match the worst of the input
     439%% images for a given stack. 
     440
     441The PV3 $3\pi$ analysis solves this problem by using the sources
     442detected in the Stack images and performing forced photometry on the
     443individual warp images used to generate the stack.  This analysis is
     444performed on all warps for a single filter as a single job, though
     445this is more of a bookkeepping aid as it is not necessary for the
     446analysis of the different warps to know about the results of the other
     447warps.
     448
     449In the forced warp photometry, the positions of sources are loaded
     450from the stack outputs.  PSF stars are pre-identified and a PSF model
     451generated for each warp based on those stars, using the same stars for
     452all warps to the extent possible (PSF stars which are excessively
     453masked on a particular image are not used to model the PSF).  The PSF
     454model is fitted to all of the known source positions in the warp
     455images.  Aperture magnitudes, Kron magnitudes, and moments are also
     456measured at this stage for each warp.  Note that the flux measurement
     457for a faint, but significant, source from the stack image may be at a
     458low significance ($< 5\sigma$) in any individual warp image; the flux
     459may even be negative for specific warps.  When combined together,
     460these low-significance measurements will result in a signficant
     461measurement as the signal-to-noise increases by $\sqrt{N}$. 
     462
     463\section{Forced Galaxy Models}
     464
     465The convolved galaxy models are also re-measured on the warp images by
     466the forced photometry analysis stage.  In this analysis, the galaxy
     467models determined by the stack photometry analysis are used to seed
     468the analysis in the individual warps.  The purpose of this analysis is
     469the same as the forced PSF photometry: the PSF of the stack is poorly
     470determined due to the masking and PSF variations in the inputs.
     471Without a good PSF model, the PSF-convolved galaxy models are of
     472limited accuracy. 
     473
     474In the forced galaxy model analysis, we assume that the galaxy
     475position and position angle, along with the Sersic index if
     476appropriate, have been sufficiently well determined in the stack
     477analysis.  In this case, the goal is to determine the best values for
     478the major and minor axis of the elliptical contour and at the same
     479time the best normalization corresponding to the best elliptical shape
     480(and thus the best galaxy magnitude value).
     481
     482For each warp image, the Stack value for the major and minor axis are
     483used as the center of a $7\times 7$ grid search of the major and minor
     484axis parameter values.  The grid spacing is defined as a function of
     485the signal-to-noise of the galaxy in the stack image so that bright
     486galaxies are measured with a much finer grid spacing that faint
     487galaxies \note{need to quantify this}.  For each grid point, the major
     488and minor axis values at that point are determined for the model.  The
     489model is then generated and convolved with the PSF model for the warp
     490image at that point.  The resulting model is then compared to the warp
     491pixel data values and the best fit normalization value is defined.
     492The normalization and the $\chi^2$ value for each grid point is
     493recorded. 
     494
     495For a given galaxy, the result is a collection of $\chi^2$ values for
     496each of the grid points spanning all warp images.  A single $\chi^2$
     497grid can then be made from all warps by combining each grid point
     498across the warps.  The combined $\chi^2$ for a single grid point is
     499simply the sum of all $\chi^2$ values at that point.  If, for a single
     500warp image, the galaxy model is excessively masked, then that image
     501will be dropped for all grid points for that galaxy.  The reduced
     502$\chi^2$ values can be determined by tracking the total number of warp
     503pixels used across all warps to generate the combined $\chi^2$ values.
     504From the combined grid of $\chi^2$ values, the point in the grid with
     505the minimum $\chi^2$ is found.  Quadratic interpolation is used to
     506determine the major, minor axis values for the interpolated minimum
     507$\chi^2$ value.  The errors on these two parameters is then found by
     508determining the contour at which the \note{reduced?} $\chi^2$
     509increases by 1. 
     510
     511Thus the Forced Galaxy Model analysis uses the PSF information from
     512each warp to determine a best set of convovled galaxy models for each
     513object in the stack images.  \note{discuss the subset of galaxy models
     514  and objects}.
     515
    301516\begin{verbatim}
    302517Outline:
    303 Warp
    304 Stack
    305 Stack Photometry
    306 Forced Warp Photometry
    307 Forced Mean
    308518DVO Ingest
    309519Calibration
Note: See TracChangeset for help on using the changeset viewer.