Changeset 35433
- Timestamp:
- Apr 25, 2013, 11:53:35 AM (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
r35398 r35433 434 434 if ($use_releasetool) { 435 435 $command = "$releasetool -dbname $imagedb -priority_order -listrelexp $release_args"; 436 $skycell_id = $component; 436 437 $choose_components = 1; 437 438 } else { … … 444 445 } 445 446 } else { 446 $command = " -listrun";447 $command .= " -listrun"; 447 448 $choose_components = 1; 448 449 } … … 568 569 # match the coords in the rows to the components in the runs 569 570 # returns an actual list of images 570 if ($skycenter ) {571 if ($skycenter and $req_type ne 'byskycell') { 571 572 $images = selectComponents($ipprc, $imagedb, $req_type, $stage, $rowList, $images, $verbose); 572 573 } else { … … 644 645 $out->{data_state} = $out->{state} = $out->{stack_state}; 645 646 } else { 647 # XXX: Consider looking up skycal results even if we are 648 # not using releasetool 646 649 $out->{data_state} = $out->{state}; 647 650 } … … 655 658 if ($selectedAstrom) { 656 659 $out->{astrom} = $selectedAstrom; 657 $out->{cam_path_base} = basename($selectedAstrom); 660 $out->{cam_path_base} = $selectedAstrom; 661 if ($selectedAstrom =~ /\.smf$/) { 662 $out->{cam_path_base} =~ s/\.smf$//; 663 } elsif ($selectedAstrom =~ /\.cmf$/) { 664 $out->{cam_path_base} =~ s/\.cmf$//; 665 } else { 666 die ("ERROR: don't know how to extract cam_path_base from $selectedAstrom\n"); 667 } 658 668 } elsif (! defined $out->{astrom}) { 659 669 if (! find_astrometry($ipprc, $imagedb, $out, $verbose)) { … … 1525 1535 } 1526 1536 1527 if (($req_type eq "byid") or ($req_type eq "byexp")) { 1537 # XXX: Why did I make this restriction? I added byskycell 1538 if (($req_type eq "byid") or ($req_type eq "byexp") or ($req_type eq 'byskycell')) { 1528 1539 my ($last_tess_id, $tess_dir_abs, $astrom_file) = ("", "", ""); 1529 1540 foreach my $run (@$runList) {
Note:
See TracChangeset
for help on using the changeset viewer.
