IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 12, 2008, 3:14:57 PM (17 years ago)
Author:
Paul Price
Message:

Combine with weights based on the background noise in the image after convolution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackReadout.c

    r20499 r20710  
    117117            continue;
    118118        }
    119         pmFPA *fpa = ro->parent->parent->parent; // Parent FPA
    120 
    121         float weighting = psMetadataLookupF32(&mdok, fpa->analysis, "PPSTACK.WEIGHTING"); // Relative weight
     119
     120        float weighting = psMetadataLookupF32(&mdok, ro->analysis, "PPSTACK.WEIGHTING"); // Relative weight
    122121        if (!mdok || !isfinite(weighting)) {
    123             psWarning("No WEIGHTING supplied for image %d --- set to unity.", i);
     122            psWarning("No weighting supplied for image %d --- set to unity.", i);
    124123            weighting = 1.0;
     124        } else {
     125            psLogMsg("ppStack", PS_LOG_INFO, "Weighting for image %d is %f", i, weighting);
    125126        }
    126127
     
    210211        pmReadout *ro = readouts->data[i];
    211212        assert(ro);
    212         pmFPA *fpa = ro->parent->parent->parent; // Parent FPA
    213213
    214214        bool mdok;                      // Status of MD lookup
    215         float weighting = psMetadataLookupF32(&mdok, fpa->analysis, "PPSTACK.WEIGHTING"); // Relative weight
     215        float weighting = psMetadataLookupF32(&mdok, ro->analysis, "PPSTACK.WEIGHTING"); // Relative weight
    216216        if (!mdok || !isfinite(weighting)) {
    217217            psWarning("No WEIGHTING supplied for image %d --- set to unity.", i);
Note: See TracChangeset for help on using the changeset viewer.