Changeset 11298 for trunk/ippScripts/scripts/detrend_norm_exp.pl
- Timestamp:
- Jan 25, 2007, 3:15:46 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_norm_exp.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_exp.pl
r11297 r11298 19 19 use Pod::Usage qw( pod2usage ); 20 20 21 my ($det_id, $iter, $det_type, $camera, $dbname, $ no_update);21 my ($det_id, $iter, $det_type, $camera, $dbname, $workdir, $no_update); 22 22 GetOptions( 23 23 'det_id|d=s' => \$det_id, … … 26 26 'det_type|t=s' => \$det_type, 27 27 'dbname|d=s' => \$dbname, # Database name 28 'workdir|w=s' => \$workdir, # Working directory, for output files 28 29 'no-update' => \$no_update 29 30 ) or pod2usage( 2 ); … … 92 93 } 93 94 94 my $example = ${$files}[0]->{b1_uri}; # Example file, for path 95 my ($vol, $dir, $file) = File::Spec->splitpath( $example ); 95 unless (defined $workdir) { 96 my $example = ${$files}[0]->{b1_uri}; # Example file, for path 97 my ($vol, $dir, $file) = File::Spec->splitpath( $example ); 98 $workdir = $dir; 99 } 96 100 97 101 # Generate the file list, and get the statistics 98 102 my $outputRoot = $camera . '.' . $det_type . '.norm.' . $det_id . '.' . $iter; # Root output name 99 $outputRoot = File::Spec->cat path( $vol, $dir, $outputRoot );103 $outputRoot = File::Spec->catfile( $workdir, $outputRoot ); 100 104 $outputRoot = $ipprc->convert_filename_absolute( $outputRoot ); 101 105 my $list1Name = $outputRoot . '.b1.list'; # Name for the input file list for binning 1 … … 114 118 close $list2File; 115 119 116 # Output products --- need to synch with the camera configuration!120 # Output products 117 121 my $jpeg1Name = $ipprc->filename("PPIMAGE.JPEG1", $outputRoot); # Binned JPEG #1 118 122 my $jpeg2Name = $ipprc->filename("PPIMAGE.JPEG2", $outputRoot); # Binned JPEG #2
Note:
See TracChangeset
for help on using the changeset viewer.
