IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 30, 2012, 2:49:37 PM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/psModules/src/imcombine/pmSubtractionStamps.c

    r31543 r33638  
    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.