Changeset 11298 for trunk/ippScripts/scripts/detrend_norm_apply.pl
- Timestamp:
- Jan 25, 2007, 3:15:46 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_norm_apply.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_apply.pl
r11297 r11298 24 24 $detType, # Detrend type 25 25 $dbname, # Database name 26 $workdir, # Working directory, for output files 26 27 $no_update # Don't update the database 27 28 ); … … 35 36 'det_type|t=s' => \$detType, 36 37 'dbname|d=s' => \$dbname, 38 'workdir|w=s' => \$workdir, # Working directory, for output files 37 39 'no-update' => \$no_update 38 40 ) or pod2usage( 2 ); … … 60 62 die "Can't find required tools.\n" if $missing_tools; 61 63 62 my ($vol, $dir, $file) = File::Spec->splitpath( $input ); 64 unless (defined $workdir) { 65 my ($vol, $dir, $file) = File::Spec->splitpath( $input ); 66 $workdir = $dir; 67 } 63 68 $input = $ipprc->convert_filename_absolute( $input ); 64 69 65 70 # Output name 66 71 my $outputRoot = $camera . '.' . $detType . '.norm.' . $detId . '.' . $iter; # Root output name 67 $outputRoot = File::Spec->cat path( $vol, $dir, $outputRoot );72 $outputRoot = File::Spec->catfile( $workdir, $outputRoot ); 68 73 $outputRoot = $ipprc->convert_filename_absolute($outputRoot); 69 74
Note:
See TracChangeset
for help on using the changeset viewer.
