IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33435 for trunk/psModules


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

When choosing sources for stamps, check that the apMag is finite before comparing
it to the psfMag. If it is not finite check whether apMagRaw is finite.
If it is compare it to apMag instead. If neither apMag or apMagRaw is finite
reject the source.
This was the cause of the psphotStack failure to find stamps problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionStamps.c

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