Changeset 16196 for trunk/ippScripts/scripts/detrend_norm_exp.pl
- Timestamp:
- Jan 22, 2008, 5:36:36 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_norm_exp.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_exp.pl
r15853 r16196 35 35 use Pod::Usage qw( pod2usage ); 36 36 37 my ($det_id, $iter, $det_type, $camera, $ dbname, $workdir, $reduction, $no_update, $no_op);37 my ($det_id, $iter, $det_type, $camera, $outroot, $dbname, $reduction, $no_update, $no_op); 38 38 GetOptions( 39 39 'det_id|d=s' => \$det_id, … … 41 41 'camera|c=s' => \$camera, 42 42 'det_type|t=s' => \$det_type, 43 'outroot|w=s' => \$outroot, # output file base name 43 44 'dbname|d=s' => \$dbname, # Database name 44 'workdir|w=s' => \$workdir, # Working directory, for output files45 45 'reduction|=s' => \$reduction, 46 46 'no-update' => \$no_update, … … 49 49 50 50 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 51 pod2usage( -msg => "Required options: --det_id --iteration --camera --det_type", 52 -exitval => 3) 53 unless defined $det_id 54 and defined $iter 55 and defined $camera 56 and defined $det_type; 51 pod2usage( -msg => "Required options: --det_id --iteration --camera --det_type --outroot", 52 -exitval => 3) unless 53 defined $det_id and 54 defined $iter and 55 defined $camera and 56 defined $det_type and 57 defined $outroot; 57 58 58 59 $ipprc->define_camera($camera); … … 126 127 close $list2File; 127 128 128 # Output products 129 $workdir = caturi( $workdir, "$camera.$det_type.$det_id" ) if defined $workdir; 130 my $outputRoot = $ipprc->file_prepare( "$camera.$det_type.norm.$det_id.$iter", $workdir ); 131 my $jpeg1Name = $ipprc->filename("PPIMAGE.JPEG1", $outputRoot); # Binned JPEG #1 132 my $jpeg2Name = $ipprc->filename("PPIMAGE.JPEG2", $outputRoot); # Binned JPEG #2 129 # outroot examples (HOST components must be set) 130 # file://data/ipp004.0/gpc1/20080130 131 # neb:///ipp004-v1/gpc1/20080130 132 # neb:///*/gpc1/20080130 (volume not specified) 133 134 # check for existing directory, generate if needed 135 $ipprc->outroot_prepare($outroot); 136 137 my $jpeg1Name = $ipprc->filename("PPIMAGE.JPEG1", $outroot); # Binned JPEG #1 138 my $jpeg2Name = $ipprc->filename("PPIMAGE.JPEG2", $outroot); # Binned JPEG #2 133 139 134 140 unless ($no_op) { 135 141 # Make the jpeg for binning 1 136 $command = "$ppImage -list $list1Name $out putRoot -recipe PPIMAGE $recipe1"; # Command to run142 $command = "$ppImage -list $list1Name $outroot -recipe PPIMAGE $recipe1"; # Command to run 137 143 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 138 144 run(command => $command, verbose => 1); … … 140 146 141 147 # Make the jpeg for binning 2 142 $command = "$ppImage -list $list2Name $out putRoot -recipe PPIMAGE $recipe2"; # Command to run148 $command = "$ppImage -list $list2Name $outroot -recipe PPIMAGE $recipe2"; # Command to run 143 149 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 144 150 run(command => $command, verbose => 1); … … 152 158 $command .= " -iteration $iter"; 153 159 $command .= " -recip $recipe1,$recipe2"; 154 $command .= " -path_base $out putRoot ";160 $command .= " -path_base $outroot "; 155 161 $command .= " -dbname $dbname" if defined $dbname; 156 162 $command .= $stats->cmdflags();
Note:
See TracChangeset
for help on using the changeset viewer.
