Changeset 8850
- Timestamp:
- Sep 19, 2006, 5:42:29 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_calc_norm.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_calc_norm.pl
r8715 r8850 31 31 my $files; # The input files 32 32 { 33 my $command = "$dettool -processed -unmask -det_id $detId -iter $iter"; # Command to run33 my $command = "$dettool -processed -unmask -det_id $detId -iteration $iter"; # Command to run 34 34 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 35 35 run(command => $command, verbose => 1); … … 45 45 my %matrix; # Matrix of statistics as a function of exposures and classes 46 46 foreach my $file (@$files) { 47 my $expId = $file->{ exp_id}; # Exposure ID48 my $classId = $file->{ class_id}; # Class ID49 my $stat = $file->{STATISTIC }; # Statistic of interest47 my $expId = $file->{'exp_id'}; # Exposure ID 48 my $classId = $file->{'class_id'}; # Class ID 49 my $stat = $file->{STATISTIC()}; # Statistic of interest 50 50 51 51 # Create matrix elements … … 60 60 print $normFile "$expId\tMETADATA\n"; 61 61 foreach my $classId (keys %{$matrix{$expId}}) { 62 print $normFile "\t $classId\tF32\t" . $matrix{$expId}->{$classId} . "\n";62 print $normFile "\t" . $classId . "\tF32\t" . $matrix{$expId}->{$classId} . "\n"; 63 63 } 64 print $normFile " \n";64 print $normFile "END\n\n"; 65 65 } 66 66 close $normFile; 67 68 67 69 68 # Run ppNormCalc … … 85 84 my $normalisation = $normItem->{value}; # Normalisation for component 86 85 87 my $command = "$dettool -addnormstat -det_id $detId -iter $iter -class_id $className ".86 my $command = "$dettool -addnormstat -det_id $detId -iteration $iter -class_id $className ". 88 87 "-norm $normalisation"; # Command to run 89 88 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note:
See TracChangeset
for help on using the changeset viewer.
