- Timestamp:
- Oct 1, 2009, 4:18:16 PM (17 years ago)
- Location:
- trunk/pstamp
- Files:
-
- 5 edited
-
scripts/pstamp_finish.pl (modified) (2 diffs)
-
scripts/pstamp_results_file.pl (modified) (2 diffs)
-
scripts/pstampparse.pl (modified) (1 diff)
-
test/asteroid.txt (modified) (1 diff)
-
test/gpc1_sample.txt (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 -
trunk/pstamp/test/asteroid.txt
r25301 r25739 16 16 # 17 17 18 19 18 # These coordinates get stamps from warp and diff images that show a moving object that mops found. 20 19 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 # 23 1 284.688522833822 -3.86916140936841 200 200 2 stamp 3 gpc1 bydiff warp 362483 NULL NULL null null 0 0 | 24 2 284.688522833822 -3.86916140936841 200 200 2 stamp 3 gpc1 bydiff diff 362483 NULL NULL null null 0 0 | 25 3 284.688522833822 -3.86916140936841 200 200 2 stamp 1027 gpc1 bydiff warp 362483 NULL NULL null null 0 0 | 26 4 284.688522833822 -3.86916140936841 200 200 2 stamp 1027 gpc1 bydiff diff 362483 NULL NULL null null 0 0 | 27 27 28 28 -
trunk/pstamp/test/gpc1_sample.txt
r25426 r25739 15 15 # subsequent lines define the rows in the table 16 16 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 18 19 # 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 20 1 242.400666 55.273513 200 200 2 stamp 1 gpc1 byid warp 6245 null skycell.077 null null 0 0 | 21 2 242.400666 55.273513 200 200 2 stamp 1 gpc1 byid warp 6254 null skycell.077 null null 0 0 | 22 3 242.400666 55.273513 200 200 2 stamp 1 gpc1 byid warp 6264 null skycell.077 null null 0 0 | 23 4 242.400666 55.273513 200 200 2 stamp 1 gpc1 byid warp 6317 null skycell.077 null null 0 0 | 24 5 242.400666 55.273513 200 200 2 stamp 1 gpc1 byid warp 6324 null skycell.077 null null 0 0 | 25 6 242.400666 55.273513 200 200 2 stamp 1 gpc1 byid warp 6465 null skycell.077 null null 0 0 | 26 7 242.400666 55.273513 200 200 2 stamp 1 gpc1 byid warp 6466 null skycell.077 null null 0 0 | 27 27 28 28 # get a specific warp 29 10 gpc1 stamp 1 byid warp 6316 null skycell.077 2 242.400666 55.273513 200 200 null 0 029 10 242.400666 55.273513 200 200 2 stamp 1 gpc1 byid warp 6316 null skycell.077 null null 0 0 | 30 30 31 31 # 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 032 11 242.400666 55.273513 200 200 2 stamp 1 gpc1 byexp warp o4973g0123o null skycell.077 null null 0 0 | 33 33 34 34 # get stamps from all chipRuns for exposure (only destreaked ones will succeed) 35 35 # 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 036 12 242.400666 55.273513 200 200 2 stamp 7 gpc1 byexp chip o4973g0123o null skycell.077 null null 0 0 | 37 37 38 38 # get the corresponding diff 39 13 gpc1 stamp 1 byexp diff o4973g0123o null null 2 242.400666 55.273513 200 200 null 0 039 13 242.400666 55.273513 200 200 2 stamp 1 gpc1 byexp diff o4973g0123o null null null null 0 0 | 40 40 41 # get the stack that was the templa e for that stack42 14 gpc1 stamp 1 byid stack 14031 null null 2 242.400666 55.273513 200 200 null 0 043 # 41 # get the stack that was the template for that stack 42 14 242.400666 55.273513 200 200 2 stamp 1 gpc1 byid stack 14031 null null null null 0 0 | 43 44 44 # 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 45 15 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.
