IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21176


Ignore:
Timestamp:
Jan 26, 2009, 2:03:01 PM (17 years ago)
Author:
eugene
Message:

better values for peak->SN and flux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotMergeSources.c

    r20356 r21176  
    100100        peak->xf = xpos;
    101101        peak->yf = ypos;
    102         peak->flux = flux;
    103         peak->SN = snMin + flux;
     102        peak->flux = flux; // this are being set wrong, but does it matter?
     103
     104        if (isfinite (source->errMag) && (source->errMag > 0.0)) {
     105          peak->SN = 1.0 / source->errMag;
     106        } else {
     107          peak->SN = 0.0;
     108        }
    104109
    105110        psArrayAdd (detections->peaks, 100, peak);
Note: See TracChangeset for help on using the changeset viewer.