IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 25, 2015, 10:05:06 PM (11 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20150616
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150616

  • branches/eam_branches/ipp-20150616/psphot/src/psphotFitSourcesLinear.c

    r38039 r38552  
    269269            continue;
    270270        }
    271         if (modelSum < 0.5) continue; // skip sources with no model constraint (somewhat arbitrary limit)
    272         if (modelSum < 0.8) {
    273             psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "low-sig model @ %f, %f (%f masked sum, %f sum, %f peak)\n",
    274                      source->peak->xf, source->peak->yf, maskedSum, modelSum, source->peak->rawFlux);
    275         }
    276         if (maskedSum < 0.5) {
    277             psLogMsg ("psphot.ensemble",  PS_LOG_MINUTIA, "worrying model @ %f, %f (%f masked sum, %f sum, %f peak)\n",
    278                      source->peak->xf, source->peak->yf, maskedSum, modelSum, source->peak->rawFlux);
    279         }
    280 
    281271        bool isPSF = false;
    282272        pmModel *model = pmSourceGetModel (&isPSF, source);
     273
     274        float Io = model->params->data.F32[PM_PAR_I0];
     275        model->params->data.F32[PM_PAR_I0] = 1.0;
     276        float normFlux = model->class->modelFlux(model->params);
     277        model->params->data.F32[PM_PAR_I0] = Io;
     278
     279        // printf("%5d %4.3f %4.3f %4.3f\n", source->seq, normFlux, modelSum, maskedSum);
     280        float cut = .85;
     281        if (modelSum  < cut * normFlux) continue;
     282        if (maskedSum < cut * normFlux) continue;
    283283
    284284        // clear the 'mark' pixels and remask on the fit aperture
Note: See TracChangeset for help on using the changeset viewer.