IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 424


Ignore:
Timestamp:
Apr 14, 2004, 3:38:47 PM (22 years ago)
Author:
eugene
Message:

substantial changes to the analysis stages (Phase 2, Phase 4) and
astrometry/photometry reference creation stages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/design/specs.tex

    r418 r424  
    1 %%% $Id: specs.tex,v 1.4 2004-04-13 02:18:48 eugene Exp $
     1%%% $Id: specs.tex,v 1.5 2004-04-15 01:38:47 eugene Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    55\title{Pan-STARRS Image Processing Pipeline}
    66\subtitle{Software Requirements Specification}
    7 \author{Eugene Magnier, Paul A. Price}
    87\shorttitle{IPP SRS}
     8\author{Eugene Magnier, Paul A. Price, Josh Hoblitt}
    99\group{Pan-STARRS Algorithm Group}
    1010\project{Pan-STARRS Image Processing Pipeline}
    1111\organization{Institute for Astronomy}
    12 \version{01.DR}
     12\version{DR}
    1313\docnumber{PSDC-430-005}
    1414
    15 \setcounter{tocdepth}{4} % lowest level to be included in toc
     15% allow paragraphs to be listed in TOC for now
     16\setcounter{tocdepth}{4}
    1617
    1718\begin{document}
     
    1920
    2021% -- Revision History --
    21 % provide explicit values for the old versions
    22 % use '\theversion' for the current version (set above)
    2322\RevisionsStart
    2423% version     Date         Description
    25 01          & 2003.01.01 & First draft \\
    26 \hline
    27 \theversion & 2003.03.10 & Second draft \\
     24DR.01 & 2003.01.01 & First draft  \\ \hline
     25DR.02 & 2003.03.10 & Second draft \\ \hline
     26DR.03 & 2003.04.13 & Most paragraphs fleshed out \\ \hline
    2827\RevisionsEnd
    2928
     
    4241
    4342This document establishes the system requirements for the Pan-STARRS
    44 Image Processing Pipeline (IPP).
     43Image Processing Pipeline (IPP) as applied to Pan-STARRS 1 (PS-1), the
     44initial demonstration telescope to be constructed on Haleakala by Jan
     452006.
    4546
    4647\subsection{System Overview}
     48
     49\tbd{description of the Pan-STARRS System and PS-1.}
    4750
    4851\subsection{Document Overview}
     
    6467
    6568\DocumentsInternalSection
    66 PSCD-430-xxx  &   PS-1 Design Reference Mission \\ \hline
    67 PSCD-430-004  &   Pan-STARRS IPP C Code Conventions \\ \hline
    68 PSCD-430-006  &   Pan-STARRS IPP ADD \\ \hline
    69 PSCD-430-007  &   Pan-STARRS IPP PSLib SDR \\ \hline
     69PSDC-430-xxx  &   PS-1 Design Reference Mission \\ \hline
     70PSDC-430-004  &   Pan-STARRS IPP C Code Conventions \\ \hline
     71PSDC-430-006  &   Pan-STARRS IPP ADD \\ \hline
     72PSDC-430-007  &   Pan-STARRS IPP PSLib SDR \\ \hline
    7073\DocumentsExternalSection
    7174Posix Standard & Open Group Based Specifications Issue 6, IEEE Std 1003.1, 2003 \\
     
    7477%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    7578
    76 \section{Requirements} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     79\section{Requirements}
    7780
    7881\subsection{Required States and Modes}
    7982
    80 The IPP has NN states:  active mode, paused mode, interactive mode.
     83The IPP has 3 states: active, paused, and interactive.
    8184
    8285\begin{itemize}
    8386
    84 \item {\bf active mode} In active mode, the IPP shall accept images
     87\item {\bf active state} In active state, the IPP shall accept images
    8588  and metadata from OATS and automatically perform the complete set of
    8689  image processing tasks, including both calibration and science image
     
    8891  client science pipelines \tbd{and IPP monitoring team}.
    8992
    90 \item {\bf paused mode}  In paused mode, the IPP shall refuse data and
     93\item {\bf paused state}  In paused state, the IPP shall refuse data and
    9194  metadata from OATS and data requests from the client science
    9295  pipelines.
    9396
    94 \item {\bf interactive mode}  In interactive mode, the IPP shall
     97\item {\bf interactive state}  In interactive state, the IPP shall
    9598  accept data and metadata from OATS, but will not automatically
    9699  process the data.  The IPP shall respond to user commands to
    97100  initiate portions of the data analysis.
    98101\end{itemize}
     102
     103\tbd{what is a mode?}
    99104
    100105\subsection{System Capability Requirements}
     
    237242x86/Linux combination.
    238243
    239 
    240244\paragraph{Software Configuration}
    241245
    242 \tbd{Makefiles, directory structures, etc}
     246\tbd{Makefiles, directory structures, UPS, etc}
    243247
    244248\subsubsection{Architectural Components}
    245249
    246 The IPP is organised into several different software elements, listed
    247 as follows:
     250In order to achieve the required functionality, it is necessary to
     251divide the IPP into a number of clearly-defined software elements,
     252listed as follows:
    248253
    249254\begin{enumerate}
    250 \item Pixel Server
    251 \item Object Database
    252 \item Metadata Database
    253 \item Analysis Stages
    254 \item Controller
    255 \item Scheduler
     255
     256\item {\bf Pixel Server:} This component is a large data store for all
     257 images used by the IPP, including the raw images from the telescope,
     258 the master calibration images, the reference static-sky images, and
     259 any temporary image data products produced by the IPP.  The Pixel
     260 Server is required to meet all of the image storage needs identified
     261 in the top-level requirements above.  The Pixel Server must accept
     262 the incoming data and store it until it is no longer needed by other
     263 portions of the IPP.
     264
     265\item {\bf Photometry \& Astrometry Database (PnA):} This component is
     266  required to store and manipulate astronomical objects detected in
     267  various images, as identified above, including individual
     268  measurements of objects on the images, the summary information about
     269  those objects, and reference object data.
     270
     271\item {\bf Metadata Database:} This component is required to store the
     272  data which is not directly related to images or astronomical objects
     273  as needed to perform the analysis specified above.
     274
     275\item {\bf Analysis Stages:}  Specific programs are required to
     276  perform the processing steps listed above.  These can be divided
     277  into well-defined analysis stages, each of which operates on a
     278  particular unit of data, such as a single OTA image or a colletion
     279  of astronomical objets.
     280
     281\item {\bf Controller:} In order to perform the analysis stages
     282  required by the IPP, it is necessary to use distributed computing
     283  processes on a large number of computers.  The Controller is
     284  required to manage the collection of analysis stages performed on
     285  these machines.
     286
     287\item {\bf Scheduler:}  This component is a decision-making mechanism
     288  required to guide the operation of the IPP: to evaluate the
     289  currently available collection of data, to identify the necessary
     290  analysis, and to assign the analysis tasks to the Controller.
     291
    256292\end{enumerate}
    257293
    258294The relationship between these software elements is shown in
    259295Figure~\ref{overview}.  This figure also shows the interactions
    260 between the IPP and other Pan-STARRS systems.  The Pixel Server is a
    261 respository for all image pixel data, including the raw images from
    262 the telescope, the master calibration images, the reference static-sky
    263 images, and any temporary image data products produced by the IPP.
    264 The Object Database is a facility to store all of the information
    265 about astronomical objects, including individual measurements of
    266 objects on the images, the summary information about those objects,
    267 and reference object data.  The Metadata Database is a storage element
    268 for all data which is neither image pixel data or astronomical object
    269 data.  The analysis pipelines are all of the top-level analysis
    270 processes which are performed on images or collections of object data.
    271 The Controller is a system which manages the process of executing in
    272 parallel analysis pipelines on specific datasets on the cluster of
    273 computers.  The Scheduler is a system which evaluates the current
    274 state of data in the various repositories and makes decisions about
    275 which analysis processes should be executed at any given time. 
     296between the IPP and other Pan-STARRS systems. 
    276297
    277298\begin{figure}
     
    461482\tbd{queries}
    462483
    463 \paragraph{Configuration Database -- a subset of the metadata database?}
     484\subparagraph{Configuration Database -- a subset of the metadata database?}
    464485
    465486The IPP requires a Configuration Database to store and provide access to
     
    668689\paragraph{Overview}
    669690
    670 We now consider the collection of analysis tasks which are performed
    671 by the IPP.  Depending on the task, they may be performed on
    672 individual images, collections of images, or on derived data products.
    673 Because of the nature of the image data, many of the analysis tasks
    674 can be performed in parallel because, for example, the analysis of an
    675 OTA in one image does not depend on the results from another OTA.  We
    676 define the term 'analysis stage' to refer to the largest complete
    677 analysis task which may be performed on a single data item.  The
    678 analysis stages are divided into three categories, and further
    679 subdivided as follows:
     691We now consider the collection of analysis tasks which must be
     692performed by the IPP.  These tasks represent the core of the required
     693IPP functionality; the architectural components discussed above can be
     694viewed as primarily supporting infrastructure to enable the analysis
     695tasks to be executed on the appropriate data and to store the results.
     696
     697Depending on the task, the basic data unit may be individual images,
     698collections of images, or derived data products such as collection of
     699detections of astronomical objects.  Because of the granularity of
     700these data units, many of the analysis tasks can be performed in
     701parallel because, for example, the intial analysis of an OTA in one
     702image does not depend on the results from another OTA.  We define the
     703term 'analysis stage' to refer to the largest complete analysis task
     704which may be performed on a single data item.  The analysis stages are
     705divided into three categories, and further subdivided as follows:
    680706
    681707\begin{enumerate}
    682  \item Science Image Analysis Stages
     708 \item {\bf Science Image Analysis} is performed on the night-sky
     709 science images to extract the science data from these images.  The
     710 science image analysis is divided into 4 phases:
     711
     712 \begin{itemize}
     713  \item {\bf Phase 1:} The image processing preparation phase, in
     714  which a basic analysis of the complete FPA image is performed.
     715
     716  \item {\bf Phase 2:} The image reduction phase, in which the
     717  individual detector images (OTAs) are processed as much as possible
     718  without reference to other chips in the same FPA image or other
     719  exposures.
     720
     721  \item {\bf Phase 3:} The exposure analysis phase, in which the
     722  results of the multiple detectors are combined to improve the
     723  calibrations for the complete FPA images.
     724
     725  \item {\bf Phase 4:} The image combination phase, in which several
     726  difference exposures of the same part of the sky are combined to
     727  produce high-quality difference and summed images.
     728 \end{itemize}
     729
     730 \item {\bf Calibration Image Analysis} is required to generate the
     731 calibration images used in the science image analysis.  There are
     732 three types of calibration images which are produced.
     733
    683734 \begin{enumerate}
    684   \item Phase 1 : image processing preparation
    685   \item Phase 2 : image reduction
    686   \item Phase 3 : exposure analysis
    687   \item Phase 4 : image combination
     735  \item {\bf Calibration 1:} The basic master-detrend creation images,
     736  which are constructed from a simple stack of multiple input
     737  calibration images. 
     738
     739  \item {\bf Calibration 2:} Sky-model \& fringe-model images, which
     740  are constructed by combining a collection of images which require
     741  substantial processing before the combination.
     742
     743  \item {\bf Calibration 3:} Flat-field correction image, which is
     744  constructed on the basis of photometry observations of objects from
     745  certain science images.
     746
    688747 \end{enumerate}
    689  \item Calibration Image Analysis Stages
    690  \begin{enumerate}
    691   \item Calibration 1 : basic master-detrend creation
    692   \item Calibration 2 : Sky-model/fringe-mode generation
    693   \item Calibration 3 : Flat-field correction image Creation
    694  \end{enumerate}
    695  \item Reference Catalog Analysis Stages
    696  \begin{enumerate}
    697   \item Astrometry reference catalog generation
    698   \item Photometry reference catalog generation
    699  \end{enumerate}
     748
     749 \item {\bf Reference Catalog Creation} is required by the IPP to
     750 generate improved astrometric and photometric reference catalogs on
     751 the basis of Pan-STARRS observations.
     752
    700753\end{enumerate}
    701754
     
    704757the Controller.  The thick lines represent the flow of pixel data, the
    705758thin lines represent the flow of metadata and object data, and the
    706 grey lines represent the flow of commands.  \tbd{All subsystem
    707 interactions, except that between the scheduler and controller, are in
    708 the form of updates to and queries from the databases}.  The hatched
    709 systems represent external PanSTARRS systems (OATS, the Sky Server,
    710 the SAIC Object Database, the Moving/Transient Object Pipeline, and
    711 other Client Science Pipelines. 
     759grey lines represent the flow of commands.  The hatched systems
     760represent external PanSTARRS systems (OATS, the Sky Server, the SAIC
     761Object Database, the Moving/Transient Object Pipeline, and other
     762Client Science Pipelines.
    712763
    713764The individual analysis stages can be accessed as a UNIX command-line
     
    717768\tbd{Python}. 
    718769
    719 \subparagraph{Science Image Pipelines}
    720 
    721 The IPP science image pipelines perform analyses on the night-sky
    722 science images to extract the science data from these images.  These
    723 consist of: Phase 0, the night preparation stage; Phase 1, the image
    724 processing preparation stage; Phase 2, the image reduction stage;
    725 Phase 3, the exposure analysis stage; and Phase 4, the image
    726 combination stage.  These pipelines must process the images in a
    727 timely manner so that the incoming data stream will not overload the
    728 IPS.  The decision to execute a specific pipeline for a specific
     770The decision to execute a specific analysis stage for a specific
    729771dataset is made by the Scheduler, which sends the infomation to the
    730 Controller.  The Controller executes the pipeline for the data on an
    731 appropriate machine and monitors the success or failure of the job.
    732 
    733 \subparagraph{Calibration Image Pipelines}
    734 
    735 The IPP Calibration Image Pipelines perform the tasks needed to
    736 generate high-quality calibration images from the input image
    737 dataset.  These operations may be performed on whatever timescales are
    738 appropriate and necessary to maintain the quality and relevance of the
    739 calibration images.  There are four distinct types of calibration
    740 image pipelines:  the basic detrend creation pipeline, the photometric
    741 correction image creation pipeline, the fringe pattern generation
    742 pipeline, and the sky foreground pattern generation pipeline.
    743 
    744 \subparagraph{Reference Catalog Pipelines}
    745 
    746 The IPP reference catalog pipelines use the data in the IPP Internal
    747 Database and the IPP Object Database to determined improved
    748 astrometric and photometric calibration references.
     772Controller.  The Controller executes the analysis stage for the data
     773on an appropriate machine and monitors the success or failure of the
     774job.
    749775
    750776\begin{figure}
     
    755781\end{figure}
    756782
     783\paragraph{Science Image Analysis}
     784
     785The Science Image analysis stages together represent the basic data
     786analysis required by the IPP.  These analysis stages must process the
     787images in a timely manner so that the incoming data stream will not
     788overload the Pixel Server.  The required processing time is derived
     789from the rate at which science images are obtained by PS-1.  At a
     790minimum, the Science Image Analysis must keep up with the average
     791image rate over the course of 1 day.  \tbd{The Science image analysis
     792is required to process images at the maximum science image rate from
     793PS-1 of 1 image every 30 seconds -- does this fall out of the science
     794requirements?}  \tbd{In order to give time for uncertainties in the
     795Pan-STARRS system as a whole, the Science Image Analysis must be able
     796to process all images from a night within 12 hours.}
     797
     798\tbd{number of images per night, data volume per image, output
     799products}
     800
     801The science image analysis which must be performed by the IPP consists
     802of:
     803
     804\begin{itemize}
     805\item detrending the images to remove the instrumental signature
     806
     807\item astrometric and photometric calibration of the individual images
     808
     809\item merging a collection of several images of the same portion of
     810the sky obtained over a short period of time (to remove image defects
     811and gaps)
     812
     813\item subtracting the appropriate reference static-sky image
     814
     815\item cleaning the image of any transients
     816
     817\item adding the cleaned image to the static sky
     818
     819\item object detection of images at specific stages
     820\end{itemize}
     821
     822These analysis steps can be grouped into four phases, each of which
     823deals with a single data unit.  We identify and discuss the
     824requirements of the four phases below.
     825
    757826\paragraph{Phase 1 : image processing preparation}
    758827
     
    760829calculate basic astrometric \tbd{and photometric} data needed by the
    761830later stages.  Phase 1 must use the static (pre-determined) telescope
    762 distortion model, combined with the guide star pixel and celestial
    763 coordinates, to determine the correct telescope bore-site, field
    764 rotation and magnification.  The astrometric accurate required from
    765 this analysis stage is 2 arcsec across the field, sufficient to match
    766 the vast majority of reference stars with their detections. 
     831distortion model and table of nominal OTA positions and rotations,
     832combined with the guide star pixel and celestial coordinates, to
     833determine the correct telescope bore-site, field rotation and
     834magnification.  The astrometric accurate required from this analysis
     835stage is \tbd{2 arcsec} across the field, sufficient to match the vast
     836majority of reference stars with their detections.
    767837
    768838In some circumstances, science images may have no guide stars.  This
     
    773843are significantly above the background level.  The threshold levels
    774844for this object detection stage must be configurable.  The object
    775 extraction must be performed in less than 3 seconds. 
     845extraction must be performed in less than \tbd{3 seconds}.
    776846
    777847In order for astrometry of an image to succeed, it is necessary that
    778848approximate image coordinates be known.  The Phase 1 analysis must be
    779 able to succeed despite initial coordinate errors as large as 5 times
    780 the field width.  However, the search process must attempt the near
    781 matches first in the assumption that the given coordinates are
    782 accurate. 
     849able to succeed despite initial coordinate errors as large as \tbd{5
     850times} the field width.  However, the search process must attempt the
     851near matches first in the assumption that the given coordinates are
     852accurate.
    783853
    784854A table of the overlaps between the science image to be processed and
     
    786856guide the processing of the static sky in Phase 4.  The overlaps must
    787857be generously calculated so that small errors in astrometry at Phase 1
    788 will not cause any valid static sky / science image pairs to be
    789 missed.  It is acceptable for a small number of invalid overlaps to be
    790 identified as these will be excluded in Phase 4.
     858will not cause any valid static sky / science image pairs to be missed
     859because of the astrometric error at this phase.  It is acceptable for
     860a small number of invalid overlaps to be identified as these will be
     861excluded in Phase 4.
    791862
    792863It is not unusual that an image be obtained with invalid coordinates
     
    801872\paragraph{Phase 2 : image reduction}
    802873
    803 Phase~2 processing within the Pan-STARRS image processing pipeline is
    804 the detrend stage, where the images from the detector are processed to
    805 remove instrumental signatures.  In addition, basic object detection
    806 is performed along with improved astrometric and photometric
    807 calibration.  The following operations need to occur within Phase~2
    808 processing:
     874The Phase~2 analysis is the detrend stage, in which the images from
     875the detector are processed to remove instrumental signatures.  In
     876addition, basic object detection is performed along with improved
     877astrometric and photometric calibration.  \tbd{what component selects
     878the appropriate calibration data?  is it the phase~2 program, the
     879individual modules, or the scheduler above it?}  In each step of the
     880analysis process, an image mask and noise map must be carried and
     881updated when appropriate.  The following operations need to occur
     882within Phase~2 processing:
    809883
    810884\begin{enumerate}
     
    823897\subparagraph{Convolve detrend images with the OT kernel}
    824898
    825 Detrend images must be convolved by the OT kernel, so that
    826 they accurately represent the detrend images appropriate for
    827 the object images, which have been shifted using OT.  The detrend
    828 images which must be convolved include: the flat-field and the
    829 high-spatial-frequency fringe images.
     899Detrend images must be convolved by the OT kernel, so that they
     900accurately represent the detrend images appropriate for the object
     901images, which have been shifted using OT.  The detrend images which
     902must be convolved include: the flat-field and the
     903high-spatial-frequency fringe images. \tbd{Must this be a formal
     904convolution with the analytical OT kernel, or can it be a convolution
     905with a decomposed kernel?} The appropriate kernel for each cell of an
     906OTA must be determined from the guide star history.  \tbd{what is the
     907source of the OT kernel?  pixel server?}
    830908
    831909\subparagraph{Flag bad and saturated pixels}
     
    867945\subparagraph{Trim object image}
    868946
    869 The overscan must be trimmed from the object image, along with
    870 those pixels near the edges that have been compromised due to OT
    871 operation.
     947The image must be trimmed to remove the non-imaging pixels, such as
     948the overscan and any pre-scan pixels, along with those pixels near the
     949edges that have been compromised due to OT operation.  The definition
     950of the imaging area of the detector must optionally be determined from
     951the camera configuration data or from the metadata associated with the
     952image.
    872953
    873954\subparagraph{Correct for non-linearity}
     
    883964must be corrected for sensitivity variations as a function of
    884965position, dividing by a flat-field image.  The flat-field images must
    885 be appropriately normalized (see section \ref{mkcal}.  \tbd{what
    886 component selects the appropriate flat-field image?  scheduler or
    887 flat-field module?}  The flat-fielded image must have a consistent
    888 photometric zero-point across the chip, and across the full FPA, to
    889 within 0.2\%.
    890 
    891 \subparagraph{Sky subtraction}
     966be appropriately normalized (see section \ref{mkcal}).  The
     967flat-fielded image must have a consistent photometric zero-point
     968across the chip, and across the full FPA, to within 0.2\%. 
     969
     970\subparagraph{Sky \& Fringe subtraction}
    892971
    893972The flux contribution of the sky (from both continuum emission and the
    894973line emission that causes fringing) must be subtracted from the
    895 flat-fielded object image.
    896 
    897 \subparagraph{Identify CRs}
    898 
    899 CRs should be identified, if possible on the basis of their morphology
    900 in the flat-fielded object image (from a single focal plane), and
    901 masked.  The mask must be grown by an additional pixel.
     974flat-fielded object image.  The subtraction must remove background
     975(technically, foreground) variations which are not celestial but
     976generated in the atmosphere or by more localized scattering.  This
     977background subtraction does not address the artefacts generated by
     978bright stars: bleeding columns, ghosts, or other localized reflection
     979effects.  The background subtraction must remove the variations with
     980an accuracy such that the residual variations do not introduce on
     981average more than \tbd{0.2\%} photometric scatter or more than
     982\tbd{1\%} extremely deviant outlier stars (stars for which the
     983photometry is in error by more than 3\%.  \tbd{what is the requirement
     984on galaxy photometry? morphology determinations?}  \tbd{What is
     985allowed power-spectrum of background variations?}
     986
     987\subparagraph{Identify 'cosmic rays'}
     988
     989Charged particles in the detector frequently cause features which do
     990not have the morphology of astronomical objects.  In a well-sampled
     991image, these may be easily identified by the sharpness of the image.
     992In a near critically-sampled image, these 'cosmic rays' may be
     993indistinguishable from stellar objects.  The IPP must have the
     994capability of making the morphological identification of cosmic rays
     995if the imaging data is suitable.  The identified cosmic rays must be
     996masked with a configurable growth factor (additional pixels beyond the
     997detected pixels in the feature).  \tbd{The determination if the image
     998can be treated with morphological cosmic ray rejection must be made by
     999Phase~2.}
    9021000
    9031001\subparagraph{Find objects in the image}
    9041002
    9051003Objects on the flat-fielded object image must be found, and general
    906 parameters, including the centre, magnitude and shape measured.
     1004parameters, including the object centroid, instrumental magnitude,
     1005local background level, and basic shape parameters ($\sigma_{\rm min},
     1006\sigma_{maj}$) measured.  The detection threshold must be
     1007configurable, and be a function of the average background flux or the
     1008image noise map.  Minimal object classification must be performed to
     1009distinguish objects which are consistent with a single PSF, objects
     1010which are inconsistent, and objects which are saturated.  The
     1011resulting collection of detected objects must be saved along with the
     1012relevant image metadata (\ie, filter, exposure time, etc).
    9071013
    9081014\subparagraph{astrometry}
    9091015
    910 \tbd{per-OTA astrometry to improve per-OTA parameters}
     1016Objects detected in Phase~2 must be matched with known astrometric
     1017reference objects, using reference object coordinates which have been
     1018adjusted for proper motion.  The matched objects must be used to
     1019improve the astrometric solutions for the individual OTAs.  At this
     1020stage, a user-defined collection of OTA astrometry parameters must be
     1021fitted on the basis of the matched stars.  The Cell astrometric
     1022parameters must not be allowed to flow at this stage.  The fit must be
     1023robust, rejecting outlier matches, either stars with poorly determined
     1024proper motion or spurious matches.  The resulting astrometric solution
     1025must be consistent across the OTA field to within \tbd{0.2 arcsec}. 
    9111026
    9121027\subparagraph{Postage Stamps}
    9131028
    914 Objects on the flat-fielded object image falling within a specified
    915 magnitude range should have subimages saved for the purpose of more
    916 accurate photometry and astrometry.
    917 
    918 \paragraph{Phase 3}
     1029The IPP must have the capability of extracting regions surrounding a
     1030specified subset of objects from the flattened images.  These postage
     1031stamp images must be saved for additional use by client science
     1032pipelines.  The identification of these objects must be on the basis
     1033of a set of rules applied to the object magnitude and position.
     1034
     1035\paragraph{Phase 3 : exposure analysis}
    9191036
    9201037The Phase 3 analysis stage works with the results from a complete FPA
     
    9271044significant \tbd{level TBD}, the zero-point variations must be modeled
    9281045with an up-to 3rd order chebychev polynomial correction.  The complete
    929 FPA image must be categoriezed as photometric on the basis of the
    930 zero-point consistency, the transparency compared with recent
    931 long-term measurements in the filter, and with the external indicators
    932 of photometricity.
     1046FPA image must be categorized as photometric or not \tbd{numerical
     1047scale?} on the basis of the zero-point consistency, the transparency
     1048compared with recent long-term measurements in the filter, and the
     1049external indicators of photometricity.
    9331050
    9341051Phase 3 must use the objects detected in Phase 2, matched with an
     
    9361053astrometric solutions.  The distortion model appropriate to this image
    9371054must be determined.  The resulting astrometric accuracy must be
    938 \tbd{50 mas? 10 mas?}
    939 
    940 \paragraph{Phase 4 Concept}
    941 
    942 Phase 4 processing within the Pan-STARRS image processing pipeline is
    943 the final stage of processing.  It operates on each sky cell that has
    944 overlapping imaging data from the exposure(s) being processed, and
    945 produces the main output image data products of the stage --- the
    946 difference images and a deep static sky image --- along with the
    947 associated catalogues of static and variable sources.
    948 
    949 Here we give the specifications for the implementation of Phase 4
    950 processing.
    951 
    952 
    953 \subparagraph{Functionality}
    954 
    955 Phase 4 must consist of the following elements:
    956 \begin{enumerate}
    957 \item Combine images --- the images from each telescope are to be
    958 combined in order to obtain a deep image free from artifacts (e.g.\
    959 cosmic rays, low-altitude streaks);
    960 \item Identify variable sources --- the combined image is to be
    961 compared with the static sky image and variable sources identified; and
    962 \item Add to static sky --- the combined image is to be added to the
    963 static sky so that an incrementally-deeper static sky image may be
    964 made.
    965 \end{enumerate}
     1055limited by the astrometric reference catalog \tbd{30 mas for USNO?}
     1056
     1057\paragraph{Phase 4 : image combination}
     1058
     1059Phase 4 is the image combination stage, in which multiple images of
     1060the same portion of the sky are merged and confronted with the static
     1061sky image.  Phase 4 operates on the smallest data unit of the static
     1062sky, the sky cell, along with the associated pixels from a collection
     1063of image which have been processed through phases 1 - 3.  For each sky
     1064cell, the corresponding pixels are extracted from the exposures being
     1065processed and mapped to the projection of the sky cell. The pixels
     1066from the multiple input processed images are combined into a single,
     1067cleaned image.  This image is then confronted with the static sky cell
     1068data to produce a difference image.  Residual objects in the
     1069difference image, above a threshold are detected and excised from the
     1070original cleaned image.  The remaining pixels are added to the
     1071existing static sky image.  Object detection must be performed of the
     1072difference and cleaned images.  \tbd{when is static sky object
     1073detection \& classification performed?}  Phase 4 naturally divides
     1074into several stages, each of which are discussed in detail below.
     1075
     1076\subparagraph{Extract image pixels}
     1077
     1078For the given sky cell, the corresponding set of image pixels must be
     1079determined and extracted from the input images.  This process must use
     1080the astrometric information for each OTA and Cell to determine the
     1081overlaps.  It must not miss any pixels, and it must read no more than
     108220\% more pixels than necessary from the input images.
     1083
     1084\subparagraph{Transform pixel coordinates}
     1085
     1086Pixels which have been extracted from the input images must be mapped
     1087to the corresponding pixels in the sky image.  The tranformation must
     1088be based on the measured astrometric solution for the input images
     1089relative to the reference catalog used to generate the static sky
     1090image.  This warping must use a locally linear astrometric solution to
     1091minimize computational effort. The output image must maintain be
     1092photometric consistent with the input image to within 0.2\%.
     1093\tbd{interpolation method?}
     1094
     1095\subparagraph{PSF matching}
     1096
     1097The multiple input images must have their PSF mutually matched to
     1098allow for proper image subtraction.
     1099
     1100\subparagraph{Flux matching}
     1101
     1102The multiple input images must have their object fluxes mutually
     1103matched by intercomparison of the stars measured in Phase 2 in order
     1104to properly combine them photometrically.
     1105
     1106\subparagraph{Image outlier pixel rejection}
     1107
     1108Pixels from the group of images which are inconsistent with the
     1109ensemble of pixel values must be identified and flagged.  The
     1110resulting collection of pixels must be used to construct a single
     1111output image, cleaned of the outliers.  This outlier rejection must be
     1112performed optionally since moving objects will be rejected in images
     1113obtained over a wide range of times.
     1114
     1115\subparagraph{Image Subtraction}
     1116
     1117The static sky image must be subtracted from the merged, cleaned
     1118image.  All objects in the difference image must be detected and the
     1119pixels flagged in the input image.  Object detection at this stage is
     1120the same as that used for Phase 2. 
     1121
     1122\subparagraph{Cleaned Input Image}
     1123
     1124The flagged pixels must be excluded from the input images and a new,
     1125cleaned image constructed.  This image must have object detection
     1126applied to it.  \tbd{parameters}
     1127
     1128\subparagraph{Update static sky}
     1129
     1130The final, cleaned input image must be added to the static sky so that
     1131an incrementally-deeper static sky image may be made.
     1132\tbd{parameters, weight map}
    9661133
    9671134\subparagraph{Products}
     
    9771144\end{enumerate}
    9781145
    979 
    9801146\subparagraph{Timing}
    9811147
     
    10041170\end{itemize}
    10051171
    1006 
    10071172\subparagraph{Robustness}
    10081173
     
    10121177to an error upstream in the processing).
    10131178
    1014 \subsubsection{Calibration Stage 1}
     1179\paragraph{Calibration Stages}
     1180
     1181The Calibration analysis stages may be performed on whatever
     1182timescales are appropriate and necessary to maintain the quality and
     1183relevance of the calibration images.  We distinguish two major classes
     1184of calibration images which require significantly different techniques
     1185for their construction.  We list the specific calibration images which
     1186must be constructed in the calibration analysis stages. The
     1187requirements for each of these stages are discussed in more detail
     1188below.
     1189
     1190\paragraph{Basic Calibration Stages}
    10151191
    10161192The IPP must generate basic calibration images using the raw
     
    10261202are consistent and valid.
    10271203
    1028 \paragraph{bias images}
    1029 
    1030 \paragraph{dark images}
    1031 
    1032 \paragraph{flat-field images}
    1033 
    1034 \subsubsection{Calibration Stage 2}
    1035 
    1036 \paragraph{mask images}
    1037 
    1038 \paragraph{fringe frames}
    1039 
    1040 \paragraph{low-k sky models}
    1041 
    1042 \subsubsection{Calibration Stage 3}
    1043 
    1044 Flat-field correction frame
    1045 
    1046 \subsubsection{Astrometry Reference Creation}
    1047 
    1048 \subsubsection{Photometry Reference Creation}
     1204\subparagraph{bias images}
     1205
     1206Bias images may be needed to correct for structure in the bias.  The
     1207IPP must have the capability of constructing a master bias image from
     1208a stack of raw bias frames.  The input bias images, representing
     1209offsets from the overscan level, must have the overscan removed,
     1210including 1D structure if needed.  The bias construction must
     1211incorporate outlier image and outlier pixel rejection.  The statistic
     1212used to determine pixel values must optionally be derived from the
     1213sample mean, median, and mode, robust mean, median, and mode, and the
     1214clipped mean and median.  Residual images, in which the master bias is
     1215applied to the input images must be constructed and their statistics
     1216used to exclude any significant outlier input images.
     1217
     1218\subparagraph{dark images}
     1219
     1220Dark images may be needed to correct for structure in the dark
     1221current.  The IPP must have the capability of constructing a master
     1222dark image from a stack of raw dark frames.  The input dark images
     1223must first be corrected for the bias using whatever method is
     1224appropriate for the science images.  The master dark frame must be
     1225specified for a particular exposure time.  As such, the input dark
     1226frames must have a limited range of exposure times.  The dark frame
     1227construction must incorporate outlier image and outlier pixel
     1228rejection.  The statistic used to determine pixel values must
     1229optionally be derived from the sample mean, median, and mode, robust
     1230mean, median, and mode, and the clipped mean and median.  Residual
     1231images, in which the master dark image is applied to the input images
     1232must be constructed and their statistics used to exclude any
     1233significant outlier input images.  \tbd{The dark frames must be
     1234examined to determine the non-linearity of the measured dark current
     1235-- by what component?}.
     1236
     1237\subparagraph{flat-field images}
     1238
     1239Master flat-field images must be constructed from a collection of
     1240input flat-field images.  An appropriate set of input images must be
     1241selected on the basis of their flux levels, time of observations, and
     1242the observing conditions.  The input flat-field images must be
     1243processed (bias and dark corrected if needed) and the resulting images
     1244stacked.  The master flat-field construction must incorporate image
     1245and pixel outlier rejection.  The statistic used to determine pixel
     1246values must optionally be derived from the sample mean, median, and
     1247mode, robust mean, median, and mode, and the clipped mean and median.
     1248Residual images, in which the master flat-field image is applied to
     1249the input images must be constructed and their statistics used to
     1250exclude any significant outlier input images. 
     1251
     1252\paragraph{Other Calibration Stages}
     1253
     1254\subparagraph{mask images}
     1255
     1256Initial bad-pixel mask images must be generated on the basis of
     1257comparison between raw flat-field images and a cleaned, stacked
     1258master.  The mask creation analysis stage must accept a collection of
     1259flat-field images and identify pixels which are repeatedly
     1260inconsistent from image to image.  If too many pixels are
     1261inconsistent, an error should be raised.
     1262
     1263\subparagraph{fringe frames}
     1264
     1265Fringe-correction frames must be generated to remove the fringe
     1266pattern caused by thin-film interference in the top layers of CCDs,
     1267particularly in the redder passbands.  Fringe correction frames must
     1268be constructed on the basis of observations of the night-sky in the
     1269appropriate filters.  The images must first be flattened to remove the
     1270pixel-to-pixel sensitivity variations of the detector.  The
     1271combination of multiple input fringe frames may not be simply stacked
     1272since the amplitude of the fringe pattern varies independently of
     1273other variations in the image.  The amplitude of the fringe frames
     1274must be measured and the images scaled to normalize the fringe
     1275amplitude to the range -1 to +1 before combining with one of the
     1276standard combination statistics (mean, median, mode, etc).
     1277
     1278\subparagraph{low-k sky models}
     1279
     1280Large-scale background structure in images which is not caused by
     1281thin-film interference must also be detected and corrected.  Models of
     1282this background structure may be the necessary input to the correction
     1283proceedure.  The IPP must have the capability of generating image
     1284models of the large-scale structure patterns observed with the
     1285telescope.  \tbd{discuss principal components, SVD?}
     1286
     1287\subparagraph{Flat-field correction frame}
     1288
     1289Flat-field images, whether constructed from the dome, twilight, or
     1290night-sky images, rarely will perfectly correct the detector response
     1291in a consistent fashion across the full field of the camera.  The IPP
     1292must have the capability of generating flat-field photometric
     1293correction frames on the basis of the measured photometry of objects
     1294which are placed at a variety of locations on the detector in a
     1295sequence of images.
     1296
     1297\paragraph{Reference Catalog Creation}
     1298
     1299For PS-1, one of the primary goals is the creation of photometric and astrometric
     1300reference catalogs for the general community and for the future
     1301Pan-STARRS requirements.  The generation of these catalogs is
     1302inherently a research project, and will require human control and
     1303intervention.  The IPP will be required to provide the data access,
     1304manipulation and visualization tools needed to construct these
     1305reference catalogs and to assess their quality.  In this section, we
     1306list the requirements of the tools needed for this effort.
     1307
     1308\paragraph{Astrometry Reference Creation}
     1309
     1310The existing astrometric reference catalogs are known to have
     1311limitations at the level of \tbd{NN} milli-arcsec.  The internal
     1312accuracy of the Pan-STARRS dataset can potentially be much higher than
     1313the external reference catalogs.  The IPP must have the capability of
     1314generating an astrometric reference on the basis of the observations
     1315obtained by the PnA survey.  The IPP must provide the analysis tools
     1316needed to generate the master astometric reference catalog.  Much of
     1317the required functionality is covered by the PnA Database.
     1318
     1319The necessary ingredients for the construction of the PS-1 Astrometric
     1320Reference Catalog are: the observed coordinates of stars and the
     1321existing astrometric reference catalogs.  A variety of reference
     1322catalogs will be required, including:
     1323\begin{itemize}
     1324\item Hipparcos
     1325\item Tycho2
     1326\item UCAC
     1327\item YBx
     1328\item USNO-Bx
     1329\item 2MASS
     1330\end{itemize}
     1331These catalog must be available and accessible to the PnA Database.
     1332It is necessary to have the tools to convert the reference catalog
     1333object coordinates to all of the possible coordinate frame of
     1334relevance in the telescope and camera system, including:
     1335\begin{itemize}
     1336\item Catalog to mean positions
     1337\item Mean to apparent positions
     1338\item Apparent positions + pointing to focal plane coordinates
     1339\item focal plane to specific detector (OTA)
     1340\item specific detector to detector cell
     1341\end{itemize}
     1342
     1343In addition to the reference catalogs, it will be necessary to
     1344determine and have available for the analysis system a variety of
     1345approximate calibration data, including the telescope and camera
     1346optical distortion models and the variation of the image PSF across
     1347the camera field, as a function of color.
     1348
     1349The final ingredient in the astrometry solution is the observation of
     1350stars with the PS-1 telescope.  The object detections are produced by
     1351several of the analysis stages discussed in the Science Analysis
     1352section.  The likely measurement of relevance to the astrometric
     1353reference catalog is the object extraction for the individual,
     1354detrended images (section~\ref{foo}).  \tbd{is it necessary to have
     1355  multiple centroiding methods available?}.  The detected objects must
     1356be matched against the reference catalogs, and it must be possible to
     1357determine fit coefficients as a function of simply position, or with
     1358combinations of magnitude or color.  The fitting method must include
     1359robust outlier rejection.  It is also necessary to have information
     1360about the objects which are detected in the catalog, but not the
     1361science image or vice-versa, as well as an assessment of the
     1362centroiding errors for each object.  It must be possible to plot the
     1363fit residuals against a wide variety of parameters, including the
     1364object positions, magnitudes, colors, etc, and to make subset
     1365selections of the objects on the basis of these parameters.  . 
     1366
     1367An alternative measurement of the stellar positions is derived from
     1368the guide stars, which are much brighter than the typical saturated
     1369stars.  It must be possible to compare the coordinates of the guide
     1370stars with the coordinates of the other stars in the image.  It must
     1371also be possible to perform the various fitting steps for the guide
     1372stars rather than for the normal image data.
     1373
     1374\paragraph{Photometry Reference Creation}
     1375
     1376The IPP must provide the analysis tools needed to generate a master
     1377photometric reference catalog.  The tools needed for generation of the
     1378photometric reference catalogs are similar in essence to those used
     1379for the astrometric reference catalog.  It is necessary to confront
     1380the observed objects against the existing reference catalogs to
     1381determine the necessary calibrations.  Again, much of the required
     1382functionality is covered by the PnA Database. 
     1383
     1384The necessary ingredients for the construction of the PS-1 Photometric
     1385Reference Catalog are: the observed magnitudes of stars and the
     1386existing photometric reference catalogs.  A variety of reference
     1387catalogs will be required, including:
     1388\begin{itemize}
     1389\item SDSS
     1390\item CFHT-LS standards
     1391\item Landolt
     1392\item etc
     1393\end{itemize}
     1394These catalog must be available and accessible to the PnA Database.
     1395
     1396The final ingredient in the photometry solution is the observation of
     1397stars with the PS-1 telescope.  The object detections are produced by
     1398several of the analysis stages discussed in the Science Analysis
     1399section.  The likely measurement of relevance to the photometric
     1400reference catalog is the object extraction for the individual,
     1401detrended images (section~\ref{foo}).  It is necessary to have the
     1402tools to convert between different photometric systems, including:
     1403\begin{itemize}
     1404\item instrumental to nominal detector magnitude
     1405\item nominal detector magnitude to average filter system
     1406\item average filter system to reference photometry system
     1407\end{itemize}
     1408These transformations are based on a set of measured coefficients for
     1409the color and airmass dependency of the measurement.  In addition to
     1410these types of transformations, it is necessary to have the ability to
     1411measure and apply relative photometry corrections. 
     1412
     1413The detected objects must be matched against the reference catalogs,
     1414and it must be possible to determine fit coefficients as a function of
     1415airmass, magnitude, color and detector coordinates, or with
     1416combinations of the above.  The fitting method must include robust
     1417outlier rejection.  It is also necessary to perform exclusions on the
     1418basis of object locations, instrumental magnitudes, observed and
     1419reference errors, and in particular time of the observations. It must
     1420be possible to plot the fit residuals against a wide variety of
     1421parameters, including the object positions, magnitudes, colors, etc,
     1422and to make subset selections of the objects on the basis of these
     1423parameters.  .
     1424
     1425An alternative measurement of the stellar positions is derived from
     1426the guide stars, which are much brighter than the typical saturated
     1427stars.  It must be possible to relate the magnitudes of the guide
     1428stars with the magnitudes of the other stars in the image.  It must
     1429also be possible to perform the above fitting steps for the guide
     1430stars rather than for the normal image data.
    10491431
    10501432\subsubsection{Modules}
     
    10991481
    11001482\begin{itemize}
     1483\item Hipparcos
     1484\item Tycho2
     1485\item HST-GSC
    11011486\item USNO-A
    1102 \item USNO-B
    1103 \item HST-GSC
    1104 \item Tycho
     1487\item UCAC
    11051488\item 2Mass
     1489\item USNO-Bx
     1490\item YBx
    11061491\end{itemize}
    11071492
Note: See TracChangeset for help on using the changeset viewer.