IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25739


Ignore:
Timestamp:
Oct 1, 2009, 4:18:16 PM (17 years ago)
Author:
bills
Message:

convert to new request format. Add label and comment, reorder columns in text description

Location:
trunk/pstamp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_finish.pl

    r25716 r25739  
    297297
    298298    if ($rownum eq 0) {
    299         my $dummy_rowinfo = "0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|";
     299        my $dummy_rowinfo = "0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|";
    300300        return (undef, $dummy_rowinfo, "none");
    301301    }
     
    308308    my $tess_id = $row->{TESS_ID};
    309309    $tess_id = "null" if !$tess_id;
     310    my $comment = $row->{COMMENT};
     311    $comment = "null" if !$comment;
     312    my $label = $row->{LABEL};
     313    $label = "null" if !$label;
    310314
    311315    # This is ugly, error prone and hard to change.
    312316    # Create a results file module and provide a list of the names (we have the data in the columns)
    313317    my $rowinfo = "$row->{PROJECT}|$row->{JOB_TYPE}|$row->{REQ_TYPE}|$row->{IMG_TYPE}|";
    314     $rowinfo   .= "$row->{ID}|$tess_id|$component|$row->{OPTION_MASK}|$row->{MJD_MIN}|$row->{MJD_MAX}|";
     318    $rowinfo   .= "$row->{ID}|$tess_id|$component|$label|$row->{OPTION_MASK}|$row->{MJD_MIN}|$row->{MJD_MAX}|";
    315319    $rowinfo   .= "$row->{REQFILT}|$row->{COORD_MASK}|$row->{CENTER_X}|$row->{CENTER_Y}|";
    316     $rowinfo   .= "$row->{WIDTH}|$row->{HEIGHT}";
     320    $rowinfo   .= "$row->{WIDTH}|$row->{HEIGHT}|";
     321    $rowinfo   .= $comment;
    317322
    318323    return ($row, $rowinfo, $row->{PROJECT});
  • trunk/pstamp/scripts/pstamp_results_file.pl

    r24964 r25739  
    9090        { name => 'TESS_ID',    type => '64A', writetype => TSTRING },   
    9191        { name => 'COMPONENT',  type => '64A', writetype => TSTRING },   
     92        { name => 'LABEL',      type => '64A', writetype => TSTRING },   
    9293
    9394        # output parameters
     
    104105        { name => 'WIDTH',      type => 'D', writetype => TDOUBLE },   
    105106        { name => 'HEIGHT',     type => 'D', writetype => TDOUBLE }, 
     107        { name => 'COMMENT',    type => '64A', writetype => TSTRING },   
    106108];
    107109
  • trunk/pstamp/scripts/pstampparse.pl

    r25712 r25739  
    668668    return 0 if ($r1->{IMG_TYPE} ne $r2->{IMG_TYPE});
    669669    return 0 if ($r1->{ID} ne $r2->{ID});
     670    return 0 if ($r1->{TESS_ID} ne $r2->{TESS_ID});
     671    return 0 if ($r1->{REQFILT} ne $r2->{REQFILT});
     672    return 0 if ($r1->{LABEL} ne $r2->{LABEL});
     673    return 0 if ($r1->{MJDMIN} ne $r2->{MJDMAX});
     674    return 0 if ($r1->{MJDMAX} ne $r2->{MJDMAX});
    670675    return 0 if ($r1->{inverse} ne $r2->{inverse});
    671676
  • trunk/pstamp/test/asteroid.txt

    r25301 r25739  
    1616#
    1717
    18 
    1918# These coordinates get stamps from warp and diff images that show a moving object that mops found.
    2019
    21 # 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
    22 
    23 1        gpc1           stamp     3         bydiff   warp      362483    NULL      NULL      2       284.688522833822 -3.86916140936841 200  200     null   0         0
    24 2        gpc1           stamp     3         bydiff   diff      362483    NULL      NULL      2       284.688522833822 -3.86916140936841 200  200     null   0         0
    25 3        gpc1           stamp     1027      bydiff   warp      362483    NULL      NULL      2       284.688522833822 -3.86916140936841 200  200     null   0         0
    26 4        gpc1           stamp     1027      bydiff   diff      362483    NULL      NULL      2       284.688522833822 -3.86916140936841 200  200     null   0         0
     20# ID    |     ROI Specification                   |  JOB Specification | Images of interest specification
     21# ROWNUM CENTER_X         CENTER_Y         WIDTH HEIGHT COORD_MASK JOB_TYPE OPTION_MASK PROJECT REQ_TYPE IMG_TYPE    ID   TESS_ID COMPONENTLABEL REQFILT MJD_MIN MJD_MAX | COMMENT
     22#
     231        284.688522833822 -3.86916140936841 200  200        2       stamp    3           gpc1     bydiff   warp      362483  NULL    NULL   null  null    0       0      |
     242        284.688522833822 -3.86916140936841 200  200        2       stamp    3           gpc1     bydiff   diff      362483  NULL    NULL   null  null    0       0      |
     253        284.688522833822 -3.86916140936841 200  200        2       stamp    1027        gpc1     bydiff   warp      362483  NULL    NULL   null  null    0       0      |
     264        284.688522833822 -3.86916140936841 200  200        2       stamp    1027        gpc1     bydiff   diff      362483  NULL    NULL   null  null    0       0      |
    2727
    2828
  • trunk/pstamp/test/gpc1_sample.txt

    r25426 r25739  
    1515# subsequent lines define the rows in the table
    1616
    17 # 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
     17## ID    |     ROI Specification                   |  JOB Specification | Images of interest specification
     18# ROWNUM CENTER_X       CENTER_Y WIDTH HEIGHT COORD_MASK JOB_TYPE OPTION_MASK PROJECT REQ_TYPE IMG_TYPE    ID   TESS_ID COMPONENT    LABEL REQFILT MJD_MIN MJD_MAX | COMMENT
    1819# warps from various epochs for one of the SN candidates. Specifiying the skycell speeds up processing
    19 1         gpc1   stamp      1        byid        warp     6245   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    20 2         gpc1   stamp      1        byid        warp     6254   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    21 3         gpc1   stamp      1        byid        warp     6264   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    22 4         gpc1   stamp      1        byid        warp     6317   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    23 5         gpc1   stamp      1        byid        warp     6324   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    24 6         gpc1   stamp      1        byid        warp     6465   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    25 7         gpc1   stamp      1        byid        warp     6466   null skycell.077 2 242.400666 55.273513 200 200 null 0 0
    26 
     201        242.400666     55.273513 200   200     2          stamp    1          gpc1   byid      warp     6245   null    skycell.077   null null     0        0     |
     212        242.400666     55.273513 200   200     2          stamp    1          gpc1   byid      warp     6254   null    skycell.077   null null     0        0     |
     223        242.400666     55.273513 200   200     2          stamp    1          gpc1   byid      warp     6264   null    skycell.077   null null     0        0     |
     234        242.400666     55.273513 200   200     2          stamp    1          gpc1   byid      warp     6317   null    skycell.077   null null     0        0     |
     245        242.400666     55.273513 200   200     2          stamp    1          gpc1   byid      warp     6324   null    skycell.077   null null     0        0     |
     256        242.400666     55.273513 200   200     2          stamp    1          gpc1   byid      warp     6465   null    skycell.077   null null     0        0     |
     267        242.400666     55.273513 200   200     2          stamp    1          gpc1   byid      warp     6466   null    skycell.077   null null     0        0     |
    2727
    2828# get a specific warp
    29 10        gpc1   stamp      1        byid         warp     6316  null skycell.077 2 242.400666 55.273513 200 200 null 0 0
     2910        242.400666     55.273513 200   200     2          stamp    1         gpc1   byid      warp     6316   null     skycell.077   null null     0        0     |
    3030
    3131# get stamps from all warps for exposure (only destreaked ones will succeed)
    32 11        gpc1   stamp      1        byexp        warp    o4973g0123o null skycell.077 2 242.400666 55.273513 200 200 null 0 0
     3211        242.400666     55.273513 200   200     2          stamp    1         gpc1   byexp     warp  o4973g0123o   null skycell.077   null null     0        0     |
    3333
    3434# get stamps from all chipRuns for exposure (only destreaked ones will succeed)
    3535# add the mask and weight images as well
    36 12        gpc1   stamp      7        byexp      chip    o4973g0123o null null  2 242.400666 55.273513 200 200 null 0 0
     3612        242.400666     55.273513 200   200     2          stamp    7         gpc1   byexp  chip  o4973g0123o   null    skycell.077   null null     0        0     |
    3737
    3838# get the corresponding diff
    39 13        gpc1   stamp      1        byexp      diff    o4973g0123o null null 2 242.400666 55.273513 200 200 null 0 0
     3913        242.400666     55.273513 200   200     2          stamp    1        gpc1   byexp   diff  o4973g0123o   null    null         null null     0        0     |
    4040
    41 # get the stack that was the templae for that stack
    42 14        gpc1   stamp      1        byid     stack    14031  null null 2 242.400666 55.273513 200 200 null 0 0
    43 #
     41# get the stack that was the template for that stack
     4214        242.400666     55.273513 200   200     2          stamp    1         gpc1   byid    stack      14031   null     null        null null     0        0     |
     43
    4444# get the same stamp by go through the diff
    45 15        gpc1   stamp      1        bydiff     stack    193939 null null 2 242.400666 55.273513 200 200 null 0 0
    46 
     4515        242.400666     55.273513 200   200     2          stamp    1         gpc1   bydiff   stack    193939   null     null        null null     0        0     |
Note: See TracChangeset for help on using the changeset viewer.