IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33437


Ignore:
Timestamp:
Mar 7, 2012, 11:32:49 AM (14 years ago)
Author:
bills
Message:

Fix the psphotStack failure to find stamps problem.
A bug deep in psModules caused an infinite value for the aperture
correction to be calculated which caused all AP_MAGs to be NULL.
Work around this problem in pmSubtractionStamps by checking apMag raw
if !finite(apMag)

Location:
tags/ipp-20120216/psModules/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20120216/psModules/src/extras/psVectorBracket.c

    r10610 r33437  
    5151        }
    5252    }
    53     // at this point, index[Nhi] >= key > index[Nlo]
    54     N = Nhi;
     53    N = (Nhi >= index->n) ? Nhi - 1 : Nhi;
     54    // at this point, index[N] >= key > index[Nlo]
    5555    while ((index->data.F32[N] >= key) && (N > Nlo)) {
    5656        N--;
  • tags/ipp-20120216/psModules/src/imcombine/pmSubtractionStamps.c

    r31543 r33437  
    12081208        // XXX this is somewhat arbitrary...
    12091209        if (source->psfMagErr > 0.05) continue;
    1210         if (fabs(source->psfMag - source->apMag) > 0.5) continue;
     1210        if (isfinite(source->apMag)) {
     1211            if (fabs(source->psfMag - source->apMag) > 0.5) continue;
     1212        } else if (isfinite(source->apMagRaw)) {
     1213            if (fabs(source->psfMag - source->apMagRaw) > 0.5) continue;
     1214        } else {
     1215            // XXX: Should we carry on or drop this source?
     1216            // drop it for now
     1217            continue;
     1218        }
    12111219
    12121220        if (source->modelPSF) {
Note: See TracChangeset for help on using the changeset viewer.