- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
doc/stamps/stampsICD.tex (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/doc/stamps/stampsICD.tex
r18745 r27840 76 76 \end{table} 77 77 78 The IPP will be configured to periodic ly query a set of Data Stores for new request file sets.79 We will refer to each Data Store as a \emph{request or}.80 Each request table submitted by a given requstor must have a unique value for81 the keyword \code{REQ_NAME}.This value is used for the name of the request's output file set.78 The IPP will be configured to periodically query a set of Data Stores for new request file sets. 79 We will refer to each Data Store as a \emph{requester}. 80 Each request table submitted must have a unique value for the keyword \code{REQ_NAME}. 81 This value is used for the name of the request's output file set. 82 82 83 83 The postage stamp server supports three types of "postage stamp" job specified by the value 84 84 the 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. 85 from the images of interest. If the value of \code{JOB_TYPE} is \emph{get\_image} 86 the data from the selected images' "runs" with (satellite streaks removed) are bundled 87 in and placed on the output file set. 89 88 90 89 \begin{table}[h] … … 97 96 \hline 98 97 \code{ROWNUM} & U32 & & must be unique in file\\ 99 \code{PROJECT} & string & TBD& \\98 \code{PROJECT} & string & gpc1 & \\ 100 99 \code{JOB_TYPE} & string & stamp or get\_image & \\ 101 100 \\ 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 & \\ 106 104 \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 & \\ 109 108 \\ 110 109 \code{COORD_MASK} & U32 & \code{[0-3]} see text & not null if \code{JOB_TYPE} = stamp \\ … … 114 113 \code{HEIGHT} & F64 & see text & not null if \code{JOB_TYPE} = stamp \\ 115 114 \\ 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 & \\ 120 121 \hline 121 122 \end{tabular} … … 130 131 \subsubsection{Request Types} 131 132 The method used to select the images of interest is determined by the value of the REQ\_TYPE column. 132 There are three all lowed values.133 There are three allowed values. 133 134 134 135 \begin{itemize} 135 136 136 \item{\textbf{bycoord}} The center of the region of interest is specif ed in celestial coordinates.137 \item{\textbf{bycoord}} The center of the region of interest is specified in celestial coordinates. 137 138 Images are selected by querying the project's DVO database for images with the provided 138 139 IMG\_TYPE that contain the center. 139 140 The set of images of interest may be limited by specifying certain criteria as described 140 in Section \ref{Image Filters}.141 in Section \ref{ImageCuts}. NOTE: this request type is not yet implemented. 141 142 142 143 \item{\textbf{byexp}} The image of interest is the image resulting from a particular exposure … … 146 147 The ID parameter refers to IPP image database key that corresponds to the IMG\_TYPE. 147 148 e.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 151 whose 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 154 value for COMPONENT from the tessellation identified by TESS\_ID. This request type may be 155 used only with IMG\_TYPE warp, stack, and diff. 156 The 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. 158 148 159 \end{itemize} 149 160 150 CLASS\_ID must also be supplied for request specifications where all of the following are true 161 Note that at this time the REQ\_TYPE byexp is not implemented for IMG\_TYPE stack. 162 163 COMPONENT must also be supplied for request specifications where all of the following are true 151 164 152 165 \begin{itemize} … … 158 171 \item REQ\_TYPE=byexp or REQ\_TYPE=byid 159 172 160 \item IMG\_TYPE=chip or IMG\_TYPE=raw161 162 173 \end{itemize} 163 174 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 175 The 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 179 A request specification may refer to many images. The scope of the search can be 168 180 limited to certain dates with the parameters MJD\_MIN and MJD\_MAX. The specified range is inclusive. 181 Note: these cuts have no effect for stack stage requests. 182 183 DATA\_GROUP restricts the search to runs with the given value. Note that the SQL database lookups 184 are done with a "LIKE" comparison so SQL wild cards may be used. 169 185 170 186 The 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. 187 If the filter is a single character (g, r, i, z, y) the server appends a '\%' character to the 188 sql query. 189 173 190 174 191 \subsection{The Region of Interest} … … 177 194 a center, width, and height. 178 195 179 The center is defined by the columns CENTER\_X and CENTER\_Y and the dimen ions of the rectangle are196 The center is defined by the columns CENTER\_X and CENTER\_Y and the dimensions of the rectangle are 180 197 the values of WIDTH and HEIGHT. The two least signficant bits in value for the column COORD\_MASK 181 198 determine the type for the coordinates … … 189 206 {\bf COORD\_MASK value} & {\bf Description } \\ 190 207 \hline 191 0 & center in RA/DEC; width \& height in arc seconds\\192 1 & center in pixel coordinates; width and height in arc seconds\\208 0 & center in RA/DEC; width \& height in arc seconds\\ 209 1 & center in pixel coordinates; width and height in arc seconds\\ 193 210 2 & center in RA/DEC; width and height in pixels\\ 194 211 3 & center x/y, width, and height in pixel coordinates\\ … … 198 215 \end{table} 199 216 200 Another way to describe this is that COORD\_MASK is two bit mask that bit mask that217 Another way to describe this is that COORD\_MASK is two bit mask that bit mask that 201 218 determines the format of the ROI values. In the C language: 202 219 … … 212 229 213 230 When 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 mosaic ed 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.231 the stamps are created the cells are mosaicked into a single image.) 232 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. 236 It is a bitwise OR of the following values. 220 237 221 238 \begin{table}[h] … … 229 246 1 & create postage stamp of the image pixels \\ 230 247 2 & 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} 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) \\ 254 \hline 255 \end{tabular} 256 \end{center} 257 \end{table} 258 259 If a bit is set in the OPTION\_MASK that doesn't apply to a particular IMG\_TYPE it is silently ignored. 260 261 Note that bit zero is also currently ignored. A stamp of the image pixels is always included in the 262 results. 263 264 For requests with IMG\_TYPE diff or if \code{REQ_TYPE} is bydiff and 265 the 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. 237 268 238 269 … … 293 324 \code{REQ_TYPE} & string & \\ 294 325 \code{IMG_TYPE} & string & \\ 295 \code{CLASS_ID} & string & \\ 326 \code{TESS_ID} & string & \\ 327 \code{COMPONENT} & string & \\ 296 328 \\ 297 329 \code{COORD_MASK} & U32 & \\ … … 304 336 \code{MJD_MIN} & F64 & \\ 305 337 \code{MJD_MAX} & F64 & \\ 338 \code{DATA_GROUP} & string & \\ 339 \code{COMMENT} & string & \\ 306 340 \\ 307 341 \hline … … 317 351 IMG\_NAME give the name of the image in the Data Store file set. 318 352 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 353 The image file names will be in the form \code{ROWNUM_I.fits} where I is an integer that ranges from 1 354 to the number of jobs generated for the row's request 355 specification. 356 357 Mask images will be named \code{ROWNUM_I.mk.fits} and variance images will 322 358 have the name \code{ROWNUM_I.mk.fits} 323 359 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. 360 JOB\_ID is the value of the postage stamp server's internal job id. (This is provided primarily as a debugging 361 aid.) 334 362 335 363 The column named PROJECT and following columns are copies from the input request specification. 336 364 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 thetable\ref{Rerrorcodes}.365 If ERROR\_CODE is non-zero an error occurred when processing the request specification or the job. 366 The values for ERROR\_CODE are listed in table\ref{Rerrorcodes}. 339 367 340 368 … … 348 376 {\bf Name} & {\bf ERROR\_CODE value} & {\bf Description } \\ 349 377 \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. 378 PSTAMP\_SUCCESS & 0 & No errors \\ 379 PSTAMP\_SYSTEM\_ERROR & 10 & some unspecified system error occurred during processing\\ 380 PSTAMP\_NOT\_IMPLEMENTED & 11 & Feature not yet implemented \\ 381 PSTAMP\_UNKNOWN\_ERROR & 12 & Unknown error \\ 382 PSTAMP\_DUP\_REQUEST & 20 & Request name is a duplicate \\ 383 PSTAMP\_INVALID\_REQUEST & 21 & Error in a request specification. See parse\_error.txt \\ 384 PSTAMP\_UNKNOWN\_PRODUCT & 22 & Unknown product in request specification \\ 385 PSTAMP\_NO\_IMAGE\_MATCH & 23 & No images matched the request \\ 386 PSTAMP\_NOT\_DESTREAKED & 24 & Image matched, but not yet de-streaked \\ 387 PSTAMP\_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 \\ 391 392 \hline 393 \end{tabular} 394 \end{center} 395 \end{table} 396 397 If parsing of the request specification file results in error output, the contents will be placed 398 in the file 'parse\_error.txt' in the resulting file set. 366 399 367 400 \end{document}
Note:
See TracChangeset
for help on using the changeset viewer.
