Changeset 14048 for trunk/ippScripts/scripts/detrend_stack.pl
- Timestamp:
- Jul 6, 2007, 3:44:38 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_stack.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_stack.pl
r14009 r14048 88 88 } 89 89 90 $workdir = caturi( $workdir, "$camera.$det_type.$det_id" ) if defined $workdir;91 92 my $outputRoot = $ipprc->file_prepare( "$camera.$det_type.$det_id.$iter.$class_id", $workdir, ${$files}[0]->{uri} );93 my $outputStack = $outputRoot . '.fits'; # Output name94 my $outputStats = $outputRoot . '.stats'; # Statistics name95 96 90 # Get list of files to stack 97 my $files; # Array of files to be stacked91 my ($files, $command, $success, $error_code, $full_buf, $stdout_buf, $stderr_buf); 98 92 { 99 my$command = "$dettool -processedimfile -included";93 $command = "$dettool -processedimfile -included"; 100 94 $command .= " -det_id $det_id"; 101 95 $command .= " -class_id $class_id"; 102 96 $command .= " -dbname $dbname" if defined $dbname; 103 97 104 my( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =98 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 105 99 run(command => $command, verbose => $verbose); 106 100 unless ($success) { … … 116 110 } 117 111 118 my $command = "$ppMerge $outputStack"; # Command to run 112 $workdir = caturi( $workdir, "$camera.$det_type.$det_id" ) if defined $workdir; 113 114 my $outputRoot = $ipprc->file_prepare( "$camera.$det_type.$det_id.$iter.$class_id", $workdir, ${$files}[0]->{uri} ); 115 my $outputStack = $outputRoot . '.fits'; # Output name 116 my $outputStats = $outputRoot . '.stats'; # Statistics name 117 118 $command = "$ppMerge $outputStack"; # Command to run 119 119 foreach my $file (@$files) { 120 120 $command .= ' ' . $file->{uri}; … … 128 128 unless ($no_op) { 129 129 130 my( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =130 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 131 131 run(command => $command, verbose => $verbose); 132 132 unless ($success) {
Note:
See TracChangeset
for help on using the changeset viewer.
