Changeset 25027 for branches/pap/ippScripts/scripts/diff_skycell.pl
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/diff_skycell.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/ippScripts/scripts/diff_skycell.pl
r23740 r25027 35 35 } 36 36 37 my ($diff_id, $dbname, $threads, $outroot, $reduction, $ verbose, $no_update, $no_op, $redirect);37 my ($diff_id, $dbname, $threads, $outroot, $reduction, $inverse, $verbose, $no_update, $no_op, $redirect); 38 38 my ($skycell_id, $diff_skyfile_id); 39 39 GetOptions( … … 44 44 'threads=s' => \$threads, # Number of threads to use 45 45 'outroot=s' => \$outroot, # Output root name 46 'inverse' => \$inverse, # Make inverse subtraction? 46 47 'reduction=s' => \$reduction, # Reduction class 47 48 'verbose' => \$verbose, # Print to stdout … … 96 97 my $camera; # Camera 97 98 my ($inputMagic, $templateMagic); # Are the inputs been magicked? 98 my $inverse = 1; # Generate inverse subtraction if warp-warp99 99 foreach my $file (@$files) { 100 100 if (defined $file->{template} and $file->{template}) { … … 107 107 # template is a stack so it doesn't need to be magicked 108 108 $templateMagic = 1; 109 $inverse = 0;110 109 ## use an explicit stack name for psphot output objects 111 110 } else { … … 123 122 $inputVariance = "PPSTACK.OUTPUT.VARIANCE"; 124 123 $inputSources = "PSPHOT.OUT.CMF.MEF"; ## this must be consistent with the value in stack_skycell.pl:161 125 $inverse = 0;126 124 } else { 127 125 $inputMask = "PSWARP.OUTPUT.MASK"; … … 297 295 # Add the subtraction result 298 296 { 299 my $command = "$difftool -adddiffskyfile -diff_id $diff_id -skycell_id $skycell_id - uri $outputName -path_base $outroot";297 my $command = "$difftool -adddiffskyfile -diff_id $diff_id -skycell_id $skycell_id -path_base $outroot"; 300 298 $command .= " $cmdflags"; 301 299 $command .= " -magicked" if $magicked;
Note:
See TracChangeset
for help on using the changeset viewer.
