Changeset 11298 for trunk/ippScripts/scripts/detrend_stack.pl
- Timestamp:
- Jan 25, 2007, 3:15:46 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_stack.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_stack.pl
r11297 r11298 19 19 use Pod::Usage qw( pod2usage ); 20 20 21 my ($det_id, $iter, $class_id, $det_type, $camera, $dbname, $ no_update);21 my ($det_id, $iter, $class_id, $det_type, $camera, $dbname, $workdir, $no_update); 22 22 GetOptions( 23 23 '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 ); … … 75 76 } 76 77 77 my $example = ${$files}[0]->{uri}; # Example file 78 my ($vol, $dir, $file) = File::Spec->splitpath( $example ); 78 unless (defined $workdir) { 79 my $example = ${$files}[0]->{uri}; # Example file 80 my ($vol, $dir, $file) = File::Spec->splitpath( $example ); 81 $workdir = $dir; 82 } 79 83 80 84 # Stack the files 81 85 my $outputRoot = $camera . '.' . $det_type . '.' . $det_id . '.' . $iter . '.' . $class_id; # Root name 82 $outputRoot = File::Spec->cat path( $vol, $dir, $outputRoot );86 $outputRoot = File::Spec->catfile( $workdir, $outputRoot ); 83 87 $outputRoot = $ipprc->convert_filename_absolute($outputRoot); 84 88 my $outputStack = $outputRoot . '.fits'; # Output name
Note:
See TracChangeset
for help on using the changeset viewer.
