IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 837


Ignore:
Timestamp:
Jun 2, 2004, 4:56:58 PM (22 years ago)
Author:
eugene
Message:

major modifications to split SRS into SRS + SCD
too numerous to detail: check the diff

File:
1 edited

Legend:

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

    r810 r837  
    1 %%% $Id: ippSRS.tex,v 1.2 2004-05-29 00:56:14 eugene Exp $
     1%%% $Id: ippSRS.tex,v 1.3 2004-06-03 02:56:58 eugene Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    9898\label{req:system-capabilities}
    9999
    100 \tbd{distinguish data products in commissioning, during PA survey,
    101 after PA survey}
     100\tbd{distinguish data products in commissioning, during AP survey,
     101after AP survey}
    102102
    103103The IPP must perform the following tasks:
     
    376376 portions of the IPP.
    377377
    378 \item {\bf Photometry \& Astrometry Database (PnA):} This component is
     378\item {\bf Astrometry \& Photometry Database (AP):} This component is
    379379  required to store and manipulate astronomical objects detected in
    380380  various images, as identified above, including individual
     
    450450MB/sec.
    451451
    452 \subsubsection{PA Database}
     452
     453\subsubsection{AP Database}
    453454
    454455\begin{table}
    455456\begin{center}
    456 \caption{PA Detection Classes \& Object Parameters\label{PAdetections}}
     457\caption{AP Detection Classes \& Object Parameters\label{APdetections}}
    457458\begin{tabular}{lrrrr}
    458459\hline
     
    478479\end{table}
    479480
    480 The PA Database must accept and store individual detections and
     481The AP Database must accept and store individual detections and
    481482collections of detections along with information about the image which
    482483provided the detections.
    483484
    484485Detections must be saved as one of several detection classes (P2, P4S,
    485 P4D, SS) and the PA Database must store the appropriate parameters,
    486 listed in Table~\ref{PAdetections}, for each class.
    487 
    488 The PA Database must identify the image which provided the detection,
     486P4D, SS) and the AP Database must store the appropriate parameters,
     487listed in Table~\ref{APdetections}, for each class.
     488
     489The AP Database must identify the image which provided the detection,
    489490or in the case of external references, an identifier specific to the
    490491reference source.
    491492
    492 The PA Database must group detections into objects and measure average
     493The AP Database must group detections into objects and measure average
    493494parameters of those objects. 
    494495
    495 The PA Database must store parallax and proper motion parameters for a
     496The AP Database must store parallax and proper motion parameters for a
    496497subset of the average objects.
    497498
    498 The PA Database must store image and filter calibration information
     499The AP Database must store image and filter calibration information
    499500necessary to convert between instrumental magnitudes and calibrated
    500501magnitudes in standard systems.
    501502
    502 The PA Database must perform at least the follow queries, with
     503The AP Database must perform at least the follow queries, with
    503504constraints on the output based on at least time ranges, magnitude
    504505limits, error limits:
    505506\begin{enumerate}
    506 \item given (RA,DEC) and a Radius, return all objects and/or
     507\item given $(RA,DEC)$ and a Radius, return all objects and/or
    507508detections in the region.
    508509
    509 \item given (RA,DEC)_0 - (RA,DEC)_1, return all objects and/or
     510\item given $(RA,DEC)_0$ to $(RA,DEC)_1$, return all objects and/or
    510511  detections in the region.
    511512
    512 \item given (RA,DEC), return closest object.
     513\item given $(RA,DEC)$, return closest object.
    513514
    514515\item given object ID, return all detections
     
    516517\item given detection, return source image data.
    517518
    518 \item given (RA,DEC), return all images overlapping coordinate.
    519 
    520 \item given (RA,DEC) and a Radius, return all images overlapping region.
    521 
    522 \item given (RA,DEC)_0 - (RA,DEC)_1, return all images overlapping
     519\item given $(RA,DEC)$, return all images overlapping coordinate.
     520
     521\item given $(RA,DEC)$ and a Radius, return all images overlapping region.
     522
     523\item given $(RA,DEC)_0$ to $(RA,DEC)_1$, return all images overlapping
    523524  region.
    524525
     
    533534
    534535\item given a region, return all possible combinations of the object
    535   or detection magnitudes (M1 - M2).
    536 
    537 \item given a list of (RA,DEC) entries, return all nearest objects. 
     536  or detection magnitudes $(M1 - M2)$.
     537
     538\item given a list of $(RA,DEC)$ entries, return all nearest objects. 
    538539
    539540\item given a filter, telescope, or detector, return all calibration
     
    545546\end{enumerate}
    546547
    547 The PA Database must accept detection IDs of moving objects and label
     548The AP Database must accept detection IDs of moving objects and label
    548549the detections with the identified object.
    549550
    550551\begin{table}
    551552\begin{center}
    552 \caption{PA Detection Classes \& Object Parameters\label{PAdetections}}
     553\caption{AP Detection Classes \& Object Parameters\label{APdetections}}
    553554\begin{tabular}{lrrrr}
    554555\hline
     
    569570\end{table}
    570571
    571 The PA Database must accept new detections at the rate generated by
     572The AP Database must accept new detections at the rate generated by
    572573the telescope from the Phase 2 and Phase 4 analysis.  Except within 10
    573 degrees of the galactic plane, the PA Database must keep up with the
    574 incoming rates.  The expected rates are listed in Table~\ref{PArates},
     574degrees of the galactic plane, the AP Database must keep up with the
     575incoming rates.  The expected rates are listed in Table~\ref{APrates},
    575576along with the total data volume required for storage space over the
    576 PS-1 lifetime.  The PA Database must be able to keep up with these
     577PS-1 lifetime.  The AP Database must be able to keep up with these
    577578rates. 
    578579
    579 \subsubsection{Metadata Database}
     580\subsubsection{Metadata Database -- FIX ME}
    580581
    581582\tbd{this section needs to be reviewed and revised}
     
    607608  location of images is in the Image server}
    608609
    609 \paragraph{Configuration Database}
     610\paragraph{Configuration Database -- FIX ME}
    610611
    611612The IPP requires a Configuration Database to store and provide access to
     
    867868\paragraph{Flat-field correction}
    868869
    869 The object image (after bias correction and non-linearity correction)
    870 must be corrected for sensitivity variations as a function of
    871 position, dividing by a flat-field image. 
     870The Phase 2 analysis must divide by the provided flat-field image. 
     871
     872The division must handle zero-valued pixels in the flat-field image
     873without raising floating point exceptions.
    872874
    873875The flat-field images must be appropriately normalized (see section
    874 \ref{mkcal}).  The flat-fielded image must have a consistent
    875 photometric zero-point across the chip, and across the full FPA, to
    876 within 0.2\% with peak-to-peak deviations of \tbr{0.5\%}.
     876\ref{mkcal}).
     877
     878The flat-fielded image must have a consistent photometric zero-point
     879across the chip, and across the full FPA, to within 0.2\% with
     880peak-to-peak deviations of \tbr{0.5\%}.
    877881
    878882\paragraph{Sky \& Fringe subtraction}
    879883
    880 The flux contribution of the sky (from both continuum emission and the
    881 line emission that causes fringing) must be subtracted from the
    882 flat-fielded object image.  The subtraction must remove background
    883 (technically, foreground) variations which are not celestial but
    884 generated in the atmosphere or by more localized scattering.  This
    885 background subtraction does not address the artifacts generated by
    886 bright stars: bleeding columns, ghosts, or other localized reflection
    887 effects.  The background subtraction must remove the variations with
    888 an accuracy such that the residual variations do not introduce, on
    889 average, more than \tbd{0.2\%} photometric scatter or more than
    890 \tbd{1\%} extremely deviant outlier stars (stars for which the
    891 photometry is in error by more than 3\%).  \tbd{what is the
    892 requirement on galaxy photometry? morphology determinations?}
    893 \tbd{What is allowed power-spectrum of background variations?}
     884The Phase 2 analysis must subtract the sky (and fringe where needed)
     885contributions from the images.
     886
     887The residual after the background subtraction must have an average
     888offset of 0 counts, excluding the signal from astronomical features. 
     889
     890The background residuals must have peak-to-peak variations of less
     891than \tbr{1\%} of the input background amplitude. 
     892
     893The background residuals must have a scatter of less than \tbr{1\%} of
     894the input background amplitude for apertures of less than
     895\tbr{10~arcsec}.\comment{derived from the need for systematic errors
     896of better than 0.5\% and known background ranges.}
    894897
    895898\paragraph{Identify `cosmic rays'}
    896899
    897 Charged particles in the detector frequently cause features which do
    898 not have the morphology of astronomical objects.  In a well-sampled
    899 image, these may be easily identified by the sharpness of the image.
    900 In a near critically-sampled image, these `cosmic rays' may be
    901 indistinguishable from stellar objects.  The IPP must have the
    902 capability of making the morphological identification of cosmic rays
    903 if the imaging data is suitable.  The identified cosmic rays must be
    904 masked with a configurable growth factor (additional pixels beyond the
    905 detected pixels in the feature).  \tbd{The determination if the image
    906 can be treated with morphological cosmic ray rejection must be made by
    907 Phase~2.}
     900The Phase 2 analysis must detect cosmic rays in single images which
     901are brighter than a user-configurable threshold. 
     902
     903The Phase 2 analysis must mask detected cosmic rays with a unique
     904bit value in the mask.
     905
     906The Phase 2 analysis must extend the masked region be a
     907user-configurable growth factor. 
     908
     909The Phase 2 analysis must perform the cosmic ray detection only if it
     910is required by the analysis recipe.
    908911
    909912\paragraph{Find objects in the image}
    910913
    911 Objects on the flat-fielded object image must be found, and general
    912 parameters, including the object centroid, instrumental magnitude,
    913 local background level, and basic shape parameters ($\sigma_{\rm min},
    914 \sigma_{maj}$) measured.  The detection threshold must be
    915 configurable, and be a function of the average background flux or the
    916 image noise map.  Minimal object classification must be performed to
    917 distinguish objects which are consistent with a single PSF, objects
    918 which are inconsistent, and objects which are saturated.  The
    919 resulting collection of detected objects must be saved along with the
    920 relevant image metadata (\ie filter, exposure time, etc).
     914The Phase 2 analysis must perform object detection on the processed
     915images.
     916
     917The object detection must detect all objects above a user-configured
     918threshold. \tbd{valid range for the threshold?}  The detection
     919threshold must be a function of the average background flux or the
     920image noise map.
     921
     922The object detection must measure the following object parameters:
     923\begin{enumerate}
     924\item object centroid and position errors
     925\item an extended object position ($x_g, y_g$)
     926\item instrumental PSF magnitude and error
     927\item local background level and error
     928\item second moments ($\sigma_{\rm min}, \sigma_{maj}$) and their
     929  covarience matrix
     930\end{enumerate}
     931
     932Minimal object classification must be performed to distinguish objects
     933which are consistent with a single PSF, objects which are
     934inconsistent, and objects which are saturated. 
     935
     936The resulting collection of detected objects must be saved along with
     937the relevant image metadata (\ie filter, exposure time, etc).
    921938
    922939\paragraph{Astrometry}
    923940
    924 Objects detected in Phase~2 must be matched with known astrometric
    925 reference objects, using reference object coordinates which have been
    926 adjusted for proper motion.  The matched objects must be used to
    927 improve the astrometric solutions for the individual OTAs.  At this
    928 stage, a user-defined collection of OTA astrometry parameters must be
    929 fitted on the basis of the matched stars.  The Cell astrometric
    930 parameters must not be allowed to vary at this stage.  The fit must be
    931 robust, rejecting outlier matches (either stars with poorly determined
    932 proper motion or spurious matches).  The resulting astrometric
    933 solution must be consistent across the OTA field to within \tbd{0.2
    934 arcsec}.
     941The Phase 2 analysis must match the detected objects with known
     942astrometric reference objects.
     943
     944The astrometric reference object coordinates must be adjusted for
     945proper motion.
     946
     947The reference and detected object coordinates must be fit to determine
     948astrometric parameters for the individual OTAs. 
     949
     950The OTA astrometric parameters must include Chebychev polynomials of the
     951coordinates up to 3rd order.
     952
     953The fitted number of polynomial orders must be a user-configured
     954parameter. 
     955
     956The Cell astrometric parameters must not be allowed to vary in the
     957fit. 
     958
     959The fit must be robust, rejecting outlier matches (either stars with
     960poorly determined proper motion or spurious matches). 
     961
     962The resulting astrometric solution must be consistent across the OTA
     963field to within \tbd{0.2 arcsec}.
    935964
    936965\paragraph{Postage Stamps}
    937966
    938 The IPP must have the capability of extracting regions surrounding a
    939 specified subset of objects from the flattened images.  These postage
    940 stamp images must be saved for additional use by client science
    941 pipelines.  The identification of these objects must be on the basis
    942 of a set of rules applied to the object magnitude and position.
     967The Phase 2 analysis must extract subrasters (`postage stamps')
     968surrounding a user-specified list of coordinates from the flattened
     969images.
     970
     971The postage stamp images must be saved in the IPP Image Server.
    943972
    944973\subsubsection{Phase 3 : exposure analysis}
    945974
    946 The Phase 3 analysis stage works with the results from a complete FPA
    947 obtained during Phase 2 to improve the photometric and astrometric
    948 calibrations. 
    949 
    950 Phase 3 must use the objects detected in Phase 2, matched with an
    951 appropriate reference catalog, to determine the image photometric zero
    952 point and zero-point variations across the field.  If zero-point
    953 variations are significant \tbd{level TBD}, the zero-point variations
    954 must be modeled with a chebychev polynomial correction of order 3 or
    955 less.  The complete FPA image must be categorized as photometric or
    956 not \tbd{numerical scale?} on the basis of the zero-point consistency,
    957 the transparency compared with recent long-term measurements in the
     975The Phase 3 analysis must use the objects detected in Phase 2, matched
     976with a user-specified reference photometry catalog, to determine the
     977image photometric zero point and zero-point variations across the
     978field. 
     979
     980If zero-point variations are significant \tbd{level TBD}, the
     981zero-point variations must be modeled with a chebychev polynomial
     982correction of order 3 or less.
     983
     984The photometric nature of the FPA image must be categorized
     985\tbd{numerical scale?} on the basis of the zero-point consistency, the
     986transparency compared with recent long-term measurements in the
    958987filter, and the external indicators of photometricity.
    959988
    960 Phase 3 must use the objects detected in Phase 2, matched with an
    961 appropriate reference catalog, to determine improvements to the
    962 astrometric solutions.  The distortion model appropriate to this image
    963 must be determined.  The resulting astrometric accuracy must be
    964 limited by the astrometric reference catalog \tbd{30 mas for USNO?}
     989The Phase 3 analysis must use the objects detected in Phase 2, matched
     990with an appropriate reference catalog, to improve the distortion model
     991used for this image.
     992
     993The resulting astrometric accuracy must be limited by the astrometric
     994reference catalog \tbd{30 mas for USNO?}
    965995
    966996\subsubsection{Phase 4 : image combination}
     
    968998Phase 4 is the image combination stage, in which multiple images of
    969999the same portion of the sky are merged and confronted with the static
    970 sky image.  Phase 4 operates on the smallest data unit of the static
    971 sky, the sky cell, along with the associated pixels from a collection
    972 of images which have been processed through phases 1--3.  For each sky
    973 cell, the corresponding pixels are extracted from the exposures being
    974 processed and mapped to the projection of the sky cell. The pixels
    975 from the multiple input processed images are combined into a single,
    976 cleaned image.  This image is then confronted with the static sky cell
    977 data to produce a difference image.  Residual objects in the
    978 difference image, above a threshold are detected and excised from the
    979 original cleaned image.  The remaining pixels are added to the
    980 existing static sky image.  Object detection must be performed on the
    981 difference and cleaned images.  \tbd{when is static sky object
    982 detection \& classification performed?}  Phase 4 naturally divides
    983 into several stages, each of which are discussed in detail below.
     1000sky image.  Requirements for the different steps of the process are
     1001given below.
    9841002
    9851003\paragraph{Extract image pixels}
    9861004
    987 For the given sky cell, the corresponding set of image pixels must be
    988 determined and extracted from the input images.  This process must use
    989 the astrometric information for each OTA and Cell to determine the
    990 exact overlaps.  It must not miss any pixels, and it must read no more
    991 than 20\% more pixels than necessary from the input images.
     1005The Phase 4 analysis must determine the corresponding set of image
     1006pixels for a given sky cell.
     1007
     1008The corresponding image pixels must be extracted from the input
     1009images, using the astrometric information for each OTA and Cell to
     1010determine the exact overlaps.
     1011
     1012The Phase 4 analysis must not miss any pixels in this match, and it
     1013must read no more than 20\% more pixels than necessary from the input
     1014images.
     1015
     1016The Phase 4 analysis must skip any sky cells with fewer than 5\% of
     1017their pixels overlapping the input images.
    9921018
    9931019\paragraph{Transform pixel coordinates}
    9941020
    9951021Pixels which have been extracted from the input images must be mapped
    996 to the corresponding pixels in the sky image.  The tranformation must
    997 be based on the measured astrometric solution for the input images
    998 relative to the reference catalog used to generate the static sky
    999 image.  This warping must use a locally linear astrometric solution to
    1000 minimize computational effort. The output image must maintain be
    1001 photometric consistent with the input image to within 0.2\%.
    1002 \tbd{interpolation method?}
     1022to the corresponding pixels in the sky image.
     1023
     1024The tranformation must be based on the measured astrometric solution
     1025for the input images relative to the reference catalog used to
     1026generate the static sky image.
     1027
     1028This warping must use a locally-linear astrometric solution.
     1029
     1030The output image must maintain photometric consistency with the input
     1031image to within 0.2\%.  \tbd{interpolation method?}
    10031032
    10041033\paragraph{Flux matching}
    10051034
    1006 The multiple input images must have their object fluxes intercompared
    1007 using the stars measured in Phase 2 in order to determine the
    1008 appropriate photometry scaling factors needed to properly combine them
    1009 photometrically.
     1035The Phase 4 analysis must determine appropriate photometry scaling
     1036factors needed to combine the images photometrically.
    10101037
    10111038\paragraph{Image outlier pixel rejection}
    10121039
    1013 Pixels from the group of images which are inconsistent with the
    1014 ensemble of pixel values must be identified and flagged.  The
    1015 resulting collection of pixels must be used to construct a single
    1016 output image, cleaned of the outliers.  This outlier rejection must be
    1017 performed optionally since moving objects will be rejected in images
    1018 obtained over a wide range of times.
     1040Pixels from the group of images which are inconsistent \tbd{how much?}
     1041with the ensemble of pixel values must be identified and flagged.
     1042
     1043This outlier rejection must be performed optionally.
     1044
     1045\paragraph{Initial cleaned image}
     1046
     1047The resulting collection of pixels must be used to construct a single
     1048output image, cleaned of the outliers.
    10191049
    10201050\paragraph{PSF matching}
    10211051
    1022 The multiple input images must have their PSF mutually matched to
    1023 allow for proper image subtraction.
     1052The cleaned, combined image must be PSF matched with the static sky image.
    10241053
    10251054\paragraph{Image Subtraction}
    10261055
    10271056The static sky image must be subtracted from the stacked, cleaned
    1028 image.  All objects in the difference image must be detected and the
    1029 pixels belonging to variable sources flagged in the input image.
    1030 Object detection at this stage is the same as that used for Phase 2.
     1057image. 
     1058
     1059\paragraph{Find objects in the image}
     1060
     1061The Phase 4 analysis must perform object detection on the difference
     1062images.
     1063
     1064All objects in the difference image must be detected and the pixels
     1065belonging to variable sources flagged in the input image. 
     1066
     1067The object detection must detect all objects above a user-configured
     1068threshold. \tbd{valid range for the threshold?}  The detection
     1069threshold must be a function of the average background flux or the
     1070image noise map.
     1071
     1072The object detection must measure the following object parameters:
     1073\begin{enumerate}
     1074\item object centroid and position errors
     1075\item instrumental PSF magnitude and error
     1076\item local background level and error
     1077\item streak L, $\phi$, $\sigma_L$, $\sigma_\phi$
     1078\item second moments ($\sigma_{\rm min}, \sigma_{maj}$) and their covarience matrix
     1079\end{enumerate}
     1080
     1081Minimal object classification must be performed to distinguish objects
     1082which are consistent with a single PSF, objects which are
     1083inconsistent, and objects which are saturated. 
     1084
     1085The resulting collection of detected objects must be saved along with
     1086the relevant image metadata (\ie filter, exposure time, etc).
    10311087
    10321088\paragraph{Cleaned Input Image}
    10331089
    1034 The flagged pixels must be excluded from the input images and a new,
    1035 cleaned image constructed.  This image must have object detection
    1036 applied to it.  \tbd{parameters}
     1090The pixels flagged as being from the difference image sources must be
     1091masked in the input images. 
     1092
     1093A new, cleaned image must be constructed from the masked input images.
     1094
     1095\paragraph{Find objects in the image}
     1096
     1097The Phase 4 analysis must perform object detection on the cleaned,
     1098summed image.
     1099
     1100The object detection must detect all objects above a user-configured
     1101threshold. \tbd{valid range for the threshold?}  The detection
     1102threshold must be a function of the average background flux or the
     1103image noise map.
     1104
     1105The object detection must measure the following object parameters:
     1106\begin{enumerate}
     1107\item object centroid and position errors
     1108\item an extended object position ($x_g, y_g$)
     1109\item instrumental PSF magnitude and error
     1110\item local background level and error
     1111\item second moments ($\sigma_{\rm min}, \sigma_{maj}$) and their
     1112  covarience matrix
     1113\item the Petrosian radius, magnitude, axis ratio, and angle
     1114\item the S\'ersic radius, magnitude, axis ratio, angle, and parameter $\nu$.
     1115\end{enumerate}
     1116
     1117Minimal object classification must be performed to distinguish objects
     1118which are consistent with a single PSF, objects which are
     1119inconsistent, and objects which are saturated. 
     1120
     1121The resulting collection of detected objects must be saved along with
     1122the relevant image metadata (\ie filter, exposure time, etc).
    10371123
    10381124\paragraph{Update static sky}
     
    10401126The final, cleaned input image must be added to the static sky so that
    10411127an incrementally-deeper static sky image may be made.
     1128
    10421129\tbd{parameters, weight map}
    1043 
    1044 \paragraph{Products}
    1045 
    1046 Phase 4 must produce the following data products at a minimum:
    1047 \begin{enumerate}
    1048 \item Subtracted image --- the combined image using each of the
    1049 telescopes, with the static sky subtracted;
    1050 \item New static sky image --- the combined image using each of the
    1051 telescopes, with the (old) static sky added;
    1052 \item Metadata about the quality of each of these images; and
    1053 \item A catalog of variable sources.
    1054 \item A catalog of sources from the combined image.
    1055 \end{enumerate}
    10561130
    10571131\paragraph{Timing}
     
    10831157\paragraph{Robustness}
    10841158
     1159\tbd{what are the corresponding requirements?}
     1160
    10851161It is essential that the static sky image (which may have been
    10861162painstakingly accumulated over many months) not be corrupted by adding
     
    10911167\label{mkcal}
    10921168
    1093 The Calibration analysis stages may be performed on whatever
    1094 timescales are appropriate and necessary to maintain the quality and
    1095 relevance of the calibration images.  We distinguish two major classes
    1096 of calibration images which require significantly different techniques
    1097 for their construction.  We list the specific calibration images which
    1098 must be constructed in the calibration analysis stages. The
    1099 requirements for each of these stages are discussed in more detail
    1100 below.
    1101 
    1102 \subsubsection{Basic Calibration Stages}
    1103 
    1104 The IPP must generate basic calibration images using the raw bias,
    1105 dark, and flat-field (dome or twilight) images obtained by the
    1106 telescope as the input.  The analysis of these images requires
    1107 relatively simple stacking of the input set of images.  Outlier
    1108 rejection, both of complete input images as well as pixels within the
    1109 input stack, must be performed.  In addition, each type of image
    1110 requires an appropriate normalization which may depend on the data
    1111 levels in other detectors in the input set.  Each of these calibration
    1112 stages must be able to determine from the input stack if the relevant
    1113 calibration image needs to be updated and perform an initial test to
    1114 see which input images are consistent and valid.
     1169The Calibration analysis stages must construct the various types of
     1170calibration frames needed by the IPP.  The requirements for each of
     1171these stages are discussed in detail below.
    11151172
    11161173\paragraph{bias images}
    11171174
    1118 Bias images may be needed to correct for structure in the bias.  The
    1119 IPP must have the capability of constructing a master bias image from
    1120 a stack of raw bias frames.  The input bias images, representing
    1121 offsets from the overscan level, must have the overscan removed,
    1122 including 1D structure if needed.  The bias construction must
    1123 incorporate outlier image and outlier pixel rejection.  The statistic
    1124 used to determine pixel values must optionally be derived from the
    1125 sample mean, median, and mode, robust mean, median, and mode, and the
    1126 clipped mean and median.  Residual images, in which the master bias is
    1127 applied to the input images must be constructed and their statistics
    1128 used to exclude any significant outlier input images.
     1175The \code{bias} calibration stage must construct a master bias image
     1176from a collection of raw bias images.
     1177
     1178The \code{bias} calibration stage must correct the input images based
     1179on the overscan region.
     1180
     1181The \code{bias} calibration stage must combine the input images using
     1182the statistic specified by the user, selected from one of the
     1183following: sample mean, median, and mode, robust mean, median, and
     1184mode, and the clipped mean and median.
     1185
     1186The \code{bias} calibration stage must construct residual images, in
     1187which the master bias is applied to the input images.
    11291188
    11301189\paragraph{dark images}
    11311190
    1132 Dark images may be needed to correct for structure in the dark
    1133 current.  The IPP must have the capability of constructing a master
    1134 dark image from a stack of raw dark frames.  The input dark images
    1135 must first be corrected for the bias using whatever method is
    1136 appropriate for the science images.  The master dark frame must be
    1137 specified for a particular exposure time.  As such, the input dark
    1138 frames must have a limited range of exposure times.  The dark frame
    1139 construction must incorporate outlier image and outlier pixel
    1140 rejection.  The statistic used to determine pixel values must
    1141 optionally be derived from the sample mean, median, and mode, robust
    1142 mean, median, and mode, and the clipped mean and median.  Residual
    1143 images, in which the master dark image is applied to the input images
    1144 must be constructed and their statistics used to exclude any
    1145 significant outlier input images.  \tbd{The dark frames must be
    1146 examined to determine the non-linearity of the measured dark current
    1147 -- by what component?}.
     1191The \code{dark} calibration stage must construct a master dark image
     1192from a collection of raw dark images.
     1193
     1194The \code{dark} calibration stage must raise an error if the input
     1195images have exposure time which deviate by more than \tbr{2\%}.
     1196
     1197The \code{dark} calibration stage must correct the input dark images
     1198for the bias.
     1199
     1200The \code{dark} calibration stage must combine the input images using
     1201the statistic specified by the user, selected from one of the
     1202following: sample mean, median, and mode, robust mean, median, and
     1203mode, and the clipped mean and median.
     1204
     1205The \code{dark} calibration stage must construct residual images, in
     1206which the master dark is applied to the input images.
    11481207
    11491208\paragraph{flat-field images}
    11501209
    1151 Master flat-field images must be constructed from a collection of
    1152 input flat-field images.  An appropriate set of input images must be
    1153 selected on the basis of their flux levels, time of observations, and
    1154 the observing conditions.  The input flat-field images must be
    1155 processed (bias and dark corrected if needed) and the resulting images
    1156 stacked.  The master flat-field construction must incorporate image
    1157 and pixel outlier rejection.  The statistic used to determine pixel
    1158 values must optionally be derived from the sample mean, median, and
    1159 mode, robust mean, median, and mode, and the clipped mean and median.
    1160 Residual images, in which the master flat-field image is applied to
    1161 the input images must be constructed and their statistics used to
    1162 exclude any significant outlier input images. 
    1163 
    1164 \subsubsection{Other Calibration Stages}
     1210The \code{flat-field} calibration stage must construct a master
     1211flat-field image from a collection of raw flat-field images. 
     1212
     1213The \code{flat-field} calibration stage must accept a group of images
     1214from one of the following flat-field sources: dome, twilight,
     1215night-sky.
     1216
     1217The \code{flat-field} calibration stage must raise an error if the
     1218input images in a single stack used more than one of the above
     1219flat-field sources or multiple filters.
     1220
     1221The \code{flat-field} calibration stage must correct the input
     1222flat-field images for the bias and dark.
     1223
     1224The \code{flat-field} calibration stage must combine the input images
     1225using the statistic specified by the user, selected from one of the
     1226following: sample mean, median, and mode, robust mean, median, and
     1227mode, and the clipped mean and median.
     1228
     1229The \code{flat-field} calibration stage must construct residual
     1230images, in which the master flat-field is applied to the input images.
    11651231
    11661232\paragraph{mask images}
    11671233
    1168 Initial bad-pixel mask images must be generated on the basis of
    1169 comparison between raw flat-field images and a cleaned, stacked
    1170 master.  The mask creation analysis stage must accept a collection of
    1171 flat-field images and identify pixels which are repeatedly
    1172 inconsistent from image to image.  If too many pixels are
    1173 inconsistent, an error must be raised.
     1234The \code{mask} calibration stage must construct a bad-pixel mask from
     1235a stack of raw flat-field images and a master flat-field image.
     1236
     1237The \code{mask} calibration stage must mask the pixels which are
     1238inconsistent in the input flats by more than \tbr{1\%}, given
     1239sufficient signal-to-noise in the input flats.
     1240
     1241The \code{mask} calibration stage must mask the pixels which are
     1242consistently low or high in the input flats by more than a factor of
     1243\tbr{3} beyond the typical pixel.
     1244
     1245The \code{mask} calibration stage must mask the pixels identified in a
     1246table of bad pixels generated externally to the calibration stage.
     1247
     1248The \code{mask} calibration stage must use multiple bit values to
     1249identify the different types of masked pixels.
     1250
     1251The \code{mask} calibration stage must raise an error if the input
     1252images generate too many bad pixels in the mask.
    11741253
    11751254\paragraph{fringe frames}
    11761255
    1177 Fringe-correction frames must be generated to remove the fringe
    1178 pattern caused by thin-film interference in the top layers of CCDs,
    1179 particularly in the redder passbands.  Fringe correction frames must
    1180 be constructed on the basis of observations of the night-sky in the
    1181 appropriate filters.  The images must first be flattened to remove the
    1182 pixel-to-pixel sensitivity variations of the detector.  The
    1183 combination of multiple input fringe frames may not be simply stacked
    1184 since the amplitude of the fringe pattern varies independently of
    1185 other variations in the image.  The amplitude of the fringe frames
    1186 must be measured and the images scaled to normalize the fringe
    1187 amplitude to the range -1 to +1 before combining with one of the
    1188 standard combination statistics (mean, median, mode, etc).
     1256The \code{fringe} calibration stage must construct a master fringe
     1257frame from a stack of raw night-time sky images or from a stack of
     1258dome fringe frames.
     1259
     1260The \code{fringe} calibration stage must raise an error if the input
     1261stack consists is images generated with more than one type of fringe
     1262source or with multiple filters.
     1263
     1264The \code{fringe} calibration stage must flatten the input images
     1265to remove the pixel-to-pixel sensitivity variations of the detector.
     1266
     1267The \code{fringe} calibration stage must measure the fringe amplitude
     1268on the input fringe images.
     1269
     1270The \code{fringe} calibration stage must scale the input fringe images
     1271based on the fringe amplitude.
     1272
     1273The \code{fringe} calibration stage must combine the scaled input
     1274images using the statistic specified by the user, selected from one of
     1275the following: sample mean, median, and mode, robust mean, median, and
     1276mode, and the clipped mean and median.
     1277
     1278The \code{fringe} calibration stage must construct residual images, in
     1279which the master fringe image is applied to the input images, along
     1280with all necessary preceeding calibration images.
     1281
     1282The \code{fringe} calibration stage must measure the residual fringe
     1283amplitude on the residual images.
    11891284
    11901285\paragraph{low-k sky models}
    11911286
    1192 Large-scale background structure in images which is not caused by
    1193 thin-film interference must also be detected and corrected.  Models of
    1194 this background structure may be the necessary input to the correction
    1195 proceedure.  The IPP must have the capability of generating image
    1196 models of the large-scale structure patterns observed with the
    1197 telescope.  \tbd{discuss principal components, SVD?}
     1287The \code{sky model} calibration stage must construct a sky model
     1288image from a stack of raw night-time sky images.
    11981289
    11991290\paragraph{Flat-field correction frame}
    12001291
    1201 Flat-field images, whether constructed from the dome, twilight, or
    1202 night-sky images, rarely will perfectly correct the detector response
    1203 in a consistent fashion across the full field of the camera.  The IPP
    1204 must have the capability of generating flat-field photometric
    1205 correction frames on the basis of the measured photometry of objects
    1206 which are placed at a variety of locations on the detector in a
    1207 sequence of images.
     1292The \code{flat-field correction} calibration stage must construct a
     1293flat-field correction image from dithered observations of a stellar
     1294field.
     1295
     1296The \code{flat-field correction} calibration stage must construct a
     1297flat-field correction image for each filter and camera independently.
     1298
     1299The \code{flat-field correction} calibration stage must construct a
     1300correction image which makes the photometry of multiple observations
     1301of the same stellar source consistent at different locations in the
     1302focal plane.
     1303
     1304The \code{flat-field correction} calibration stage must construct
     1305corrected flat-field images using the measured correction.
     1306
     1307The \code{flat-field correction} calibration stage must determine the
     1308consistency of the corrected flat-field images using the dithered
     1309stellar field observations flattened with the corrected flat-field
     1310image..
    12081311
    12091312\paragraph{Non-linearity correction frames}
    12101313
    1211 The IPP must have the capability of constructing non-linear correction
    1212 frames.  These frames are constructed from exposures of a uniform
    1213 source with a range of exposure times.  The non-linearity correction
    1214 frames provide polynomial correction coefficients as a function of
    1215 pixel to convert the observed pixel counts to the expected pixel count
    1216 from a linear detector. 
     1314The \code{non-linear correction} calibration stage must construct a
     1315non-linear correction from a collection of images of a constant source
     1316with varying exposure times.
     1317
     1318The \code{non-linear correction} calibration stage must construct a
     1319non-linear correction which linearizes the detector fluxes $<0.5\%$.
     1320
     1321The \code{non-linear correction} calibration stage must determine the
     1322saturation regime, in which the non-linear correction is no longer
     1323consistent to $<0.5\%$.
    12171324
    12181325\subsubsection{Reference Catalog Creation}
    12191326
    1220 For PS-1, one of the primary goals is the creation of photometric and astrometric
    1221 reference catalogs for the general community and for the future
    1222 Pan-STARRS requirements.  The generation of these catalogs is
     1327For PS-1, one of the primary goals is the creation of photometric and
     1328astrometric reference catalogs for the general community and for the
     1329future Pan-STARRS calibration.  The generation of these catalogs is
    12231330inherently a research project, and will require human control and
    12241331intervention.  The IPP will be required to provide the data access,
     
    12291336\subsubsection{Astrometry Reference Creation}
    12301337
    1231 The existing astrometric reference catalogs are known to have
    1232 limitations at the level of \tbd{NN} milli-arcsec.  The internal
    1233 accuracy of the Pan-STARRS dataset can potentially be much higher than
    1234 the external reference catalogs.  The IPP must have the capability of
    1235 generating an astrometric reference on the basis of the observations
    1236 obtained by the PnA survey.  The IPP must provide the analysis tools
    1237 needed to generate the master astometric reference catalog.  Much of
    1238 the required functionality is covered by the PnA Database.
    1239 
    1240 The necessary ingredients for the construction of the PS-1 Astrometric
    1241 Reference Catalog are: the observed coordinates of stars and the
    1242 existing astrometric reference catalogs.  A variety of reference
    1243 catalogs will be required, including:
    1244 \begin{itemize}
    1245 \item Hipparcos
    1246 \item Tycho2
    1247 \item UCAC
    1248 \item YBx
    1249 \item USNO-Bx
    1250 \item 2MASS
    1251 \end{itemize}
    1252 These catalog must be available and accessible to the PnA Database.
    1253 It is necessary to have the tools to convert the reference catalog
    1254 object coordinates to all of the possible coordinate frame of
    1255 relevance in the telescope and camera system, including:
     1338\begin{table}
     1339\begin{center}
     1340\caption{Astrometric Reference Catalogs\label{AstroRefs}}
     1341\begin{tabular}{lrrr}
     1342\hline
     1343\hline
     1344Name       & scatter & depth & filters \\
     1345           & arcsec  & mag   &         \\
     1346\hline
     1347Hipparcos  & & & \\
     1348Tycho2     & & & \\
     1349UCAC       & & & \\
     1350YBx        & & & \\
     1351USNO-Bx    & & & \\
     13522MASS      & & & \\
     1353\hline
     1354\end{tabular}
     1355\end{center}
     1356\end{table}
     1357
     1358The IPP must have the capability of generating an astrometric
     1359reference on the basis of the observations obtained by the AP survey.
     1360The IPP must provide the analysis tools needed to generate the master
     1361astometric reference catalog.  Much of the required functionality is
     1362covered by the AP Database.
     1363
     1364The Astrometry Reference creation tools must return the match between
     1365stars observed with Pan-STARRS and any of several astrometric
     1366reference catalogs listed in Table~\ref{AstroRefs}.
     1367
     1368The tools must convert the reference catalog object coordinates to all
     1369of the coordinate frames of relevance in the telescope and camera
     1370system:
    12561371\begin{itemize}
    12571372\item Catalog to mean positions
     
    12621377\end{itemize}
    12631378
    1264 In addition to the reference catalogs, it will be necessary to
    1265 determine and have available for the analysis system a variety of
    1266 approximate calibration data, including the telescope and camera
    1267 optical distortion models and the variation of the image PSF across
    1268 the camera field, as a function of color.
    1269 
    1270 The final ingredient in the astrometry solution is the observation of
    1271 stars with the PS-1 telescope.  The object detections are produced by
    1272 several of the analysis stages discussed in the Science Analysis
    1273 section.  The likely measurement of relevance to the astrometric
    1274 reference catalog is the object extraction for the individual,
    1275 detrended images (section~\ref{foo}).  \tbd{is it necessary to have
    1276   multiple centroiding methods available?}.  The detected objects must
    1277 be matched against the reference catalogs, and it must be possible to
    1278 determine fit coefficients as a function of simply position, or with
    1279 combinations of magnitude or color.  The fitting method must include
    1280 robust outlier rejection.  It is also necessary to have information
    1281 about the objects which are detected in the catalog, but not the
    1282 science image or vice-versa, as well as an assessment of the
    1283 centroiding errors for each object.  It must be possible to plot the
    1284 fit residuals against a wide variety of parameters, including the
    1285 object positions, magnitudes, colors, etc, and to make subset
    1286 selections of the objects on the basis of these parameters.  . 
    1287 
    1288 An alternative measurement of the stellar positions is derived from
    1289 the guide stars, which are much brighter than the typical saturated
    1290 stars.  It must be possible to compare the coordinates of the guide
    1291 stars with the coordinates of the other stars in the image.  It must
    1292 also be possible to perform the various fitting steps for the guide
    1293 stars rather than for the normal image data.
     1379The tools must provide the necessary calibration data: the telescope
     1380and camera optical distortion models and the variation of the image
     1381PSF across the camera field, as a function of color.
     1382
     1383The tools must fit the observed stellar coordinates to the astrometric
     1384reference catalog coordinates to determine improved astrometric
     1385solutions for both the stars and the detectors. 
     1386
     1387The tools must determine improved telescope optical distortion models
     1388based on the astrometric solutions.
     1389
     1390The tools must optionally determine the fit coefficients as a function
     1391of position along, or with combinations of magnitude or color. 
     1392
     1393The fitting method must include robust outlier rejection. 
     1394
     1395The tools must identify objects which are detected in the catalog, but
     1396not the science image or vice-versa.
     1397
     1398The tools must determine average centroiding errors for each object.
     1399
     1400The tools must plot the fit residuals against a wide variety of
     1401parameters: the object positions, magnitudes, colors, etc.
     1402
     1403The tools must allow the fit to exclude subsets of objects from the
     1404fits on the basis of these parameters.  .
     1405
     1406The tools must provide coordinates of the guide stars in the same frame
     1407of reference as the normal image data.
     1408
     1409The tools must perform the various fitting steps for the guide stars
     1410rather than for the normal image data.
    12941411
    12951412\subsubsection{Photometry Reference Creation}
    12961413
    1297 The IPP must provide the analysis tools needed to generate a master
    1298 photometric reference catalog.  The tools needed for generation of the
    1299 photometric reference catalogs are similar in essence to those used
    1300 for the astrometric reference catalog.  It is necessary to confront
    1301 the observed objects against the existing reference catalogs to
    1302 determine the necessary calibrations.  Again, much of the required
    1303 functionality is covered by the PnA Database. 
    1304 
    1305 The necessary ingredients for the construction of the PS-1 Photometric
    1306 Reference Catalog are: the observed magnitudes of stars and the
    1307 existing photometric reference catalogs.  A variety of reference
    1308 catalogs will be required, including:
    1309 \begin{itemize}
    1310 \item SDSS
    1311 \item CFHT-LS standards
    1312 \item Landolt
    1313 \item etc
    1314 \end{itemize}
    1315 These catalog must be available and accessible to the PnA Database.
    1316 
    1317 The final ingredient in the photometry solution is the observation of
    1318 stars with the PS-1 telescope.  The object detections are produced by
    1319 several of the analysis stages discussed in the Science Analysis
    1320 section.  The likely measurement of relevance to the photometric
    1321 reference catalog is the object extraction for the individual,
    1322 detrended images (section~\ref{foo}).  It is necessary to have the
    1323 tools to convert between different photometric systems, including:
     1414\begin{table}
     1415\begin{center}
     1416\caption{Photometric Reference Catalogs\label{PhotoRefs}}
     1417\begin{tabular}{lrrr}
     1418\hline
     1419\hline
     1420Name       & scatter & depth & filters \\
     1421           & mmag    & mag   &         \\
     1422\hline
     1423SDSS       & & & \\
     1424CFHT-LS    & & & \\
     1425Landolt    & & & \\
     1426\hline
     1427\end{tabular}
     1428\end{center}
     1429\end{table}
     1430
     1431The IPP must have the capability of generating a photometric reference
     1432on the basis of the observations obtained by the AP survey.  The IPP
     1433must provide the analysis tools needed to generate a master
     1434photometric reference catalog.  Much of the required functionality is
     1435covered by the AP Database.
     1436
     1437The Photometry Reference creation tools must return the match between
     1438stars observed with Pan-STARRS and any of several photometric
     1439reference catalogs listed in Table~\ref{PhotoRefs}.
     1440
     1441The tools must convert between different photometric systems, including:
    13241442\begin{itemize}
    13251443\item instrumental to nominal detector magnitude
     
    13271445\item average filter system to reference photometry system
    13281446\end{itemize}
    1329 These transformations are based on a set of measured coefficients for
    1330 the color and airmass dependency of the measurement.  In addition to
    1331 these types of transformations, it is necessary to have the ability to
    1332 measure and apply relative photometry corrections. 
    1333 
    1334 The detected objects must be matched against the reference catalogs,
    1335 and it must be possible to determine fit coefficients as a function of
    1336 airmass, magnitude, color and detector coordinates, or with
    1337 combinations of the above.  The fitting method must include robust
    1338 outlier rejection.  It is also necessary to perform exclusions on the
    1339 basis of object locations, instrumental magnitudes, observed and
    1340 reference errors, and in particular time of the observations. It must
    1341 be possible to plot the fit residuals against a wide variety of
    1342 parameters, including the object positions, magnitudes, colors, etc,
    1343 and to make subset selections of the objects on the basis of these
    1344 parameters.  .
    1345 
    1346 An alternative measurement of the stellar positions is derived from
    1347 the guide stars, which are much brighter than the typical saturated
    1348 stars.  It must be possible to relate the magnitudes of the guide
    1349 stars with the magnitudes of the other stars in the image.  It must
    1350 also be possible to perform the above fitting steps for the guide
    1351 stars rather than for the normal image data.
     1447
     1448These transformations must account for color and airmass terms. 
     1449
     1450The tools must measure and apply relative photometry corrections
     1451between images.
     1452
     1453The tools must determine photometric transformation fit coefficients
     1454as a function of airmass, magnitude, color and detector coordinates,
     1455or with combinations of the above.
     1456
     1457The fitting method must include robust outlier rejection.
     1458
     1459The tools must reject specific objects from the fit on the basis of
     1460object locations, instrumental magnitudes, observed and reference
     1461errors, and in particular time of the observations.
     1462
     1463The tools must plot the fit residuals against a wide variety of
     1464parameters, including the object positions, magnitudes, colors, etc.
     1465
     1466The tools must provide photometry from the guide stars in the same
     1467system as observations of stars from the normal imaging data.
     1468
     1469The tools must perform the above fitting steps for the guide stars
     1470rather than for the normal image data.
    13521471
    13531472\subsection{Modules}
     
    13891508\subsubsection{Image Formats}
    13901509
    1391 FITS images
     1510Certain IPP programs must be able to read and write standard FITS images.
     1511
     1512Certain IPP programs must be able to read and write files in modified
     1513FITS format with Pan-STARRS definitions for non-square pixel arrays.
    13921514
    13931515\subsubsection{Table Formats}
    13941516
    1395 FITS tables
     1517Certain IPP programs must be able to read and write FITS tables.
    13961518
    13971519\subsubsection{Other Data Formats}
    13981520
    1399 XML files
     1521Certain IPP program must be able to read and write XML files.
    14001522
    14011523\subsubsection{External Catalogs}
     1524
     1525The IPP AP Database must be able to interact with the following
     1526externally provided reference catalogs:
    14021527
    14031528\begin{itemize}
     
    14141539\subsubsection{Analysis Reference Data}
    14151540
     1541The IPP must store reference data describing the following entities:
     1542
    14161543\begin{itemize}
    14171544\item Telescopes
     
    14201547\item Filters
    14211548\item software basic parameters
     1549\item computer configuration
    14221550\end{itemize}
    14231551
    1424 \subsubsection{Installation Reference Data}
    1425 
    1426 \begin{itemize}
    1427 \item computers
    1428 \end{itemize}
    1429 
    14301552\subsection{External Interfaces}
    14311553
     
    14371559
    14381560\subsubsection{Overview}
     1561
     1562\tbd{this section should be parred down a bit by referring more to the
     1563  hardware report}.
    14391564
    14401565This section discusses the Pan-STARRS Image Processing Pipeline (IPP)
     
    14501575\end{itemize}
    14511576
    1452 Even without the complete IPP design, it is possible to identify the
    1453 major drivers on the hardware requirements.  The total disk volume
    1454 requirements are dominated by the need to store raw images for a
    1455 certain period, the need to store calibration images for a longer
    1456 period, and the need to store the static sky images.  Of the various
    1457 analysis stages, Phase 2 and Phase 4 present the most significant
    1458 demands in terms of data I/O throughput on the network.  Phase 2 and
    1459 Phase 4 also present the most significant CPU demands.  In this
    1460 discusion, Phase 2 refers to the per-OTA image pre-processing in which
    1461 the instrumental signature is removed and a first pass object
    1462 detection is performed.  Phase 4 refers to the multiple OTA
    1463 combination in which the pre-processed images are merged and combined,
    1464 in both addition and subtraction, with the static sky image, and up to
    1465 three object detection passes are performed.
    1466 
    1467 This document does not address the hardware requirements implied by
    1468 Phase 1 or 3, nor the load required by the calibration or reference
    1469 catalog creation stages.  In the first instance, the operations are
    1470 only performed on the metadata and are extremely minimal both in terms
    1471 of data I/O and computation requirements.  In the second case, the
    1472 processing is less time critical than the per-image processing and is
    1473 performed only infrequently (once per night to once per week, month or
    1474 year).  \tbd{The software implementation for metadata storage (RDBMS,
    1475 FITS tables, etc) will have a very large impact and will be evaluated
    1476 along with the needed hardware at a later date.}
    1477 
    1478 We will address the various hardware requirements by referring to an
    1479 assumed data processing and data organization scenario.  The
     1577We will address the various hardware requirements by referring to the
     1578assumed data processing and data organization scenarios discussed in
     1579the document \tbd{Pan-STARRS IPP Hardware Report, PSDC-4xx-xx}.  The
    14801580organization of the data and certain aspects of the data processing
    1481 scheme have very large implications for the hardware requirements.  In
    1482 this analysis, we assume that data types are chosen to minimize the
    1483 data volume and that the data is organized to minimize the I/O
    1484 bandwidth needs, as defined below.  We address the data requirements
     1581scheme have very large implications for the hardware requirements.  We
     1582use the values from that report representing the minimum data volume
     1583and the optimum data organization.  We address the data requirements
    14851584of the single-telescope Pan-STARRS-1 scenario based on the Design
    14861585Reference Mission \tbd{REF}.
    1487 
    1488 \subsubsection{Data Organization}
    1489 
    1490 The IPP hardware system must provide both data storage and
    1491 computational resources.  The IPP requires relativley large amounts of
    1492 data storage space, primarily for the image data.  Image data is
    1493 organized in two categories.  First, there is the per-OTA data -- data
    1494 associated with specific OTAs, including the raw images, the
    1495 calibration images, and temporary processed images at various stages.
    1496 Second, there is the data associated with the static sky imagery,
    1497 which is in turn organized into smaller sky-cell units.  The first
    1498 assumption we make is that the hardware is organized into nodes which
    1499 provide both data storage and computational resources.  The second
    1500 assumption we make is that the data storage nodes are divided into two
    1501 classes: those which deal with the per-OTA data and those that provide
    1502 the static sky storage.  In addition, we assume that the computational
    1503 tasks related to Phase 2 take place on the per-OTA storage nodes and
    1504 the Phase 4 computation takes place on the static sky storage nodes.
    1505 
    1506 Figure~\ref{hardware} shows our basic concept for the hardware
    1507 organization for the IPP.  This diagram shows the two types of compute
    1508 nodes: OTA-level processing and storage nodes (dominated by Phase 2)
    1509 and static sky processing and storage nodes (mostly Phase 4).  Also
    1510 shown are two switches used in this configuration; although it is
    1511 currently possible to buy a single switch with sufficient number of
    1512 ports, this organization represents a minimal configuration for the
    1513 PS-1 IPP hardware.  In such a case, the interswitch communication must
    1514 also meet the required throughput needs.  We discuss the hardware
    1515 requirements in the assumption that such an organization will be
    1516 necessary.
    1517 
    1518 The way in which the images are distributed among the storage and
    1519 compute nodes will largely determine the I/O bandwidth requirements.
    1520 For data bandwidth requirements calculations, it is necessary to make
    1521 some assumptions about the data organization.  We make the assumption
    1522 that the OTA data is optimally distributed to the OTA nodes such that
    1523 the OTA processing is always on a machine with local OTA data.  This
    1524 implies that all OTA data from a specific OTA are targetted to a
    1525 specific machine.  (see below for discussion of data duplication).
    1526 
    1527 A second factor which will have a significant impact on the I/O
    1528 requirements is the image storage format for the processed and
    1529 calibration images.  We have two basic choices: 32 bit floating point
    1530 format or 16 bit integer format with appropriate scaling.  In the
    1531 former case, additional dynamic range is retained, while in the latter
    1532 case, we reduce the data volume by a factor of 2.  Since the science
    1533 requirements for PS-1 do not specify a need for dynamic range greater
    1534 than 16 bits, we assume all images are stored as 16 bit data.
    1535 
    1536 A third determining factor is the number of calibration images needed
    1537 by the processing system.  Since the complete analysis is not yet
    1538 defined, this number is difficult to ascertain.  However, we can make
    1539 a reasonable guess at the total number for scaling purposes.  We
    1540 assume that each frame requires a total of 4 calibration frames on
    1541 average
    15421586
    15431587\begin{table}[b]
    15441588\begin{center}
    15451589\caption{Data Storage Requirements \label{storage}}
    1546 \begin{tabular}{lrrrr}
     1590\begin{tabular}{lr}
    15471591\hline
    15481592\hline
     
    15811625governed by the number of nights' worth of data we are required to
    15821626keep online.  \tbd{for the first year, we are required to keep all
    1583 images from the PnA and IPV surveys.  This amounts to a total of 200
     1627images from the AP and IPV surveys.  This amounts to a total of 200
    15841628TB of data}.
    15851629
     
    17101754\begin{center}
    17111755\caption{Data I/O (MB per OTA or Sky-cell) \label{scenarios}}
    1712 \begin{tabular}{lrrrr}
     1756\begin{tabular}{lr}
    17131757\hline
    17141758\hline
     
    17401784output:        &                            96 MB  \\
    17411785\hline
    1742 \multicolumn{5}{l}{\em Bold-faced entries are access to local-disk} \\
    1743 \multicolumn{5}{l}{\em parenthesised disk I/O numbers are parallel with the network I/O} \\
     1786\multicolumn{2}{l}{\em Bold-faced entries are access to local-disk} \\
     1787\multicolumn{2}{l}{\em parenthesised disk I/O numbers are parallel with the network I/O} \\
    17441788\end{tabular}
    17451789\end{center}
     
    18161860\begin{center}
    18171861\caption{Data Throughput \label{throughput}}
    1818 \begin{tabular}{lrrrr}
     1862\begin{tabular}{lr}
    18191863\hline
    18201864\hline
     
    18481892summit-to-Phase 2 switch load is 70 MB/s.
    18491893
    1850 \begin{table}
    1851 \begin{center}
    1852 \caption{Hardware Throughput Tests \label{existing-hardware}}
    1853 \begin{tabular}{lrrrr}
    1854 \hline
    1855 \hline
    1856 Test        & where \& when     & model                & result                             \\
    1857 \hline
    1858 node I/O    & CFHT 11/2002      & Intel 1000 Gigabit   & 35 - 40 MB/s sustained             \\
    1859 node I/O    & CFHT 2/2004       & Intel 1000 Gigabit   & 65 - 70 MB/s sustained             \\
    1860 RAID write  & CFHT 2/2004       & 3ware RAID cntl + IDE & 110 MB/s sustained                 \\
    1861 Switch Load & VeriTest          & Cisco                & 3 GB/s (for 32 ports)              \\
    1862 \hline
    1863 \end{tabular}
    1864 \end{center}
    1865 \end{table}
    1866 
    1867 \subsubsection{Existing Hardware Throughput}
    1868 
    1869 We have collected a few representative tests of various pieces of
    1870 modern hardware to give a reference for the throughput capabilities.
    1871 A number of hardware configurations have been tested at CFHT for the
    1872 Elixir project, and we include here their recent reported hardware
    1873 RAID-5 I/O speeds and GigE card speeds.  We also have included data
    1874 from VeriTest studies of Cisco switch throughput, commissioned by
    1875 Cisco for a 32 port GigE switch.  These tests are summarized in
    1876 Table~\ref{existing-hardware}.
    1877 
    18781894%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    18791895
     
    19251941\bibliography{panstarrs}
    19261942\end{document}
    1927 
    1928 Requirements Trace Matrix
    1929 
    1930 active state \ref{req:active-state}
    1931 paused state \ref{req:paused-state}
    1932 interactive state \ref{req:interactive-state}
    1933 
    1934 system capabilities
    1935 
    1936 C for source code \ref{req:languages}
    1937 Python for scripts \ref{req:languages}
    1938 
    1939 SWIG interfaces
    1940 C APIs
    1941 
    1942 POSIX
    1943 Pan-STARRS Coding Standard
    1944 
    1945 Naming Conventions
    1946 
Note: See TracChangeset for help on using the changeset viewer.