IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 13, 2008, 9:32:36 PM (17 years ago)
Author:
Paul Price
Message:

Had correction ratio around the wrong way. Problem was revealed when
using it on M31 --- there the correction is BIG because of confusion
noise.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAMaskWeight.c

    r20685 r20749  
    491491    for (int i = 0; i < num; i++) {
    492492        float measuredSig = PS_SQR(source->data.F32[i] / stdev); // Measured significance
    493         ratio->data.F32[i] = guess->data.F32[i] / measuredSig;
    494         if (source->data.F32[i] <= 0.0 || !isfinite(ratio->data.F32[i])) {
     493        ratio->data.F32[i] = measuredSig / guess->data.F32[i];
     494        if (guess->data.F32[i] <= 0.0 || source->data.F32[i] <= 0.0 || !isfinite(ratio->data.F32[i])) {
    495495            photMask->data.PS_TYPE_MASK_DATA[i] = 0xFF;
    496496        }
Note: See TracChangeset for help on using the changeset viewer.