IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 19, 2006, 5:42:29 PM (20 years ago)
Author:
Paul Price
Message:

Small bugs in hashes. Works now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/detrend_calc_norm.pl

    r8715 r8850  
    3131my $files;                      # The input files
    3232{
    33     my $command = "$dettool -processed -unmask -det_id $detId -iter $iter"; # Command to run
     33    my $command = "$dettool -processed -unmask -det_id $detId -iteration $iter"; # Command to run
    3434    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    3535        run(command => $command, verbose => 1);
     
    4545my %matrix; # Matrix of statistics as a function of exposures and classes
    4646foreach my $file (@$files) {
    47     my $expId = $file->{exp_id}; # Exposure ID
    48     my $classId = $file->{class_id}; # Class ID
    49     my $stat = $file->{STATISTIC}; # Statistic of interest
     47    my $expId = $file->{'exp_id'}; # Exposure ID
     48    my $classId = $file->{'class_id'}; # Class ID
     49    my $stat = $file->{STATISTIC()}; # Statistic of interest
    5050
    5151    # Create matrix elements
     
    6060    print $normFile "$expId\tMETADATA\n";
    6161    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";
    6363    }
    64     print $normFile "\n";
     64    print $normFile "END\n\n";
    6565}
    6666close $normFile;
    67 
    6867
    6968# Run ppNormCalc
     
    8584        my $normalisation = $normItem->{value}; # Normalisation for component
    8685
    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 ".
    8887            "-norm $normalisation"; # Command to run
    8988        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.