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.h

    r24245 r24307  
    33
    44#include <pslib.h>
     5#include <pmSourceMasks.h>
    56
    67#define IN_EXTNAME "SkyChip.psf"                // Extension name for data in input
    78#define OBSERVATORY_CODE 566                    // IAU Observatory Code
    89#define OUT_EXTNAME "MOPS_TRANSIENT_DETECTIONS" // Extension name for data in output
    9 #define SOURCE_MASK (8 | /* FAIL */ \
    10                      1024 |  /* BADPSF */ \
    11                      2048 | /* DEFECT */ \
    12                      4096 | /* SATURATED */ \
    13                      8192 | /* CR_LIMIT */ \
    14                      65536 /* SKY_FAILURE */ \
    15                      )
     10#define SOURCE_MASK (PM_SOURCE_MODE_FAIL | PM_SOURCE_MODE_BADPSF | PM_SOURCE_MODE_SATURATED | \
     11                     PM_SOURCE_MODE_CR_LIMIT | PM_SOURCE_MODE_SKY_FAILURE) // Flags to exclude
     12
    1613
    1714// Configuration data
Note: See TracChangeset for help on using the changeset viewer.