IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6948


Ignore:
Timestamp:
Apr 21, 2006, 11:48:52 AM (20 years ago)
Author:
eugene
Message:

skipping sources with insignificant flux

File:
1 edited

Legend:

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

    r6862 r6948  
    3939        if (source->moments->SN < FIT_SN_LIM) continue;
    4040
    41         // if model is NULL, we don't have a starting guess
    42         if (source->modelPSF == NULL) continue;
    43 
    4441        if (source->moments->x < AnalysisRegion.x0) continue;
    4542        if (source->moments->y < AnalysisRegion.y0) continue;
    4643        if (source->moments->x > AnalysisRegion.x1) continue;
    4744        if (source->moments->y > AnalysisRegion.y1) continue;
     45
     46        // if model is NULL, we don't have a starting guess
     47        if (source->modelPSF == NULL) continue;
     48
     49        // skip sources which are insignificant flux?
     50        if (source->modelPSF->params->data.F32[1] < 0.1) {
     51            psTrace ("psphotBlendFit", 5, "skipping near zero source: %f, %f : %f\n",
     52                     source->modelPSF->params->data.F32[1],
     53                     source->modelPSF->params->data.F32[2],
     54                     source->modelPSF->params->data.F32[3]);
     55            continue;
     56        }
    4857
    4958        // replace object in image
Note: See TracChangeset for help on using the changeset viewer.