Changeset 25739 for trunk/pstamp/scripts
- Timestamp:
- Oct 1, 2009, 4:18:16 PM (17 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 3 edited
-
pstamp_finish.pl (modified) (2 diffs)
-
pstamp_results_file.pl (modified) (2 diffs)
-
pstampparse.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_finish.pl
r25716 r25739 297 297 298 298 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|"; 300 300 return (undef, $dummy_rowinfo, "none"); 301 301 } … … 308 308 my $tess_id = $row->{TESS_ID}; 309 309 $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; 310 314 311 315 # This is ugly, error prone and hard to change. 312 316 # Create a results file module and provide a list of the names (we have the data in the columns) 313 317 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}|"; 315 319 $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; 317 322 318 323 return ($row, $rowinfo, $row->{PROJECT}); -
trunk/pstamp/scripts/pstamp_results_file.pl
r24964 r25739 90 90 { name => 'TESS_ID', type => '64A', writetype => TSTRING }, 91 91 { name => 'COMPONENT', type => '64A', writetype => TSTRING }, 92 { name => 'LABEL', type => '64A', writetype => TSTRING }, 92 93 93 94 # output parameters … … 104 105 { name => 'WIDTH', type => 'D', writetype => TDOUBLE }, 105 106 { name => 'HEIGHT', type => 'D', writetype => TDOUBLE }, 107 { name => 'COMMENT', type => '64A', writetype => TSTRING }, 106 108 ]; 107 109 -
trunk/pstamp/scripts/pstampparse.pl
r25712 r25739 668 668 return 0 if ($r1->{IMG_TYPE} ne $r2->{IMG_TYPE}); 669 669 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}); 670 675 return 0 if ($r1->{inverse} ne $r2->{inverse}); 671 676
Note:
See TracChangeset
for help on using the changeset viewer.
