IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

File:
1 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});
Note: See TracChangeset for help on using the changeset viewer.