IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 3 and Version 4 of sample_pstamp_request


Ignore:
Timestamp:
Mar 5, 2010, 11:25:53 AM (16 years ago)
Author:
bills
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sample_pstamp_request

    v3 v4  
    1818{{{
    1919# Sample Postage stamp request description file
    20 
    21 # pstamp/test/asteroid.txt
    22 
    2320# This can be parsed by the program pstamp_req_create to build a
    2421# PS1_PSTAMP_REQUEST binary table
     
    2724# The order of keywords follows TABLE 6 of ICD
    2825#
    29 # Note that value for REQ_NAME may be overriden by a command line
    30 # argument to pstamp_req_create.
    31 # Blank and comment lines are ignored
     26# Note that value for REQ_NAME may be overriden by the pstamp_req_create command line argument --req_name
     27# Blank and comment lines (like this one) are ignored
    3228
    33 # REQ_NAME EXTVER
    34 CHANGEME     1
    35 
    36 # subsequent lines define the rows in the table
    37 #
    38 
    39 # These coordinates get stamps from warp and diff images that show a moving object that mops found.
    40 
    41 # ROWNUM PROJECT       JOB_TYPE OPTION_MASK REQ_TYPE IMG_TYPE    ID      TESS_ID COMPONENT COORD_MASK CENTER_X   CENTER_Y             WIDTH HEIGHT  REQFILT MJD_MIN MJD_MAX
    42 
    43 1        gpc1           stamp     3         bydiff   warp      362483    NULL      NULL      2       284.688522833822 -3.86916140936841 200  200     null   0         0
    44 2        gpc1           stamp     3         bydiff   diff      362483    NULL      NULL      2       284.688522833822 -3.86916140936841 200  200     null   0         0
    45 3        gpc1           stamp     1027      bydiff   warp      362483    NULL      NULL      2       284.688522833822 -3.86916140936841 200  200     null   0         0
    46 4        gpc1           stamp     1027      bydiff   diff      362483    NULL      NULL      2       284.688522833822 -3.86916140936841 200  200     null   0         0
    47 }}}
    48 
    49 To create a request file is simple
    50 
    51 
    52 {{{
    53                 pstamp_req_create --input asteroid.txt --req_name bills.20090910_1 --output myrequest.fits
    54 }}}
    55 
    56 If the --req_name parameter is omitted, the REQ_NAME given in the input file will be used (in this example CHANGEME).
    57 
    58 This file uses the 'bydiff' mode which selects the images of interest based on a diff_skyfile_id. The next file shows
    59 some other modes.
    60 
    61 
    62 {{{
    63 # REQ_NAME EXTVER
    64 CHANGEME     1
     29# REQ_NAME      EXTVER
     30bycoord_test     1
    6531
    6632# subsequent lines define the rows in the table
    6733
    68 # ROWNUM PROJECT JOB_TYPE OPTION_MASK REQ_TYPE IMG_TYPE    ID      TESS_ID COMPONENT   COORD_MASK CENTER_X   CENTER_Y WIDTH HEIGHT REQFILT MJD_MIN MJD_MAX
    69 # warps from various epochs for one of the SN candidates. Specifiying the skycell speeds up processing
    70 1         gpc1   stamp      1        byid        warp     6245   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    71 2         gpc1   stamp      1        byid        warp     6254   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    72 3         gpc1   stamp      1        byid        warp     6264   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    73 4         gpc1   stamp      1        byid        warp     6317   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    74 5         gpc1   stamp      1        byid        warp     6324   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    75 6         gpc1   stamp      1        byid        warp     6465   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    76 7         gpc1   stamp      1        byid        warp     6466   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
     34# If ROWNUM is set to zero, pstamp_request_file will set insert a value for each row beginning with 1
     35# If a later input row reuses a value an error occurs
    7736
    78 
    79 # get a specific warp
    80 10        gpc1   stamp      1        byid         warp     6316  null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    81 
    82 # get stamps from all warps for exposure (only destreaked ones will succeed)
    83 11        gpc1   stamp      1        byexp        warp    o4973g0123o null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    84 
    85 # get stamps from all chipRuns for exposure (only destreaked ones will succeed)
    86 # add the mask and weight images as well
    87 12        gpc1   stamp      7        byexp      chip    o4973g0123o null null  2 242.400666 55.273513 200 200 null 0 0
    88 
    89 # get the corresponding diff
    90 13        gpc1   stamp      1        byexp      diff    o4973g0123o null null 2 242.400666 55.273513 200 200 null 0 0
     37#
     38# ID    |     ROI Specification                   |  JOB Specification | Images of interest specification
     39# ROWNUM CENTER_X    CENTER_Y  WIDTH HEIGHT COORD_MASK JOB_TYPE OPTION_MASK PROJECT REQ_TYPE IMG_TYPE    ID   TESS_ID COMPONENT    DATA_GROUP  REQFILT MJD_MIN MJD_MAX | COMMENT
     40#
     410       135.49921     34.92035 100    100      2        stamp       1        gpc1    bycoord   chip       null    null   null           null        null 55249   55250   |search by coords (make the server work)
     420       135.49921     34.92035 100    100      2        stamp       1        gpc1    byid     chip       62326    null   XY62           null        null   0       0     |specific image
     430       135.49921     34.92035 100    100      2        stamp       3        gpc1    byid     chip       62326    null   XY62           null        null   0       0     |image,mask,and weight
     440       135.49921     34.92035 100    100      2        stamp      63        gpc1    byid     chip       62326    null   XY62           null        null   0       0     |image,mask,weight,cmf, psf,backmdl
    9145
    9246}}}