IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14067


Ignore:
Timestamp:
Jul 8, 2007, 10:33:25 AM (19 years ago)
Author:
eugene
Message:

exp_id to exp_tag

File:
1 edited

Legend:

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

    r14009 r14067  
    114114    my %matrix; # Matrix of statistics as a function of exposures and classes
    115115    foreach my $file (@files) {
    116         my $exp_tag = $file->{'exp_tag'}; # Exposure ID
     116        my $exp_id = $file->{'exp_id'}; # Exposure ID
    117117        my $class_id = $file->{'class_id'}; # Class ID
    118118        my $stat = $file->{STATISTIC()}; # Statistic of interest
    119119       
    120120        # Create matrix elements
    121         $matrix{$exp_tag} = {} if not defined $matrix{$exp_tag};
    122         $matrix{$exp_tag}->{$class_id} = $stat;
     121        $matrix{$exp_id} = {} if not defined $matrix{$exp_id};
     122        $matrix{$exp_id}->{$class_id} = $stat;
    123123    }
    124124   
    125125    # Generate the input for ppNormCalc
    126126    my $normData;                       # Normalisation data
    127     foreach my $exp_tag (keys %matrix) {
    128         $normData .= "$exp_tag\tMETADATA\n";
    129         foreach my $class_id (keys %{$matrix{$exp_tag}}) {
    130             $normData .= "\t" . $class_id . "\tF32\t" . $matrix{$exp_tag}->{$class_id} . "\n";
     127    foreach my $exp_id (keys %matrix) {
     128        $normData .= "$exp_id\tMETADATA\n";
     129        foreach my $class_id (keys %{$matrix{$exp_id}}) {
     130            $normData .= "\t" . $class_id . "\tF32\t" . $matrix{$exp_id}->{$class_id} . "\n";
    131131        }
    132132        $normData .= "END\n\n";
Note: See TracChangeset for help on using the changeset viewer.