Changeset 9169 for trunk/ippScripts/scripts/detrend_process_imfile.pl
- Timestamp:
- Oct 3, 2006, 3:54:38 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_process_imfile.pl
r9166 r9169 63 63 my $outputImage = $outputRoot . '.' . $class_id . '.fits'; 64 64 my $outputStats = $outputRoot . '.' . $class_id . '.stats'; 65 my $outputBin1 = $outputRoot . '.' . $class_id . '.b1.fits'; 66 my $outputBin2 = $outputRoot . '.' . $class_id . '.b2.fits'; 65 67 66 68 # Run ppImage … … 73 75 die "Couldn't find expected output file: $outputImage\n" if not -f $outputImage; 74 76 die "Couldn't find expected output file: $outputStats\n" if not -f $outputStats; 77 die "Couldn't find expected output file: $outputBin1\n" if not -f $outputBin1; 78 die "Couldn't find expected output file: $outputBin2\n" if not -f $outputBin2; 75 79 } 76 80 … … 91 95 # Take off the absolute path, to stuff into the database 92 96 $outputImage = File::Spec->abs2rel( $outputImage, $ipprc->workdir() ); 97 $outputBin1 = File::Spec->abs2rel( $outputBin1, $ipprc->workdir() ); 98 $outputBin2 = File::Spec->abs2rel( $outputBin2, $ipprc->workdir() ); 93 99 94 100 # Add the processed file to the database 95 101 unless ($no_update) { 96 102 my $command = "$dettool -addprocessedimfile -det_id $det_id -exp_tag $exp_tag " . 97 "-class_id $class_id -recip $recipe -uri $outputImage"; # Command to run dettool 103 "-class_id $class_id -recip $recipe -uri $outputImage -b1_uri $outputBin1 " . 104 "-b2_uri $outputBin2"; # Command to run dettool 98 105 $command .= " -bg " . $stats->bg_mean(); 99 106 if (defined($stats->bg_stdev())) {
Note:
See TracChangeset
for help on using the changeset viewer.
