IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23427


Ignore:
Timestamp:
Mar 19, 2009, 11:30:36 AM (17 years ago)
Author:
eugene
Message:

normalizations in the new scheme should be inverted (this was not carried from eam_branch_20090303)

File:
1 edited

Legend:

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

    r23342 r23427  
    124124    # write the normalizations to a file as a metadata config file in the form: class_id F32 value
    125125    # XXX a possible optimization: if there is only one imfile, skip normalization
     126    # Correcting the resid imfiles and stats requires us to *divide* by the normalization
     127    # we do this by inverting the normalization here:
    126128    my $normsFile;
    127129    ($normsFile, $normsName) = tempfile( "/tmp/$exp_tag.detresid.$det_id.$iter.norms.XXXX", UNLINK => !$save_temps );
     
    129131    foreach my $norm (@$normsMD) {
    130132        my $class_id = $norm->{class_id};
    131         my $normalization = $norm->{norm};
     133        my $normalization = 1.0 / $norm->{norm};
    132134
    133135        $norms{$class_id} = $normalization;
Note: See TracChangeset for help on using the changeset viewer.