Changeset 16308 for trunk/ippScripts/scripts/detrend_norm_calc.pl
- Timestamp:
- Feb 5, 2008, 11:47:19 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_norm_calc.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_calc.pl
r16196 r16308 32 32 33 33 # Parse command-line arguments 34 my ($det_id, $iter, $detType, $outroot, $dbname, $ no_update, $no_op);34 my ($det_id, $iter, $detType, $outroot, $dbname, $verbose, $no_update, $no_op); 35 35 GetOptions( 36 36 'det_id|d=s' => \$det_id, # Detrend id … … 39 39 'outroot|w=s' => \$outroot, # output file base name 40 40 'dbname|d=s' => \$dbname, # Database name 41 'verbose' => \$verbose, # Print to stdout 41 42 'no-update' => \$no_update, # Don't update the database? 42 43 'no-op' => \$no_op, # Don't do operations … … 88 89 my @command = split /\s+/, $command; 89 90 my ( $stdin, $stdout, $stderr ); # Buffers for running program 90 print "Running [$command]...\n" ;91 print "Running [$command]...\n" if $verbose; 91 92 if (not run(\@command, \$stdin, \$stdout, \$stderr)) { 92 93 &my_die("Unable to perform dettool -processedimfile on detrend $det_id/$iter: $?", 93 94 $det_id, $iter, $PS_EXIT_SYS_ERROR); 94 95 } 95 # print $stdout . "\n";96 print $stdout . "\n" if $verbose; 96 97 97 98 # Because of the length, need to split into individual metadatas --- it parses SO much quicker! … … 141 142 my ( $stdout, $stderr ); # Buffers for running program 142 143 my @command = split /\s+/, $ppNormCalc; 143 print "Running [$ppNormCalc]...\n" ;144 print "Running [$ppNormCalc]...\n" if $verbose; 144 145 if (not run(\@command, \$normData, \$stdout, \$stderr)) { 145 146 &my_die("Unable to perform ppNormCalc: $?", $det_id, $iter, $PS_EXIT_SYS_ERROR); 146 147 } 147 print $stdout . "\n" ;148 print $stdout . "\n" if $verbose; 148 149 149 150 # Parse the output … … 187 188 188 189 my ( $stdin, $stdout, $stderr ); # Buffers for running program 189 print "Running [$command]...\n" ;190 print "Running [$command]...\n" if $verbose; 190 191 if (not run \@command, \$stdin, \$stdout, \$stderr) { 191 192 warn("Unable to perform dettool -addnormstat for $className: $?"); 192 193 exit($PS_EXIT_SYS_ERROR); 193 194 } 194 print $stdout . "\n" ;195 print $stdout . "\n" if $verbose; 195 196 } 196 197 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
