IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2006, 12:16:03 PM (20 years ago)
Author:
Paul Price
Message:

Changing 'exp id' to 'exp tag' throughout, following corresponding change in database.

File:
1 edited

Legend:

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

    r9093 r9097  
    6161my %matrix; # Matrix of statistics as a function of exposures and classes
    6262foreach my $file (@$files) {
    63     my $expId = $file->{'exp_id'}; # Exposure ID
     63    my $expTag = $file->{'exp_tag'}; # Exposure ID
    6464    my $classId = $file->{'class_id'}; # Class ID
    6565    my $stat = $file->{STATISTIC()}; # Statistic of interest
    6666
    6767    # Create matrix elements
    68     $matrix{$expId} = {} if not defined $matrix{$expId};
    69     $matrix{$expId}->{$classId} = $stat;
     68    $matrix{$expTag} = {} if not defined $matrix{$expId};
     69    $matrix{$expTag}->{$classId} = $stat;
    7070}
    7171
    7272# Generate the input for ppNormCalc
    7373my $normData;                   # Normalisation data
    74 foreach my $expId (keys %matrix) {
    75     $normData .= "$expId\tMETADATA\n";
    76     foreach my $classId (keys %{$matrix{$expId}}) {
    77         $normData .= "\t" . $classId . "\tF32\t" . $matrix{$expId}->{$classId} . "\n";
     74foreach my $expTag (keys %matrix) {
     75    $normData .= "$expTag\tMETADATA\n";
     76    foreach my $classId (keys %{$matrix{$expTag}}) {
     77        $normData .= "\t" . $classId . "\tF32\t" . $matrix{$expTag}->{$classId} . "\n";
    7878    }
    7979    $normData .= "END\n\n";
Note: See TracChangeset for help on using the changeset viewer.