Changeset 11298 for trunk/ippScripts/scripts/detrend_process_imfile.pl
- Timestamp:
- Jan 25, 2007, 3:15:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_process_imfile.pl
r11297 r11298 18 18 use Pod::Usage qw( pod2usage ); 19 19 20 my ($det_id, $exp_tag, $class_id, $det_type, $input_uri, $camera, $bdname, $ no_update);20 my ($det_id, $exp_tag, $class_id, $det_type, $input_uri, $camera, $bdname, $workdir, $no_update); 21 21 GetOptions( 22 22 'det_id|d=s' => \$det_id, … … 27 27 'camera|c=s' => \$camera, 28 28 'dbname|d=s' => \$dbname, # Database name 29 'workdir|w=s' => \$workdir, # Working directory, for output files 29 30 'no-update' => \$no_update 30 31 ) or pod2usage( 2 ); … … 66 67 67 68 ### Output file name 68 my ($vol, $dir, $file) = File::Spec->splitpath( $input_uri ); 69 unless (defined $workdir) { 70 my ($vol, $dir, $file) = File::Spec->splitpath( $input_uri ); 71 $workdir = $dir; 72 } 69 73 my $outputRoot = $exp_tag . '.detproc.' . $det_id; # Root name 70 $outputRoot = File::Spec->cat path( $vol, $dir, $outputRoot );74 $outputRoot = File::Spec->catfile( $workdir, $outputRoot ); 71 75 $outputRoot = $ipprc->convert_filename_absolute( $outputRoot ); 72 76 $input_uri = $ipprc->convert_filename_absolute( $input_uri );
Note:
See TracChangeset
for help on using the changeset viewer.
