Changeset 35500 for trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
- Timestamp:
- May 3, 2013, 11:39:01 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
r35470 r35500 471 471 $base_name = "path_base"; # name of the field for the warptool output 472 472 } elsif ($stage eq "diff") { 473 # XXX: is this path ever used for diff images anymore? 473 474 474 if ($component or $use_imfile_id or !$skycenter) { 475 475 $command = "$difftool -diffskyfile -pstamp_order -dbname $imagedb"; … … 490 490 $psf_name = "PSPHOT.PSF.SKY.SAVE"; 491 491 $base_name = "path_base"; 492 my $diff_mode = getDiffMode($row->{RUN_TYPE}); 493 $command .= " -diff_mode $diff_mode" if $diff_mode; 492 494 } elsif ($stage eq "stack") { 493 495 $skycell_id = $component; … … 735 737 736 738 my $command = "$difftool -dbname $imagedb -pstamp_order"; 737 739 738 740 my $choose_components = 0; 739 741 if ($byid) { … … 751 753 } 752 754 755 my $diff_mode = getDiffMode($rowList->[0]->{RUN_TYPE}); 756 $command .= " -diff_mode $diff_mode" if $diff_mode; 757 753 758 my $output = runToolAndParse($command, $verbose); 754 759 … … 1836 1841 } 1837 1842 1843 sub getDiffMode { 1844 my $run_type = shift; 1845 my $diff_mode; 1846 if (!isnull($run_type)) { 1847 $run_type = lc($run_type); 1848 if ($run_type eq 'warp_warp') { 1849 $diff_mode = 1; 1850 } elsif ($run_type eq 'warp_stack') { 1851 $diff_mode = 2; 1852 } elsif ($run_type eq 'stack_stack') { 1853 $diff_mode = 4; 1854 } else { 1855 print STDERR "Ingnoring unrecognized diff RUN_TYPE : $run_type\n"; 1856 } 1857 } 1858 return $diff_mode; 1859 } 1860 1861 1838 1862 sub my_die 1839 1863 {
Note:
See TracChangeset
for help on using the changeset viewer.
