Changeset 8887
- Timestamp:
- Sep 22, 2006, 11:45:02 AM (20 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 2 edited
-
detrend_apply_norm.pl (modified) (1 diff)
-
detrend_calc_norm.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_apply_norm.pl
r8856 r8887 9 9 use Data::Dumper; 10 10 11 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 12 use Pod::Usage qw( pod2usage ); 13 11 14 # Parse the command-line 12 die "Apply the detrend normalisations.\n\n" . 13 "Usage: $0 DET_ID ITER CLASS_ID MULTIPLICATION_VALUE INPUT OUTPUT\n\n" 14 if scalar @ARGV != 6; 15 my $detId = shift @ARGV; # Detrend ID 16 my $iter = shift @ARGV; # Iteration 17 my $classId = shift @ARGV; # Class ID 18 my $value = shift @ARGV; # Value to multiply 19 my $input = shift @ARGV; # Input file 20 my $output = shift @ARGV; # Output file 15 my ($detId, # Detrend ID 16 $iter, # Iteration 17 $classId, # Class ID 18 $value, # Value to multiple (for normalisation) 19 $input, # Input file 20 $output # Output file 21 ); 22 GetOptions( 23 'det_id|d=s' => \$detId, 24 'iteration|n=s' => \$iter, 25 'class_id|i=s' => \$classId, 26 'value|v=s' => \$value, 27 'input_uri|u=s' => \$input, 28 'output_uri|o=s' => \$output, 29 ) or pod2usage( 2 ); 30 31 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 32 pod2usage( -msg => "Required options: --det_id --iteration --class_id --value --input_uri --output_uri", 33 -exitval => 3, 34 ) unless defined $detId 35 and defined $iter 36 and defined $classId 37 and defined $value 38 and defined $input 39 and defined $output; 40 21 41 22 42 # Look for programs we need -
trunk/ippScripts/scripts/detrend_calc_norm.pl
r8850 r8887 9 9 use Data::Dumper; 10 10 11 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 12 use Pod::Usage qw( pod2usage ); 13 14 11 15 use constant STATISTIC => 'bg'; # Background statistic to use from the database 12 16 17 # Parse command-line arguments 18 my ($detId, # Detrend id 19 $iter # Iteration 20 ); 21 GetOptions( 22 'det_id|d=s' => \$detId, 23 'iteration|i=s' => \$iter, 24 ) or pod2usage( 2 ); 13 25 14 # Parse the command-line 15 die "Calculate the detrend normalisations.\n\n" . 16 "Usage: $0 DET_ID ITER\n\n" 17 if scalar @ARGV != 2; 18 my $detId = shift @ARGV; # Detrend ID 19 my $iter = shift @ARGV; # Iteration 26 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 27 pod2usage( -msg => "Required options --det_id --iteration", 28 -exitval => 3, 29 ) unless defined $detId 30 and defined $iter; 20 31 32 33 use constant STATISTIC => 'bg'; # Background statistic to use from the database 21 34 22 35 # Look for programs we need
Note:
See TracChangeset
for help on using the changeset viewer.
