IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 18, 2011, 2:09:39 PM (15 years ago)
Author:
eugene
Message:

we had 3 items conceptually equivalent to the brightness of a peak: "value", "flux", and "SN"; Ive modified pmPeak to carry explicitly named elements "rawFlux", "smoothFlux", and "detValue". Ive also added the corresponding variance values for rawFlux and smoothFlux. This lets us choose independently of the peak detection process whether flux comparisons are done relative to the smoothed or unsmoothed image. It also simplifies tests of the peak flux compared to something else

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psModules/src/objects/pmFootprint.c

    r30621 r30974  
    9898}
    9999
     100// XXX not actually used anywhere
    100101pmFootprint *pmFootprintNormalize(pmFootprint *fp) {
    101102    if (fp != NULL && !fp->normalized) {
    102         fp->peaks = psArraySort(fp->peaks, pmPeakSortBySN);
     103        if (PM_PEAKS_CULL_WITH_SMOOTHED_IMAGE) {
     104            fp->peaks = psArraySort(fp->peaks, pmPeaksSortBySmoothFluxDescend);
     105        } else {
     106            fp->peaks = psArraySort(fp->peaks, pmPeaksSortByRawFluxDescend);
     107        }
    103108        fp->normalized = true;
    104109    }
Note: See TracChangeset for help on using the changeset viewer.