IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 22, 2007, 5:39:10 PM (19 years ago)
Author:
eugene
Message:

changed PM_MODEL_ADD_.. to PM_MODEL_OP_..; added pmSourceAdd/Sub; adding modelFlux and maskView/maskObj to pmSource

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_02_branch/psphot/src/psphotBlendFit.c

    r12955 r12957  
    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           // XXX we will need to remove the existing source->modelFlux if we do
    68           // a non-linear fit
    69           // pmSourceSub (!NORM, -)
    70             pmModelAdd (source->pixels, source->mask, source->modelPSF, PM_MODEL_ADD_FULL);
     69            pmSourceAdd (source, PM_MODEL_OP_FULL);
    7170        }
    7271        Nfit ++;
    7372
    7473        // try fitting PSFs, then try extended sources
     74        // these functions subtract the resulting fitted source (XXX and update the modelFlux?)
    7575        if (psphotFitBlend (readout, source, psf)) {
    7676            psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->moments->x, source->moments->y);
     
    8787        Nfail ++;
    8888
    89         // re-subtract PSF for object, leave local sky
    90         pmModelSub (source->pixels, source->mask, source->modelPSF, PM_MODEL_ADD_FULL);
     89        // re-subtract the object, leave local sky
     90        pmSourceSub (source, PM_MODEL_OP_FULL);
    9191        source->mode |= PM_SOURCE_MODE_SUBTRACTED;
    9292        source->mode |= PM_SOURCE_MODE_TEMPSUB;
Note: See TracChangeset for help on using the changeset viewer.