Changeset 18562 for trunk/ippScripts/scripts/detrend_norm_calc.pl
- Timestamp:
- Jul 15, 2008, 10:33:17 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_norm_calc.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_calc.pl
r18362 r18562 20 20 use PS::IPP::Config 1.01 qw( :standard ); 21 21 22 my $ipprc = PS::IPP::Config->new(); # IPP configuration 23 22 24 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 23 25 use Pod::Usage qw( pod2usage ); 24 26 25 27 # Parse command-line arguments 26 my ($det_id, $iter, $detType, $outroot, $dbname, $verbose, $no_update, $no_op );28 my ($det_id, $iter, $detType, $outroot, $dbname, $verbose, $no_update, $no_op, $redirect ); 27 29 GetOptions( 28 'det_id|d=s' => \$det_id, # Detrend id 29 'iteration|i=s' => \$iter, # Iteration 30 'det_type|t=s' => \$detType, # Detrend type 31 'outroot|w=s' => \$outroot, # output file base name 32 'dbname|d=s' => \$dbname, # Database name 33 'verbose' => \$verbose, # Print to stdout 34 'no-update' => \$no_update, # Don't update the database? 35 'no-op' => \$no_op, # Don't do operations 36 ) or pod2usage( 2 ); 30 'det_id|d=s' => \$det_id, # Detrend id 31 'iteration|i=s' => \$iter, # Iteration 32 'det_type|t=s' => \$detType, # Detrend type 33 'outroot|w=s' => \$outroot, # output file base name 34 'dbname|d=s' => \$dbname, # Database name 35 'verbose' => \$verbose, # Print to stdout 36 'no-update' => \$no_update, # Don't update the database? 37 'no-op' => \$no_op, # Don't do operations 38 'redirect-output' => \$redirect, 39 ) or pod2usage( 2 ); 37 40 38 41 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 44 47 defined $detType and 45 48 defined $outroot; 49 50 my $logfile = $outroot . ".log"; 51 52 $ipprc->redirect_output($logfile) if $redirect; 46 53 47 54 use constant STATISTIC => 'bg'; # Background statistic to use from the database … … 225 232 $command .= " -det_id $det_id"; 226 233 $command .= " -iteration $iter"; 234 # XXX EAM : we should add this to the db : $command .= " -path_base $outroot"; 227 235 $command .= " -code $exit_code"; 228 236 $command .= " -dbname $dbname" if defined $dbname;
Note:
See TracChangeset
for help on using the changeset viewer.
