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