IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18356


Ignore:
Timestamp:
Jun 27, 2008, 5:21:40 PM (18 years ago)
Author:
Paul Price
Message:

Genericising the faintest magnitude.

File:
1 edited

Legend:

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

    r18354 r18356  
    77#define SOURCE_MASK (PM_SOURCE_MODE_FAIL | PM_SOURCE_MODE_DEFECT | PM_SOURCE_MODE_SATURATED | \
    88                     PM_SOURCE_MODE_CR_LIMIT) // Mask to apply to input sources
     9#define SOURCE_FAINTEST 50.0            // Faintest magnitude to consider
    910#define SOURCES_MAX_LEAF 2              // Maximum number of points on a tree leaf
    1011
     
    6869    for (long i = 0; i < numSources; i++) {
    6970        pmSource *source = sources->data[i]; // Source of interest
    70         if (!source || (source->mode & SOURCE_MASK) || !isfinite(source->psfMag) || source->psfMag == 99.0) {
     71        if (!source || (source->mode & SOURCE_MASK) || !isfinite(source->psfMag) ||
     72            source->psfMag > SOURCE_FAINTEST) {
    7173            continue;
    7274        }
Note: See TracChangeset for help on using the changeset viewer.