IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36062


Ignore:
Timestamp:
Aug 30, 2013, 4:33:41 PM (13 years ago)
Author:
eugene
Message:

do not skip NONCONVERGE models, these are probably fine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130711/psphot/src/psphotExtendedSourceFits.c

    r36033 r36062  
    591591
    592592            if (model->flags & (PM_MODEL_STATUS_BADARGS)) continue;
    593             if (model->flags & (PM_MODEL_STATUS_NONCONVERGE)) continue;
     593            // if (model->flags & (PM_MODEL_STATUS_NONCONVERGE)) continue;
    594594            if (model->flags & (PM_MODEL_STATUS_OFFIMAGE)) continue;
    595595
     
    610610          pmSourceCacheModel (source, maskVal);
    611611
     612          pmModel *model = source->modelFits->data[0];
     613          int flags = 0xffffffff;
     614          if (model) {
     615            flags = model->flags;
     616          }
     617
     618          fprintf (stderr, "failed to fit extended source model to object %d @ %f, %f (%x)\n", source->id, source->moments->Mx, source->moments->My, flags);
    612619          pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
    613620
     
    627634        // cache the model flux
    628635        if (source->modelEXT->isPCM) {
     636            // fprintf (stderr, "subtract PCM extended source model for object %d @ %f, %f\n", source->id, source->moments->Mx, source->moments->My);
    629637            pmPCMCacheModel (source, maskVal, psfSize);
    630638        } else {
     639            // fprintf (stderr, "subtract non-PCM extended source model for object %d @ %f, %f\n", source->id, source->moments->Mx, source->moments->My);
    631640            pmSourceCacheModel (source, maskVal);
    632641        }
Note: See TracChangeset for help on using the changeset viewer.