IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 2, 2009, 5:45:48 PM (17 years ago)
Author:
Paul Price
Message:

Use pmSourceMasks.h to define mask values, rather than specifying them by number. Don't throw out sources masked DEFECT if they are also masked MOMENTS_FAILURE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMops/src/ppMops.c

    r24249 r24307  
    6464        psU32 flags = psMetadataLookupU32(NULL, inRow, "FLAGS");
    6565
    66         if (!isfinite(mag) || !isfinite(magErr) || (flags & SOURCE_MASK)) {
     66        if (!isfinite(mag) || !isfinite(magErr) || (flags & SOURCE_MASK) ||
     67            ((flags & PM_SOURCE_MODE_DEFECT) && !(flags & PM_SOURCE_MODE_MOMENTS_FAILURE))
     68            ) {
     69            // DEFECT can be due to bad moments
    6770            continue;
    6871        }
Note: See TracChangeset for help on using the changeset viewer.