Changeset 12421 for trunk/ippScripts/scripts/detrend_process_exp.pl
- Timestamp:
- Mar 12, 2007, 5:01:10 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_process_exp.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_process_exp.pl
r12079 r12421 113 113 } 114 114 115 # Set output directory 115 116 if (defined $workdir) { 116 117 $workdir = $ipprc->convert_filename_absolute( $workdir ); 118 my $subdir = "$camera.$det_type.$det_id"; 119 $workdir = File::Spec->catdir( $workdir, $subdir, $exp_tag ); 117 120 } else { 118 my $example = $ {$files}[0]->{path_base}; # Example original rootname121 my $example = $ipprc->convert_filename_absolute( ${$files}[0]->{path_base} ); # Example original name 119 122 my ($vol, $dir, $file) = File::Spec->splitpath( $example ); 120 123 $workdir = $dir; 121 124 } 125 system "mkdir -p $workdir" unless -d $workdir; 126 122 127 my $outputFile = $exp_tag . '.detproc.' . $det_id; # Root name 123 my $outputRoot = File::Spec->catfile( $workdir, $ exp_tag, $outputFile );128 my $outputRoot = File::Spec->catfile( $workdir, $outputFile ); 124 129 125 130 # output files:
Note:
See TracChangeset
for help on using the changeset viewer.
