IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18318


Ignore:
Timestamp:
Jun 24, 2008, 4:49:03 PM (18 years ago)
Author:
Paul Price
Message:

Mask out bad sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmReadoutFake.c

    r16966 r18318  
    2626#define MODEL_TYPE "PS_MODEL_RGAUSS"    // Type of model to use
    2727#define MAX_AXIS_RATIO 20.0             // Maximum axis ratio for PSF model
     28#define SOURCE_MASK (PM_SOURCE_MODE_FAIL | PM_SOURCE_MODE_DEFECT | PM_SOURCE_MODE_SATURATED | \
     29                     PM_SOURCE_MODE_CR_LIMIT) // Mask to apply to input sources
    2830
    2931
     
    9294    for (int i = 0; i < numSources; i++) {
    9395        pmSource *source = sources->data[i]; // Source of interest
     96        if (source->mode & SOURCE_MASK) {
     97            continue;
     98        }
    9499        if (!isfinite(source->psfMag)) {
    95100            continue;
Note: See TracChangeset for help on using the changeset viewer.