IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 3, 2010, 8:50:52 AM (16 years ago)
Author:
eugene
Message:

updates from trunk

Location:
branches/simtest_nebulous_branches
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/simtest_nebulous_branches

  • branches/simtest_nebulous_branches/doc/stamps/stampsICD.tex

    r18745 r27840  
    7676\end{table}
    7777
    78 The IPP will be configured to periodicly query a set of Data Stores for new request file sets.
    79 We will refer to each Data Store as a \emph{requestor}.
    80 Each request table submitted by a given requstor must have a unique value for
    81 the keyword \code{REQ_NAME}. This value is used for the name of the request's output file set.
     78The IPP will be configured to periodically query a set of Data Stores for new request file sets.
     79We will refer to each Data Store as a \emph{requester}.
     80Each request table submitted must have a unique value for the keyword \code{REQ_NAME}.
     81This value is used for the name of the request's output file set.
    8282
    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 (satelite 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\\
    102 \code{STAMP_NAME}  & string & letters, numbers, '.',  '\-' and '\_'  &        \\
    103 \code{OPTION_MASK} & U32    & \code{[0-5]} see text     &      \\
    104 \\
    105 \code{REQ_TYPE} & string    & bycoord, byexp, or byid   &        \\
     101\code{OPTION_MASK} & U32    & see text                  &      \\
     102\\
     103\code{REQ_TYPE} & string    & bycoord, byexp, byid, bydiff, or byskycell   &        \\
    106104\code{IMG_TYPE} & string    & raw, chip, warp, diff, or stack  & \\
    107 \code{ID} & string          & depends on project and REQ\_TYPE& \\
    108 \code{CLASS_ID} & string    & see text                  &        not null for byid raw \& byexp raw \\
     105\code{ID} & string          & depends on REQ\_TYPE& \\
     106\code{TESS_ID}  & string    & see text                  &        \\
     107\code{COMPONENT} & string   & see text                  &        \\
    109108\\
    110109\code{COORD_MASK} &  U32    & \code{[0-3]} see text     &        not null if \code{JOB_TYPE} = stamp \\
     
    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}
     
    130131\subsubsection{Request Types}
    131132The method used to select the images of interest is determined by the value of the REQ\_TYPE column.
    132 There are three alllowed values.
     133There are three allowed values.
    133134
    134135\begin{itemize}
    135136
    136 \item{\textbf{bycoord}} The center of the region of interest is specifed in celestial coordinates.
     137\item{\textbf{bycoord}} The center of the region of interest is specified in celestial coordinates.
    137138Images are selected by querying the project's DVO database for images with the provided
    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}.
     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
     
    146147The ID parameter refers to IPP image database key that corresponds to the IMG\_TYPE.
    147148e.g: either exp\_id, chip\_id, warp\_id, diff\_id, or stack\_id.
     149
     150\item{\textbf{bydiff}}  The image with given IMG\_TYPE corresponding to the difference image
     151whose IMAGEID is equal to ID. This type is useful for requesting stamps based on difference detections.
     152
     153\item{\textbf{byskycell}}  Images are selected from the skycell with skycell\_id equal to the
     154value for COMPONENT from the tessellation identified by TESS\_ID. This request type may be
     155used only with IMG\_TYPE warp, stack, and diff.
     156The set of images may be limited by filter and date as described in Section \ref{ImageCuts}.
     157NOTE: this request type is not yet implemented.
     158
    148159\end{itemize}
    149160
    150 CLASS\_ID must also be supplied for request specifications where all of the following are true
     161Note that at this time the REQ\_TYPE byexp is not implemented for IMG\_TYPE stack.
     162
     163COMPONENT must also be supplied for request specifications where all of the following are true
    151164
    152165\begin{itemize}
     
    158171\item REQ\_TYPE=byexp or REQ\_TYPE=byid
    159172
    160 \item IMG\_TYPE=chip or IMG\_TYPE=raw
    161 
    162173\end{itemize}
    163174
    164 
    165 \subsubsection{Image Selection Filters}\label{ImageFilters}
    166 
    167 A request for given celestial coordinates may refer to many images. The scope of the search can be
     175The special value 'all' may be used to select all component images but this is not recommended.
     176
     177\subsubsection{Image Selection Cuts}\label{ImageCuts}
     178
     179A request specification may refer to many images. The scope of the search can be
    168180limited 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.
    169185
    170186The REQFILT parameter may be used to restrict the search for images taken with a given filter.
    171 XXX: What is the namespace for filter names.  For example Megacam has filter names like U.9301 which
    172 IPP maps to u.  Which name do we allow? Probably should used the mapped names g r i etc.
     187If the filter is a single character (g, r, i, z, y) the server appends a '\%' character to the
     188sql query.
     189
    173190
    174191\subsection{The Region of Interest}
     
    177194a center,  width, and height.
    178195
    179 The center is defined by the columns CENTER\_X and CENTER\_Y and the dimenions of the rectangle are
     196The center is defined by the columns CENTER\_X and CENTER\_Y and the dimensions of the rectangle are
    180197the values of WIDTH and HEIGHT. The two least signficant bits in value for the column COORD\_MASK
    181198determine the type for the coordinates
     
    189206{\bf COORD\_MASK value} &  {\bf Description } \\
    190207\hline
    191 0                       &   center in RA/DEC; width \& height in arcseconds\\
    192 1                       &   center in pixel coordinates; width and height in arcseconds\\
     2080                       &   center in RA/DEC; width \& height in arc seconds\\
     2091                       &   center in pixel coordinates; width and height in arc seconds\\
    1932102                       &   center in RA/DEC; width and height in pixels\\
    1942113                       &   center x/y, width, and height in pixel coordinates\\
     
    198215\end{table}
    199216
    200 Another way to describe this is that COORD\_MASK is two bit mask that bitmask that
     217Another way to describe this is that COORD\_MASK is two bit mask that bit mask that
    201218determines the format of the ROI values. In the C language:
    202219
     
    212229
    213230When pixel coordinates are used the coordinate system is that of the image. (For chip level images, before
    214 the stamps are created the cells are mosaiced into a single image.)
    215 
    216 Any fractional parts in pixel coordinate values are ignored.
    217 
    218 The value of \code{OPTION_MASK} is used to select various other options. It is a bitwise or of the following
    219 values.
     231the stamps are created the cells are mosaicked into a single image.)
     232
     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.
    220237
    221238\begin{table}[h]
     
    2292461                       &   create postage stamp of the image pixels \\
    2302472                       &   create postage stamp of the mask pixels \\
    231 4                       &   create postage stamp of the weight pixels \\
    232 8                       &   convert WCS to approximate linear transformation in the stamp images\\
    233 \hline
    234 \end{tabular}
    235 \end{center}
    236 \end{table}
     2484                       &   create postage stamp of the variance pixels \\
     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.
    237268
    238269
     
    293324\code{REQ_TYPE} & string    & \\
    294325\code{IMG_TYPE} & string    & \\
    295 \code{CLASS_ID} & string    & \\
     326\code{TESS_ID} & string    & \\
     327\code{COMPONENT} & string    & \\
    296328\\
    297329\code{COORD_MASK} &  U32    & \\
     
    304336\code{MJD_MIN}  &   F64     & \\
    305337\code{MJD_MAX}  &   F64     & \\
     338\code{DATA_GROUP}  &   string     & \\
     339\code{COMMENT}  &   string     & \\
    306340\\
    307341\hline
     
    317351IMG\_NAME give the name of the image in the Data Store file set.
    318352
    319 If no STAMP\_NAME is provided in the request specifiction the image file names will be in the form
    320 \code{ROWNUM_I.fits}  where I is an integer that ranges from 1 to the number of jobs that the request
    321 specification generated. Mask images will be named \code{ROWNUM_I.mk.fits} and weight images will
     353The image file names will be in the form \code{ROWNUM_I.fits}  where I is an integer that ranges from 1
     354to the number of jobs generated for the row's request
     355specification.
     356
     357Mask images will be named \code{ROWNUM_I.mk.fits} and variance images will
    322358have the name \code{ROWNUM_I.mk.fits}
    323359
    324 If STAMP\_NAME is provided in the resquest specification, the name of the image, mask, and weight files
    325 will be
    326 \begin{itemize}
    327 \item\code{ROWNUM_I_STAMP_NAME.fits}
    328 \item\code{ROWNUM_I_STAMP_NAME.mk.fits},
    329 \item\code{ROWNUM_I_STAMP_NAME.wt.fits}
    330 \end{itemize}
    331 
    332 JOB\_ID is the value of the postage stamp server's internal job id. This is provided primarily as a debugging
    333 aid.
     360JOB\_ID is the value of the postage stamp server's internal job id. (This is provided primarily as a debugging
     361aid.)
    334362
    335363The column named PROJECT and following columns are copies from the input request specification.
    336364
    337 If ERROR\_CODE is non-zero one or more errors occured processing the request specification.
    338 The value of ERROR\_CODE is a bitwise or of the values given in the table\ref{Rerrorcodes}.
     365If ERROR\_CODE is non-zero an error occurred when processing the request specification or the job.
     366The values for ERROR\_CODE are listed in table\ref{Rerrorcodes}.
    339367
    340368
     
    348376{\bf Name} & {\bf ERROR\_CODE value} &  {\bf Description } \\
    349377\hline
    350 NO\_ERROR            &   0   &   \\
    351 NO\_MATCHING\_IMAGE   &   1   & No image matches the request specification \\
    352 RA\_DEC\_NOT\_ON\_PIXEL &   2   & The central RA, DEC are on a blind area (for example a inter-chip gap) \\
    353 RA\_DEC\_NOT\_IN\_FOV   &   4   & Wrong position on sky for given MJD \\
    354 NO\_IMAGE\_FOR\_FILTER &   8   & Image is not in the filter requested \\
    355 NOT\_AVAILABLE\_PERM  &   16  & Image matched but is permanantly unavailable\\
    356 NOT\_AVAILABLE\_TEMP  &   32  & Image matched but is currently unaccessible\\
    357 INVALID\_REQUEST     &   64  & request specification was invalid \\
    358 SYSTEM\_ERROR        &   128 & system error \\
    359 \hline
    360 \end{tabular}
    361 \end{center}
    362 \end{table}
    363 
    364 In the case of an error parsing the request table a file containing a textual description of the errror
    365 may be added to the resulting file set.
     378PSTAMP\_SUCCESS           & 0  &    No errors \\
     379PSTAMP\_SYSTEM\_ERROR     & 10 &    some unspecified system error occurred during processing\\
     380PSTAMP\_NOT\_IMPLEMENTED  & 11 &    Feature not yet implemented \\
     381PSTAMP\_UNKNOWN\_ERROR    & 12 &    Unknown error \\
     382PSTAMP\_DUP\_REQUEST      & 20 &    Request name is a duplicate \\
     383PSTAMP\_INVALID\_REQUEST  & 21 &    Error in a request specification. See parse\_error.txt \\
     384PSTAMP\_UNKNOWN\_PRODUCT  & 22 &    Unknown product in request specification \\
     385PSTAMP\_NO\_IMAGE\_MATCH  & 23 &   No images matched the request \\
     386PSTAMP\_NOT\_DESTREAKED   & 24 &    Image matched, but not yet de-streaked \\
     387PSTAMP\_NOT\_AVAILABLE    & 25 &    Image not available (temporary) \\
     388PSTAMP\_GONE              & 26 &     Image is no longer available \\
     389PSTAMP\_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 \\
     391
     392\hline
     393\end{tabular}
     394\end{center}
     395\end{table}
     396
     397If parsing of the request specification file results in error output, the contents will be placed
     398in the file 'parse\_error.txt' in the resulting file set.
    366399
    367400\end{document}
Note: See TracChangeset for help on using the changeset viewer.