Changeset 36042
- Timestamp:
- Aug 27, 2013, 2:34:33 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
r36018 r36042 247 247 248 248 if ($stage eq 'stack_summary') { 249 # stack_summary jobs are so different from others that we lookup in a uniquefunction249 # stack_summary jobs are so different from others that we lookup in a specialized function 250 250 return lookup_stack_summary($ipprc, $row, $imagedb, $tess_id, $component, $filter, $data_group, $option_mask, $mjd_min, $mjd_max, $verbose); 251 251 } … … 746 746 $row->{error_code} = $PSTAMP_NO_IMAGE_MATCH; 747 747 748 $component = '' if $component eq 'all'; 749 748 750 my $req_type = $row->{REQ_TYPE}; 749 751 my $results; … … 753 755 $results = runToolAndParse($command, $verbose); 754 756 } else { 757 my ($release_name, $survey, $default_tess_id) = get_release_info($row); 758 if (!$tess_id and $default_tess_id) { 759 $tess_id = $default_tess_id; 760 } 761 755 762 my $skycells; 756 763 if ($req_type eq 'bycoord') { … … 774 781 } 775 782 776 777 783 if ($skycells) { 778 784 # We have a list of skycells. Find matching projection cells. 779 780 #list of projection_cells that we've included 785 # and then matching rows in stackSummary 786 781 787 my %projection_cells_found; 782 788 foreach my $skycell (@$skycells) { … … 793 799 # print "$tess_id $skycell_id $projection_cell\n"; 794 800 795 my $command = "$stacktool -dbname $imagedb -summary -tess_id $tess_id"; 801 my $command; 802 if ($release_name or $survey) { 803 $command = "$releasetool -dbname $imagedb"; 804 if ($release_name) { 805 $command .= " -release_name $release_name"; 806 } else { 807 $command .= " -priority_order"; 808 } 809 $command .= " -surveyName $survey"; 810 } else { 811 $command = "$stacktool -dbname $imagedb"; 812 } 813 $command .= " -summary -tess_id $tess_id"; 796 814 $command .= " -projection_cell $projection_cell"; 797 815 … … 836 854 return $results; 837 855 } 856 838 857 sub lookup_diff { 839 858 my $ipprc = shift;
Note:
See TracChangeset
for help on using the changeset viewer.
