IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18355


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

Additional filtering on bad sources.

File:
1 edited

Legend:

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

    r18346 r18355  
    1010
    1111#define ARRAY_BUFFER 16                 // Number to add to array at a time
    12 #define MAG_IGNORE 99.0                 // Ignore these magnitudes --- they're not real!
     12#define MAG_IGNORE 50                   // Ignore magnitudes fainter than this --- they're not real!
    1313#define FAKE_SIZE 1                     // Size of fake convolution kernel
     14#define SOURCE_MASK (PM_SOURCE_MODE_FAIL | PM_SOURCE_MODE_DEFECT | PM_SOURCE_MODE_SATURATED | \
     15                     PM_SOURCE_MODE_CR_LIMIT) // Mask to apply to input sources
    1416
    1517//#define TESTING
     
    8486        for (int i = 0; i < sources->n; i++) {
    8587            pmSource *source = sources->data[i]; // Source of interest
    86             if (source->psfMag > maxMag && source->psfMag != MAG_IGNORE) {
     88            if (source->psfMag > maxMag && source->psfMag <= MAG_IGNORE && !(source->mode & SOURCE_MASK)) {
    8789                maxMag = source->psfMag;
    8890            }
Note: See TracChangeset for help on using the changeset viewer.