IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28065


Ignore:
Timestamp:
May 21, 2010, 11:51:17 AM (16 years ago)
Author:
bills
Message:

Version 1 of postage stamp ICD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/stamps/stampsICD.tex

    r27212 r28065  
    99\project{Pan-STARRS IPP}
    1010\organization{Institute for Astronomy}
    11 \version{DR}
    12 \docnumber{PSDC-940-xxx}
     11\version{1.0}
     12\docnumber{PSDC-940-011-00}
    1313
    1414\newcommand\ugriz{$u^\prime g^\prime r^\prime i^\prime z^\prime$}
     
    4949Each row in a request table contains a postage stamp request specification.
    5050Each request specification causes zero or more postage stamp jobs to be processed.
    51 An image is added to the output file set for each successful job.
     51Images are added to the output file set for each successful job.
    5252
    5353The request specification give the parameters that the PSS uses to determine the images of interest
     
    125125
    126126\subsubsection{Image Types}
    127 All requests need IMG\_TYPE. This parameter selects the stage in the processing pipeline
     127All requests need IMG\_TYPE. This parameter selects the stage of the processing pipeline
    128128for the images of interest.
    129129The allowed values for IMG\_TYPE are raw, chip, warp, diff, and stack.
     
    139139IMG\_TYPE that contain the center.
    140140The set of images of interest may be limited by specifying certain criteria as described
    141 in Section \ref{ImageCuts}. NOTE: this request type is not yet implemented.
     141in Section \ref{ImageCuts}.
    142142
    143143\item{\textbf{byexp}}  The image of interest is the image resulting from a particular exposure
     
    149149
    150150\item{\textbf{bydiff}}  The image with given IMG\_TYPE corresponding to the difference image
    151 whose IMAGEID is equal to ID. This type is useful for requesting stamps based on difference detections.
     151whose diff\_skyfile\_id is equal to ID. This type is useful for requesting stamps based on difference detections.
    152152
    153153\item{\textbf{byskycell}}  Images are selected from the skycell with skycell\_id equal to the
    154154value for COMPONENT from the tessellation identified by TESS\_ID. This request type may be
    155 used only with IMG\_TYPE warp, stack, and diff.
     155used with IMG\_TYPE warp, stack, and diff.
    156156The set of images may be limited by filter and date as described in Section \ref{ImageCuts}.
    157 NOTE: this request type is not yet implemented.
     157
    158158
    159159\end{itemize}
     
    231231the stamps are created the cells are mosaicked into a single image.)
    232232
    233 Any fractional parts in pixel coordinate values are ignored. (XXX: is that true?)
    234 
    235 For JOB\_TYPE stamp the value of \code{OPTION\_MASK} is used to select various other options.
     233\subsection{Request Options}
     234
     235For \code{JOB_TYPE} stamp the value of \code{OPTION_MASK} is used to select various other options.
    236236It is a bitwise OR of the following values.
    237237
     
    239239\begin{center}
    240240\caption{}\label{optionmask}
    241 \begin{tabular}{ll}
    242 \hline
    243 \hline
    244 {\bf OPTION\_MASK value} &  {\bf Description } \\
    245 \hline
    246 1                       &   create postage stamp of the image pixels \\
    247 2                       &   create postage stamp of the mask pixels \\
    248 4                       &   create postage stamp of the variance pixels \\
    249 8                       &   return the sources file (.cmf) for the images' run \\
    250 16                      &   return the psf file for the images' run \\
    251 32                      &   return the background model file for the images chipRun (applies only for chip) \\
    252 1024                    &   make stamps from inverse difference images (applies only for diff) \\
    253 2048                    &   make stamps from unconvolved stack images (applies only for stack) \\
     241\begin{tabular}{lll}
     242\hline
     243\hline
     244{\bf C Macro name}      & {\bf Value} &  {\bf Description } \\
     245\hline
     246PSTAMP\_SELECT\_IMAGE     &       1  &   create postage stamp of the image pixels \\
     247PSTAMP\_SELECT\_MASK      &       2  &   create postage stamp of the mask pixels \\
     248PSTAMP\_SELECT\_VARIANCE  &       4  &   create postage stamp of the variance pixels \\
     249PSTAMP\_SELECT\_CMF       &       8  &   return the sources file (.cmf) for the images' run \\
     250PSTAMP\_SELECT\_PSF       &      16  &   return the psf file for the images' run \\
     251PSTAMP\_SELECT\_BACKMDL   &      32  &   return the background model file for the images chipRun (applies only for chip) \\
     252PSTAMP\_SELECT\_INVERSE   &    1024  &   make stamps from inverse difference images (applies only for diff) \\
     253PSTAMP\_SELECT\_UNCONV    &    2048  &   make stamps from unconvolved stack images (applies only for stack) \\
     254PSTAMP\_USE\_IMFILE\_ID   &   16384  &   for byid requests select images using image id instead of stage id \\
     255PSTAMP\_NO\_WAIT\_FOR\_UPDATE &  32768  &   if images are not available because they have been cleaned don't wait \\
    254256\hline
    255257\end{tabular}
     
    264266For requests with IMG\_TYPE diff or if \code{REQ_TYPE} is bydiff and
    265267the corresponding difference run is a 'bothways' diff the images are selected based on the inverse difference
    266 images if \code{(OPTION_MASK & 1024)} is non-zero. Otherwise from the images are selected based
    267 on the 'positive' images.
     268images if \code{(OPTION_MASK & PSTAMP_SELECT_INVERSE)} is non-zero.
     269Otherwise from the images are selected based on the 'positive' images.
     270
     271For \code{REQ_TYPE} byid normally the \code{ID} value is the "Stage ID" or "Run ID" of the requested image.
     272If the bit \code{PSTAMP_USE_IMFILE_ID} is included in the \code{OPTION_MASK} for a byid request,
     273the \code{ID} for the request is the "Image ID" instead of the "Stage ID".
     274Table ~\ref{byid_ids} gives the IPP database column that corresponds to these identefiers for the various
     275stages. The "Image ID" is useful because it may be used to select component of a run. For example
     276the chip\_imfile\_id values are recorded in the DVO image table so it is easy to create a postage
     277stamp request from a DVO measurement. XXX: point to an example.
     278
     279\begin{table}[h]
     280\begin{center}
     281\caption{}\label{byid_ids}
     282\begin{tabular}{lll}
     283\hline
     284\hline
     285{\bf IMG\_TYPE/stage}      & {\bf stage ID} &  {\bf Image ID } \\
     286\hline
     287raw & exp\_id & raw\_imfile\_id \\
     288chip & chip\_id & chip\_imfile\_id \\
     289warp & warp\_id & warp\_skyfile\_id \\
     290diff & diff\_id & diff\_skyfile\_id \\
     291stack & stack\_id & stack\_id \\
     292\hline
     293\end{tabular}
     294\end{center}
     295\end{table}
     296Due to limited space on the IPP cluster, images files are deleted some time after they are created. Data in
     297this state is referred to as "cleaned". By default the postage stamp server will automatically regenerate
     298the pixels for requested images, if possible. This is referred to as the update process.
     299If the user does not wish to wait for the updates to complete he should include
     300\code{PSTAMP_NO_WAIT_FOR_UPDATE} in the \code{OPTION_MASK}.
    268301
    269302
     
    306339\code{ROWNUM}       & U32       & identifier for this row in table\\
    307340\code{ERROR_CODE}   & U32       & Error code (see text) \\
     341\code{ERROR_STR}    & U32       & Name corresponding to \code{ERROR_CODE}\\
    308342\code{IMG_NAME}     & string    & Name of image in Data Store file set \\
    309343\code{JOB_ID}       & S64       & Internal postage stamp server job id that produced this image \\
     
    383417PSTAMP\_INVALID\_REQUEST  & 21 &    Error in a request specification. See parse\_error.txt \\
    384418PSTAMP\_UNKNOWN\_PRODUCT  & 22 &    Unknown product in request specification \\
    385 PSTAMP\_NO\_IMAGE\_MATCH  & 23 &   No images matched the request \\
     419PSTAMP\_NO\_IMAGE\_MATCH  & 23 &    No images matched the request \\
    386420PSTAMP\_NOT\_DESTREAKED   & 24 &    Image matched, but not yet de-streaked \\
    387421PSTAMP\_NOT\_AVAILABLE    & 25 &    Image not available (temporary) \\
    388 PSTAMP\_GONE              & 26 &     Image is no longer available \\
    389 PSTAMP\_NO\_JOBS\_QUEUED  & 27 &   Request specification yielded no jobs. See parse\_error.txt \\
    390 PSTAMP\_NO\_OVERLAP       & 28 &   Center not contained in any image of interest \\
     422PSTAMP\_GONE              & 26 &    Image is no longer available \\
     423PSTAMP\_NO\_JOBS\_QUEUED  & 27 &    Request specification yielded no jobs. See parse\_error.txt \\
     424PSTAMP\_NO\_OVERLAP       & 28 &    Center coordinates are not contained in any image of interest \\
    391425
    392426\hline
Note: See TracChangeset for help on using the changeset viewer.