Changeset 11298 for trunk/ippScripts/scripts/detrend_resid.pl
- Timestamp:
- Jan 25, 2007, 3:15:46 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_resid.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_resid.pl
r11297 r11298 20 20 21 21 my ($det_id, $iter, $exp_tag, $class_id, $det_type, $detrend, 22 $input_uri, $camera, $mode, $dbname, $ no_update);22 $input_uri, $camera, $mode, $dbname, $workdir, $no_update); 23 23 GetOptions( 24 24 'det_id|d=s' => \$det_id, … … 32 32 'mode|m=s' => \$mode, 33 33 'dbname|d=s' => \$dbname, # Database name 34 'workdir|w=s' => \$workdir, # Working directory, for output files 34 35 'no-update' => \$no_update, 35 36 ) or pod2usage( 2 ); … … 99 100 100 101 ### Output file names --- must match camera configuration! 101 my ($vol, $dir, $file) = File::Spec->splitpath( $input_uri ); 102 unless (defined $workdir) { 103 my ($vol, $dir, $file) = File::Spec->splitpath( $input_uri ); 104 $workdir = $dir; 105 } 102 106 my $outputRoot = $exp_tag . '.detresid.' . $det_id . '.' . $iter; # Root name 103 $outputRoot = File::Spec->cat path( $vol, $dir, $outputRoot );107 $outputRoot = File::Spec->catfile( $workdir, $outputRoot ); 104 108 $outputRoot = $ipprc->convert_filename_absolute( $outputRoot ); 105 109 $input_uri = $ipprc->convert_filename_absolute( $input_uri );
Note:
See TracChangeset
for help on using the changeset viewer.
