Changeset 16741
- Timestamp:
- Feb 28, 2008, 3:59:40 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/diff_skycell.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/diff_skycell.pl
r16563 r16741 33 33 use Pod::Usage qw( pod2usage ); 34 34 35 my ($diff_id, $dbname, $ workdir, $verbose, $no_update, $no_op);35 my ($diff_id, $dbname, $outroot, $verbose, $no_update, $no_op); 36 36 GetOptions( 37 37 'diff_id|d=s' => \$diff_id, # Diff identifier 38 38 'dbname|d=s' => \$dbname, # Database name 39 ' workdir|w=s' => \$workdir, # Working directory, for output files39 'outroot=s' => \$outroot, # Output root name 40 40 'verbose' => \$verbose, # Print to stdout 41 41 'no-update' => \$no_update, # Don't update the database? … … 47 47 -msg => "Required options: --diff_id", 48 48 -exitval => 3, 49 ) unless defined $diff_id; 49 ) unless defined $diff_id 50 and defined $outroot; 50 51 51 52 my $STATS = … … 164 165 165 166 # Get the output filenames 166 $workdir = caturi( $workdir, "tess_" . $tess_id, "sky_" . $skycell_id ) if defined $workdir; 167 my $outputRoot = $ipprc->file_prepare( "$tess_id.$skycell_id.dif$diff_id", $workdir, $input ); 168 my $outputName = $ipprc->filename("PPSUB.OUTPUT", $outputRoot); 169 my $outputMask = $ipprc->filename("PPSUB.OUTPUT.MASK", $outputRoot); 170 my $outputWeight = $ipprc->filename("PPSUB.OUTPUT.WEIGHT", $outputRoot); 171 my $outputSources = $ipprc->filename("PSPHOT.OUTPUT", $outputRoot); 172 #my $bin1Name = $ipprc->filename("PPSUB.BIN1", $outputRoot); 173 #my $bin2Name = $ipprc->filename("PPSUB.BIN2", $outputRoot); 174 my $outputStats = $outputRoot . '.stats'; 175 176 my $traceDest = 'file:' . $ipprc->file_resolve($outputRoot) . ".trace"; # Trace messages 177 my $logDest = 'file:' . $ipprc->file_resolve($outputRoot) . ".log"; # Log messages 167 my $outputName = $ipprc->filename("PPSUB.OUTPUT", $outroot); 168 my $outputMask = $ipprc->filename("PPSUB.OUTPUT.MASK", $outroot); 169 my $outputWeight = $ipprc->filename("PPSUB.OUTPUT.WEIGHT", $outroot); 170 my $outputSources = $ipprc->filename("PSPHOT.OUTPUT", $outroot); 171 #my $bin1Name = $ipprc->filename("PPSUB.BIN1", $outroot); 172 #my $bin2Name = $ipprc->filename("PPSUB.BIN2", $outroot); 173 my $outputStats = $ipprc->filename("SKYCELL.STATS", $outroot); 174 my $traceDest = $ipprc->filename("TRACE.EXP", $outroot); 175 my $logDest = $ipprc->filename("LOG.EXP", $outroot); 178 176 179 177 # Perform subtraction 180 178 unless ($no_op) { 181 my $command = "$ppSub $input $template $out putRoot";179 my $command = "$ppSub $input $template $outroot"; 182 180 $command .= " -inmask $inputMask"; 183 181 $command .= " -refmask $templateMask"; … … 218 216 # Add the subtraction result 219 217 { 220 my $command = "$difftool -adddiffskyfile -diff_id $diff_id -uri $outputName -path_base $out putRoot";218 my $command = "$difftool -adddiffskyfile -diff_id $diff_id -uri $outputName -path_base $outroot"; 221 219 $command .= $stats->cmdflags(); 222 220 $command .= " -dbname $dbname" if defined $dbname;
Note:
See TracChangeset
for help on using the changeset viewer.
