IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 25, 2008, 3:17:02 PM (18 years ago)
Author:
Paul Price
Message:

More restrictions on sources.

File:
1 edited

Legend:

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

    r19201 r19202  
    2727#define SOURCE_MASK (PM_SOURCE_MODE_CR_LIMIT | PM_SOURCE_MODE_SATURATED | PM_SOURCE_MODE_DEFECT | \
    2828                     PM_SOURCE_MODE_SATSTAR | PM_SOURCE_MODE_FAIL) // Mask for bad sources
     29#define SOURCE_FAINTEST 50.0            // Faintest magnitude to consider
     30
    2931
    3032//////////////////////////////////////////////////////////////////////////////////////////////////////////////
     
    594596    for (int i = 0; i < numSources; i++) {
    595597        pmSource *source = sources->data[i]; // Source of interest
    596         if (source->mode & SOURCE_MASK) {
     598        if (!source || (source->mode & SOURCE_MASK) || !isfinite(source->psfMag) ||
     599            source->psfMag > SOURCE_FAINTEST) {
    597600            continue;
    598601        }
Note: See TracChangeset for help on using the changeset viewer.