Changeset 11298 for trunk/ippScripts/scripts/detrend_reject_imfile.pl
- Timestamp:
- Jan 25, 2007, 3:15:46 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_reject_imfile.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_reject_imfile.pl
r11297 r11298 19 19 use Pod::Usage qw( pod2usage ); 20 20 21 my ($det_id, $iter, $exp_tag, $det_type, $camera, $filter, $reject, $dbname, $ no_update);21 my ($det_id, $iter, $exp_tag, $det_type, $camera, $filter, $reject, $dbname, $workdir, $no_update); 22 22 GetOptions( 23 23 'det_id|d=s' => \$det_id, … … 29 29 'reject' => \$reject 30 30 'dbname|d=s' => \$dbname, # Database name 31 'workdir|w=s' => \$workdir, # Working directory, for output files 31 32 'no-update' => \$no_update, 32 33 ) or pod2usage( 2 ); … … 68 69 } 69 70 70 my $example = ${$files}[0]->{b1_uri}; # Example file 71 my ($vol, $dir, $file) = File::Spec->splitpath( $example ); 71 unless (defined $workdir) { 72 my $example = ${$files}[0]->{b1_uri}; # Example file 73 my ($vol, $dir, $file) = File::Spec->splitpath( $example ); 74 $workdir = $dir; 75 } 72 76 73 77 # Generate the file list, and get the statistics 74 78 my $outputRoot = $exp_tag . '.detresid.' . $det_id . '.' . $iter; # Root output name 75 $outputRoot = File::Spec->cat path( $vol, $dir, $outputRoot );79 $outputRoot = File::Spec->catfile( $workdir, $outputRoot ); 76 80 $outputRoot = $ipprc->convert_filename_absolute($outputRoot); 77 81 my $list1Name = $outputRoot . '.b1.list'; # Name for the input file list for binning 1
Note:
See TracChangeset
for help on using the changeset viewer.
