Changeset 11298 for trunk/ippScripts/scripts/detrend_process_exp.pl
- Timestamp:
- Jan 25, 2007, 3:15:46 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_process_exp.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_process_exp.pl
r11297 r11298 19 19 use Pod::Usage qw( pod2usage ); 20 20 21 my ($det_id, $exp_tag, $camera, $dbname, $ no_update);21 my ($det_id, $exp_tag, $camera, $dbname, $workdir, $no_update); 22 22 GetOptions( 23 23 'det_id|d=s' => \$det_id, … … 25 25 'camera|c=s' => \$camera, 26 26 'dbname|d=s' => \$dbname, # Database name 27 'workdir|w=s' => \$workdir, # Working directory, for output files 27 28 'no-update' => \$no_update 28 29 ) or pod2usage( 2 ); … … 90 91 } 91 92 92 my $example = ${$files}[0]->{b1_uri}; # Example filename 93 my ($vol, $dir, $file) = File::Spec->splitpath( $example ); 93 unless (defined $workdir) { 94 my $example = ${$files}[0]->{b1_uri}; # Example filename 95 my ($vol, $dir, $file) = File::Spec->splitpath( $example ); 96 $workdir = $dir; 97 } 94 98 95 99 # Generate the file list, and get the statistics 96 100 my $outputRoot = $exp_tag . '.detproc.' . $det_id; # Root output name 97 $outputRoot = File::Spec->cat path( $vol, $dir, $outputRoot );101 $outputRoot = File::Spec->catfile( $workdir, $outputRoot ); 98 102 $outputRoot = $ipprc->convert_filename_absolute($outputRoot); 99 103 my $list1Name = $outputRoot . '.b1.list'; # Name for the input file list for binning 1
Note:
See TracChangeset
for help on using the changeset viewer.
