IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2005, 6:02:29 AM (21 years ago)
Author:
eugene
Message:

improved galaxy model guesses, better handling of errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/apply_psf_model.c

    r4421 r4574  
    6565        status = pmSourceFitModel (source, model, true);
    6666        psImageKeepCircle (source->mask, x, y, model->radius, AND, 0x7f);
    67         if (!status) continue;
     67        if (!status || (model->params->data.F32[1] < 0)) {
     68          // if the fit fails, we need to change the classification
     69          psLogMsg ("psphot", 3, "PSF fit failed for %f, %f (%d iterations)\n", x, y, model->nIter);
     70          source->type = PS_SOURCE_OTHER;  // better choice?
     71          continue;
     72        }
    6873
    6974        source->modelPSF = model;
     
    7176        Nfit ++;
    7277
    73         mark_psf_source (source, shapeNsigma);
     78        mark_psf_source (source, shapeNsigma, SATURATE);
    7479        if (subtract_psf_source (source)) {
    7580          Nsub ++;
Note: See TracChangeset for help on using the changeset viewer.