IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 2, 2013, 10:42:38 AM (13 years ago)
Author:
eugene
Message:

skip XFIT output for all failed models (this needs to be changed); skip photometry for failed models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psModules/src/objects/pmSourcePhotometry.c

    r36314 r36334  
    113113    source->apFluxErr = NAN;
    114114
     115    pmModelStatus badModel = PM_MODEL_STATUS_NONE;
     116    badModel |= PM_MODEL_STATUS_BADARGS;
     117    badModel |= PM_MODEL_STATUS_OFFIMAGE;
     118    badModel |= PM_MODEL_STATUS_NAN_CHISQ;
     119    badModel |= PM_MODEL_SERSIC_PCM_FAIL_GUESS;
     120    badModel |= PM_MODEL_SERSIC_PCM_FAIL_GRID;
     121    badModel |= PM_MODEL_PCM_FAIL_GUESS;
     122
    115123    // XXXXXX review:
    116124    // Select the 'best' model -- this is used for PSF_QF,_PERFECT & ???. isPSF is true if this
     
    162170        for (int i = 0; i < source->modelFits->n; i++) {
    163171            pmModel *model = source->modelFits->data[i];
    164             if (model->flags & PM_MODEL_STATUS_BADARGS) continue;
     172            if (model->flags & badModel) continue;
    165173            status = pmSourcePhotometryModel (&model->mag, NULL, model);
    166174            if (model == source->modelEXT) foundEXT = true;
Note: See TracChangeset for help on using the changeset viewer.