Changeset 19652 for trunk/ippScripts/scripts/detrend_resid_exp.pl
- Timestamp:
- Sep 22, 2008, 3:48:05 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_resid_exp.pl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_resid_exp.pl
r19627 r19652 82 82 $reduction = 'DETREND' unless defined $reduction; 83 83 84 my $recipe1 = $ipprc->reduction($reduction, 'JPEG_BIN1_RESID_' . uc($det_type)); # Recipe to use 85 &my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $PS_EXIT_PROG_ERROR) unless defined $recipe1; 86 87 my $recipe2 = $ipprc->reduction($reduction, 'JPEG_BIN2_RESID_' . uc($det_type)); # Recipe to use 88 &my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $PS_EXIT_PROG_ERROR) unless defined $recipe2; 84 my $recipe = $ipprc->reduction($reduction, uc($det_type) . '_JPEG_RESID'); # Recipe to use 85 &my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $PS_EXIT_PROG_ERROR) unless defined $recipe; 89 86 90 87 # Look for programs we need … … 129 126 my ($statFile, $statName) = tempfile( "/tmp/$exp_tag.detresid.$det_id.$iter.stats.XXXX", UNLINK => !$save_temps ); 130 127 foreach my $line (@$stdout_buf) { 131 print $statFile $line;128 print $statFile $line; 132 129 } 133 130 close $statFile; … … 143 140 144 141 foreach my $line (@$stdout_buf) { 145 $cmdflags .= " $line";142 $cmdflags .= " $line"; 146 143 } 147 144 print "cmdflags: $cmdflags\n"; … … 173 170 unless ($no_op) { 174 171 # Make the jpeg for binning 1 175 $command = "$ppImage -list $list1Name $outroot -recipe PPIMAGE $recipe1"; # Command to run 172 $command = "$ppImage -list $list1Name $outroot"; # Command to run 173 $command .= " -recipe PPIMAGE PPIMAGE_N"; 174 $comamnd .= " -recipe JPEG $recipe"; 176 175 $command .= " -dbname $dbname" if defined $dbname; 177 176 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 184 183 185 184 # Make the jpeg for binning 2 186 $command = "$ppImage -list $list2Name $outroot -recipe PPIMAGE $recipe2"; # Command to run 185 $command = "$ppImage -list $list2Name $outroot"; # Command to run 186 $command .= " -recipe PPIMAGE PPIMAGE_N"; 187 $command .= " -recipe JPEG $recipe"; 187 188 $command .= " -dbname $dbname" if defined $dbname; 188 189 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 530 531 531 532 532 sub value_for_flag 533 sub value_for_flag 533 534 { 534 535 my $cmdflags = shift; … … 537 538 my $value = 0.0; 538 539 if ($cmdflags =~ m|$flag|) { 539 ($value) = $cmdflags =~ m|$flag\s+(\S+)|;540 ($value) = $cmdflags =~ m|$flag\s+(\S+)|; 540 541 } 541 542 $value;
Note:
See TracChangeset
for help on using the changeset viewer.
