IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 25, 2007, 3:35:50 PM (19 years ago)
Author:
eugene
Message:

incorporating changes from eam_02_branch (pmSourceAdd/Sub, modified API for pmModelAdd, cached models)

File:
1 edited

Legend:

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

    r13006 r13035  
    4343
    4444        // limit selection to some SN limit
     45        // XXX this should use peak?
    4546        if (source->moments == NULL) continue;
    4647        if (source->moments->SN < FIT_SN_LIM) continue;
    4748
     49        // XXX this should use peak?
    4850        if (source->moments->x < AnalysisRegion.x0) continue;
    4951        if (source->moments->y < AnalysisRegion.y0) continue;
     
    6567        // replace object in image
    6668        if (source->mode & PM_SOURCE_MODE_SUBTRACTED) {
    67             pmModelAdd (source->pixels, source->mask, source->modelPSF, false, false);
     69            pmSourceAdd (source, PM_MODEL_OP_FULL);
    6870        }
    6971        Nfit ++;
    7072
    7173        // try fitting PSFs, then try extended sources
     74        // these functions subtract the resulting fitted source (XXX and update the modelFlux?)
    7275        if (psphotFitBlend (readout, source, psf)) {
    7376            psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->moments->x, source->moments->y);
     
    8487        Nfail ++;
    8588
    86         // re-subtract PSF for object, leave local sky
    87         pmModelSub (source->pixels, source->mask, source->modelPSF, false, false);
     89        // re-subtract the object, leave local sky
     90        pmSourceCacheModel (source);
     91        pmSourceSub (source, PM_MODEL_OP_FULL);
    8892        source->mode |= PM_SOURCE_MODE_SUBTRACTED;
    8993        source->mode |= PM_SOURCE_MODE_TEMPSUB;
Note: See TracChangeset for help on using the changeset viewer.