IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 13, 2008, 10:23:27 PM (17 years ago)
Author:
Paul Price
Message:

Don't count non-finite magnitudes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackPhotometry.c

    r20493 r20751  
    100100        } else {
    101101            source->psfMag = - 2.5 * log10(sumImage / sumKernel * M_PI * PS_SQR(zpRadius));
    102             numGood++;
    103             maxMag = PS_MAX(maxMag, source->psfMag);
     102            if (isfinite(source->psfMag)) {
     103                numGood++;
     104                maxMag = PS_MAX(maxMag, source->psfMag);
     105            }
    104106        }
    105107    }
Note: See TracChangeset for help on using the changeset viewer.