Changeset 26289 for trunk/pstamp/scripts/pstampparse.pl
- Timestamp:
- Nov 29, 2009, 3:17:29 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstampparse.pl (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstampparse.pl
r26242 r26289 193 193 my $mjd_min = $row->{MJD_MIN}; 194 194 my $mjd_max = $row->{MJD_MAX}; 195 my $label = $row->{LABEL}; 195 my $data_group = $row->{DATA_GROUP}; 196 if (!defined $data_group) { 197 # backwards compatability hook 198 $data_group = $row->{LABEL}; 199 } 200 196 201 my $x = $row->{CENTER_X}; 197 202 my $y = $row->{CENTER_Y}; … … 272 277 # request specification. An array reference is returned. 273 278 $imageList = locate_images($ipprc, $image_db, $req_type, $stage, $id, $tess_id, $search_component, 274 $inverse, $need_magic, $x, $y, $mjd_min, $mjd_max, $filter, $ label, $verbose);279 $inverse, $need_magic, $x, $y, $mjd_min, $mjd_max, $filter, $data_group, $verbose); 275 280 276 281 if (!$imageList or !@$imageList) { … … 424 429 # set up to queue an update run 425 430 queue_update_run(\$newState, \$fault, \$dep_id, $image->{image_db}, 426 $run_state, $stage, $image->{stage_id}, $need_magic , $image->{label});431 $run_state, $stage, $image->{stage_id}, $need_magic); 427 432 } 428 433 } … … 548 553 # we collected a set of sky coordinates above. 549 554 # filter the images so that only those that contain the centers of the ROIs are processed 550 my $command = "$dvoImagesAtCoords $pointsListName";555 my $command = "$dvoImagesAtCoords -coords $pointsListName"; 551 556 if ($have_skycells) { 552 557 my $tess_id = $thisRun->[0]->{tess_id}; … … 671 676 # set up to queue an update run 672 677 queue_update_run(\$newState, \$fault, \$dep_id, $image->{image_db}, 673 $run_state, $stage, $image->{stage_id}, $need_magic , $image->{label});678 $run_state, $stage, $image->{stage_id}, $need_magic); 674 679 } 675 680 } … … 801 806 return 0 if ($r1->{TESS_ID} ne $r2->{TESS_ID}); 802 807 return 0 if ($r1->{REQFILT} ne $r2->{REQFILT}); 803 return 0 if ($r1->{ LABEL} ne $r2->{LABEL});808 return 0 if ($r1->{DATA_GROUP} ne $r2->{DATA_GROUP}); 804 809 return 0 if ($r1->{MJD_MIN} ne $r2->{MJD_MAX}); 805 810 return 0 if ($r1->{MJD_MAX} ne $r2->{MJD_MAX}); … … 850 855 sub queue_update_run 851 856 { 852 my ($r_jobState, $r_fault, $r_dep_id, $imagedb, $state, $stage, $stage_id, $need_magic , $label) = @_;857 my ($r_jobState, $r_fault, $r_dep_id, $imagedb, $state, $stage, $stage_id, $need_magic) = @_; 853 858 854 859 if (($state ne 'cleaned') and ($state ne 'update') and ($state ne 'goto_cleaned')) { … … 858 863 my $dep_id; 859 864 my $command = "$pstamptool -getdependent -stage $stage -stage_id $stage_id -imagedb $imagedb"; 860 $command .= " -rlabel $label" if $label;861 865 $command .= " -no_magic" if !$need_magic; 862 866 if (!$no_update) {
Note:
See TracChangeset
for help on using the changeset viewer.
