IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25739 for trunk/pstamp/scripts


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/scripts
Files:
3 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
Note: See TracChangeset for help on using the changeset viewer.