IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27212


Ignore:
Timestamp:
Mar 5, 2010, 2:05:49 PM (16 years ago)
Author:
bills
Message:

update the postage stamp server icd

File:
1 edited

Legend:

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

    r25117 r27212  
    8383The postage stamp server supports three types of "postage stamp" job specified by the value
    8484the column \code{JOB_TYPE}. If the value is \emph{stamp} postage stamp images will be extracted
    85 from the images of interest.  If the value of \code{JOB_TYPE} is \emph{get\_image} a copy
    86 of the selected image(s) with (satellite streaks removed) will be placed on the output file set.
    87 Finally if the \code{JOB_TYPE} is \emph{list} the results file will list the input selected images
    88 but no postage stamps will be made.
     85from the images of interest.  If the value of \code{JOB_TYPE} is \emph{get\_image}
     86the data from the selected images' "runs"  with (satellite streaks removed) are bundled
     87in and placed on the output file set.
    8988
    9089\begin{table}[h]
     
    9796\hline
    9897\code{ROWNUM}   & U32       &                           &        must be unique in file\\
    99 \code{PROJECT}  & string    & TBD                       &        \\
     98\code{PROJECT}  & string    & gpc1                      &        \\
    10099\code{JOB_TYPE} & string    & stamp or get\_image       &        \\
    101100\\
     
    114113\code{HEIGHT}   &  F64      & see text                  &        not null if \code{JOB_TYPE} = stamp \\
    115114\\
    116 \code{REQFILT}  &   string  & any                       &        used only for \code{REQ_TYPE} = bycoord \\
    117 \code{MJD_MIN}  &   F64     & Modified Julian Day       &        used only for \code{REQ_TYPE} = bycoord \\
    118 \code{MJD_MAX}  &   F64     &                           &        used only for \code{REQ_TYPE} = bycoord \\
    119 \\
     115\code{DATA_GROUP} &   string  & any                      & \\
     116\code{REQFILT}  &   string  & any                       & \\
     117\code{MJD_MIN}  &   F64     & Modified Julian Day       & \\
     118\code{MJD_MAX}  &   F64     &                           & \\
     119\\
     120\code{COMMENT}  &   string  & copied to the results flie & \\
    120121\hline
    121122\end{tabular}
     
    138139IMG\_TYPE that contain the center.
    139140The set of images of interest may be limited by specifying certain criteria as described
    140 in Section \ref{ImageFilters}. NOTE: this request type is not yet implemented.
     141in Section \ref{ImageCuts}. NOTE: this request type is not yet implemented.
    141142
    142143\item{\textbf{byexp}}  The image of interest is the image resulting from a particular exposure
     
    153154value for COMPONENT from the tessellation identified by TESS\_ID. This request type may be
    154155used only with IMG\_TYPE warp, stack, and diff.
    155 The set of images may be limited by filter and date as described in Section \ref{ImageFilters}.
     156The set of images may be limited by filter and date as described in Section \ref{ImageCuts}.
    156157NOTE: this request type is not yet implemented.
    157158
    158159\end{itemize}
    159160
     161Note that at this time the REQ\_TYPE byexp is not implemented for IMG\_TYPE stack.
     162
    160163COMPONENT must also be supplied for request specifications where all of the following are true
    161164
     
    172175The special value 'all' may be used to select all component images but this is not recommended.
    173176
    174 \subsubsection{Image Selection Filters}\label{ImageFilters}
    175 
    176 A request for given celestial coordinates may refer to many images. The scope of the search can be
     177\subsubsection{Image Selection Cuts}\label{ImageCuts}
     178
     179A request specification may refer to many images. The scope of the search can be
    177180limited to certain dates with the parameters MJD\_MIN and MJD\_MAX. The specified range is inclusive.
     181Note: these cuts have no effect for stack stage requests.
     182
     183DATA\_GROUP restricts the search to runs with the given value. Note that the SQL database lookups
     184are done with a "LIKE" comparison so SQL wild cards may be used.
    178185
    179186The REQFILT parameter may be used to restrict the search for images taken with a given filter.
    180 XXX: What is the name space for filter names.  For example Megacam has filter names like U.9301 which
    181 IPP maps to u.  Which name do we allow?  Perhaps use a LIKE query.
     187If the filter is a single character (g, r, i, z, y) the server appends a '\%' character to the
     188sql query.
    182189
    183190
     
    224231the stamps are created the cells are mosaicked into a single image.)
    225232
    226 Any fractional parts in pixel coordinate values are ignored.
    227 
    228 The value of \code{OPTION\_MASK} is used to select various other options. It is a bitwise or of the following
    229 values.
     233Any fractional parts in pixel coordinate values are ignored. (XXX: is that true?)
     234
     235For JOB\_TYPE stamp the value of \code{OPTION\_MASK} is used to select various other options.
     236It is a bitwise OR of the following values.
    230237
    231238\begin{table}[h]
     
    2402472                       &   create postage stamp of the mask pixels \\
    2412484                       &   create postage stamp of the variance pixels \\
    242 1024                    &   select images based on inverse difference images \\
    243 \hline
    244 \end{tabular}
    245 \end{center}
    246 \end{table}
    247 
    248 Note that bit zero is currently ignored. A stamp of the image pixels is always included.
    249 
    250 For requests with IMG\_TYPE diff or if \code{REQ_TYPE} is bydiff \code{if (OPTION_MASK & 1024)} and
    251 the corresponding difference run is a warp versus warp diff (bothways) the images
    252 are selected based on the 'inverse' difference images. If this bit is zero the 'positive'
    253 images are selected;
     2498                       &   return the sources file (.cmf) for the images' run \\
     25016                      &   return the psf file for the images' run \\
     25132                      &   return the background model file for the images chipRun (applies only for chip) \\
     2521024                    &   make stamps from inverse difference images (applies only for diff) \\
     2532048                    &   make stamps from unconvolved stack images (applies only for stack) \\
     254\hline
     255\end{tabular}
     256\end{center}
     257\end{table}
     258
     259If a bit is set in the OPTION\_MASK that doesn't apply to a particular IMG\_TYPE it is silently ignored.
     260
     261Note that bit zero is also currently ignored. A stamp of the image pixels is always included in the
     262results.
     263
     264For requests with IMG\_TYPE diff or if \code{REQ_TYPE} is bydiff and
     265the corresponding difference run is a 'bothways' diff the images are selected based on the inverse difference
     266images if \code{(OPTION_MASK & 1024)} is non-zero. Otherwise from the images are selected based
     267on the 'positive' images.
    254268
    255269
     
    322336\code{MJD_MIN}  &   F64     & \\
    323337\code{MJD_MAX}  &   F64     & \\
     338\code{DATA_GROUP}  &   string     & \\
     339\code{COMMENT}  &   string     & \\
    324340\\
    325341\hline
     
    372388PSTAMP\_GONE              & 26 &     Image is no longer available \\
    373389PSTAMP\_NO\_JOBS\_QUEUED  & 27 &   Request specification yielded no jobs. See parse\_error.txt \\
     390PSTAMP\_NO\_OVERLAP       & 28 &   Center not contained in any image of interest \\
    374391
    375392\hline
Note: See TracChangeset for help on using the changeset viewer.