IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 23, 2009, 2:54:27 PM (17 years ago)
Author:
Paul Price
Message:

Catching bad source models (using flags) and ejecting these from the fitting of the PSF envelope.

File:
1 edited

Legend:

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

    r21104 r23955  
    2929#define MAX_AXIS_RATIO 20.0             // Maximum axis ratio for PSF model
    3030#define SOURCE_MASK (PM_SOURCE_MODE_DEFECT | PM_SOURCE_MODE_CR_LIMIT) // Mask to apply to input sources
     31#define MODEL_MASK (PM_MODEL_STATUS_NONCONVERGE | PM_MODEL_STATUS_OFFIMAGE | \
     32                    PM_MODEL_STATUS_BADARGS | PM_MODEL_STATUS_LIMITS) // Mask to apply to models
    3133
    3234
     
    123125
    124126        pmModel *fakeModel = pmModelFromPSFforXY(psf, x, y, flux);
    125         if (!fakeModel) {
     127        if (!fakeModel || (fakeModel->flags & MODEL_MASK)) {
     128            psFree(fakeModel);
    126129            continue;
    127130        }
Note: See TracChangeset for help on using the changeset viewer.