Changeset 18562 for trunk/ippScripts/scripts/detrend_norm_exp.pl
- Timestamp:
- Jul 15, 2008, 10:33:17 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_norm_exp.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_exp.pl
r17943 r18562 26 26 use Pod::Usage qw( pod2usage ); 27 27 28 my ($det_id, $iter, $det_type, $camera, $outroot, $dbname, $reduction, $verbose, $no_update, $no_op, $ save_temps);28 my ($det_id, $iter, $det_type, $camera, $outroot, $dbname, $reduction, $verbose, $no_update, $no_op, $redirect, $save_temps); 29 29 GetOptions( 30 'det_id|d=s' => \$det_id, 31 'iteration|i=s' => \$iter, 32 'camera|c=s' => \$camera, 33 'det_type|t=s' => \$det_type, 34 'outroot|w=s' => \$outroot, # output file base name 35 'dbname|d=s' => \$dbname, # Database name 36 'reduction|=s' => \$reduction, 37 'verbose' => \$verbose, # Print to stdout 38 'no-update' => \$no_update, 39 'no-op' => \$no_op, 40 'save-temps' => \$save_temps, # Save temporary files? 41 ) or pod2usage( 2 ); 30 'det_id|d=s' => \$det_id, 31 'iteration|i=s' => \$iter, 32 'camera|c=s' => \$camera, 33 'det_type|t=s' => \$det_type, 34 'outroot|w=s' => \$outroot, # output file base name 35 'dbname|d=s' => \$dbname, # Database name 36 'reduction|=s' => \$reduction, 37 'verbose' => \$verbose, # Print to stdout 38 'no-update' => \$no_update, 39 'no-op' => \$no_op, 40 'redirect-output' => \$redirect, 41 'save-temps' => \$save_temps, # Save temporary files? 42 ) or pod2usage( 2 ); 42 43 43 44 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 49 50 defined $det_type and 50 51 defined $outroot; 52 53 my $logfile = $outroot . ".log"; 54 55 $ipprc->redirect_output($logfile) if $redirect; 51 56 52 57 $ipprc->define_camera($camera); … … 87 92 my ($files, $command, $success, $error_code, $full_buf, $stdout_buf, $stderr_buf); 88 93 { 89 $command = "$dettool -normalizedimfile -det_id $det_id -iteration $iter"; # Command to run 94 $command = "$dettool -normalizedimfile"; # Command to run 95 $command .= " -det_id $det_id"; 96 $command .= " -iteration $iter"; 90 97 $command .= " -dbname $dbname" if defined $dbname; 91 98 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 181 188 $command .= " -det_id $det_id"; 182 189 $command .= " -iteration $iter"; 190 $command .= " -path_base $outroot "; 183 191 $command .= " -code $exit_code"; 184 192 $command .= " -dbname $dbname" if defined $dbname;
Note:
See TracChangeset
for help on using the changeset viewer.
