Changeset 9233 for trunk/ippScripts/scripts/detrend_norm_exp.pl
- Timestamp:
- Oct 4, 2006, 12:40:28 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_norm_exp.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_exp.pl
r9145 r9233 11 11 use PS::IPP::Metadata::List qw( parse_md_list ); 12 12 use Statistics::Descriptive; 13 14 use PS::IPP::Config; 15 my $ipprc = PS::IPP::Config->new(); # IPP configuration 16 use File::Spec; 13 17 14 18 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 88 92 } 89 93 94 my $example = ${$files}[0]; # Example file, for path 95 my ($vol, $dir, $file) = File::Spec->splitpath( $example ); 96 90 97 # Generate the file list, and get the statistics 91 98 my $outputRoot = $camera . '.' . $det_type . '.norm.' . $det_id . '.' . $iter; # Root output name 99 $outputRoot = File::Spec->rel2abs( File::Spec->catpath( $vol, $dir, $outputRoot ), $ipprc->workdir() ); 92 100 my $list1Name = $outputRoot . '.b1.list'; # Name for the input file list for binning 1 93 101 my $list2Name = $outputRoot . '.b2.list'; # Name for the input file list for binning 2 … … 97 105 open my $list2File, '>' . $list2Name; 98 106 foreach my $file (@$files) { 99 print $list1File $file->{b1_uri}. "\n";100 print $list2File $file->{b2_uri}. "\n";107 print $list1File File::Spec-->rel2abs( $file->{b1_uri}, $ipprc->workdir() ) . "\n"; 108 print $list2File File::Spec-->rel2abs( $file->{b2_uri}, $ipprc->workdir() ) . "\n"; 101 109 push @means, $file->{bg}; 102 110 push @stdevs, $file->{bg_stdev}; … … 126 134 127 135 # Add the result into the database 136 $jpeg1Name = File::Spec->abs2rel( $jpeg1Name, $ipprc->workdir() ); 137 $jpeg2Name = File::Spec->abs2rel( $jpeg2Name, $ipprc->workdir() ); 128 138 unless ($no_update) { 129 139 my $command = "$dettool -addnormexp -det_id $det_id -iteration $iter " . … … 133 143 run(command => $command, verbose => 1); 134 144 die "Unable to perform dettool -addnormexp: $error_code\n" if not $success; 145 146 unlink $list1File; 147 unlink $list2File; 135 148 } 136 149
Note:
See TracChangeset
for help on using the changeset viewer.
