Changeset 16196 for trunk/ippScripts/scripts/detrend_reject_imfile.pl
- Timestamp:
- Jan 22, 2008, 5:36:36 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_reject_imfile.pl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_reject_imfile.pl
r14823 r16196 43 43 44 44 # parse the command-line options 45 my ($det_id, $iter, $exp_id, $exp_tag, $det_type, $camera, $filter, $reject, $ dbname, $workdir, $reduction, $no_update, $no_op);45 my ($det_id, $iter, $exp_id, $exp_tag, $det_type, $camera, $filter, $reject, $outroot, $dbname, $reduction, $no_update, $no_op); 46 46 GetOptions( 47 47 'det_id|d=s' => \$det_id, … … 51 51 'det_type|t=s' => \$det_type, 52 52 'camera=s' => \$camera, 53 'outroot|w=s' => \$outroot, # output file base name 53 54 'filter=s' => \$filter, 54 55 'reject' => \$reject, 55 56 'dbname|d=s' => \$dbname, # Database name 56 'workdir|w=s' => \$workdir, # Working directory, for output files57 57 'reduction|=s' => \$reduction, 58 58 'no-update' => \$no_update, … … 61 61 62 62 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 63 pod2usage( -msg => "Required options: --det_id --iteration --exp_id --exp_tag --det_type --camera", 64 -exitval => 3) 65 unless defined $det_id 66 and defined $iter 67 and defined $exp_id 68 and defined $exp_tag 69 and defined $det_type 70 and defined $camera; 63 pod2usage( -msg => "Required options: --det_id --iteration --exp_id --exp_tag --det_type --camera --outroot", 64 -exitval => 3) unless 65 defined $det_id and 66 defined $iter and 67 defined $exp_id and 68 defined $exp_tag and 69 defined $det_type and 70 defined $camera and 71 defined $outroot; 71 72 72 73 # load IPP config information for the specified camera … … 144 145 } 145 146 146 # Output products 147 $workdir = caturi( $workdir, "$camera.$det_type.$det_id" ) if defined $workdir; 148 my $outputRoot = $ipprc->file_prepare( "$exp_tag/$exp_tag.detresid.$det_id.$iter", $workdir, ${$files}[0]->{path_base} ); 149 my $jpeg1Name = $ipprc->filename("PPIMAGE.JPEG1", $outputRoot); # Binned JPEG #1 150 my $jpeg2Name = $ipprc->filename("PPIMAGE.JPEG2", $outputRoot); # Binned JPEG #2 151 my $logName = $ipprc->filename("LOG.EXP", $outputRoot); # Name for log 147 # outroot examples (HOST components must be set) 148 # file://data/ipp004.0/gpc1/20080130 149 # neb:///ipp004-v1/gpc1/20080130 150 # neb:///*/gpc1/20080130 (volume not specified) 151 152 # check for existing directory, generate if needed 153 $ipprc->outroot_prepare($outroot); 154 155 my $jpeg1Name = $ipprc->filename("PPIMAGE.JPEG1", $outroot); # Binned JPEG #1 156 my $jpeg2Name = $ipprc->filename("PPIMAGE.JPEG2", $outroot); # Binned JPEG #2 157 my $logName = $ipprc->filename("LOG.EXP", $outroot); # Name for log 152 158 153 159 my $logFile; … … 170 176 unless ($no_op) { 171 177 # Make the jpeg for binning 1 172 $command = "$ppImage -list $list1Name $out putRoot -recipe PPIMAGE $recipe1"; # Command to run178 $command = "$ppImage -list $list1Name $outroot -recipe PPIMAGE $recipe1"; # Command to run 173 179 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 174 180 run(command => $command, verbose => 1); … … 180 186 181 187 # Make the jpeg for binning 2 182 $command = "$ppImage -list $list2Name $out putRoot -recipe PPIMAGE $recipe2"; # Command to run188 $command = "$ppImage -list $list2Name $outroot -recipe PPIMAGE $recipe2"; # Command to run 183 189 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 184 190 run(command => $command, verbose => 1); … … 502 508 503 509 $command = "$dettool -addresidexp -det_id $det_id -iteration $iter -exp_id $exp_id"; 504 $command .= " -recip $recipe1,$recipe2 -path_base $out putRoot ";510 $command .= " -recip $recipe1,$recipe2 -path_base $outroot "; 505 511 $command .= ' -reject' if $reject; 506 512 $command .= " -dbname $dbname" if defined $dbname;
Note:
See TracChangeset
for help on using the changeset viewer.
