Changeset 10419 for trunk/ippScripts/scripts/detrend_norm_exp.pl
- Timestamp:
- Dec 3, 2006, 8:42:44 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_norm_exp.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_exp.pl
r9892 r10419 95 95 # Generate the file list, and get the statistics 96 96 my $outputRoot = $camera . '.' . $det_type . '.norm.' . $det_id . '.' . $iter; # Root output name 97 $outputRoot = File::Spec->rel2abs( File::Spec->catpath( $vol, $dir, $outputRoot ), $ipprc->workdir() ); 97 $outputRoot = File::Spec->catpath( $vol, $dir, $outputRoot ); 98 $outputRoot = $ipprc->convert_filename ($outputRoot); 98 99 my $list1Name = $outputRoot . '.b1.list'; # Name for the input file list for binning 1 99 100 my $list2Name = $outputRoot . '.b2.list'; # Name for the input file list for binning 2 … … 103 104 open my $list2File, '>' . $list2Name; 104 105 foreach my $file (@$files) { 105 print $list1File ( File::Spec->rel2abs( $file->{b1_uri}, $ipprc->workdir()) . "\n");106 print $list2File ( File::Spec->rel2abs( $file->{b2_uri}, $ipprc->workdir()) . "\n");106 print $list1File ($ipprc->convert_filename ( $file->{b1_uri} ) . "\n"); 107 print $list2File ($ipprc->convert_filename ( $file->{b2_uri} ) . "\n"); 107 108 push @means, $file->{bg}; 108 109 push @stdevs, $file->{bg_stdev}; … … 132 133 133 134 # Add the result into the database 134 $jpeg1Name = File::Spec->abs2rel( $jpeg1Name, $ipprc->workdir());135 $jpeg2Name = File::Spec->abs2rel( $jpeg2Name, $ipprc->workdir());135 $jpeg1Name = $ipprc->convert_filename ( $jpeg1Name ); 136 $jpeg2Name = $ipprc->convert_filename ( $jpeg2Name ); 136 137 unless ($no_update) { 137 138 my $command = "$dettool -addnormalizedexp -det_id $det_id -iteration $iter " .
Note:
See TracChangeset
for help on using the changeset viewer.
