IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 29, 2010, 2:36:33 PM (16 years ago)
Author:
eugene
Message:

attempting to get a better starting guess; attempting to downweight neighbor detections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100621/psphot/src/psphotExtendedSourceFits.c

    r28687 r28782  
    3939    int NplainPass = 0;
    4040    bool savePics = false;
     41    float radius;
    4142
    4243    // find the currently selected readout
     
    164165        Next ++;
    165166
     167        // set the radius based on the footprint (also sets the mask pixels)
     168        if (!psphotSetRadiusFootprint(&radius, readout, source, markVal, 1.0)) return false;
     169
     170        // XXX note that this changes the source moments that are published...
     171        // recalculate the source moments using the larger extended-source moments radius
     172        // at this stage, skip Gaussian windowing, and do not clip pixels by S/N
     173        // this uses the footprint to judge both radius and aperture?
     174        // XXX save the psf-based moments for output
     175        if (!pmSourceMoments (source, radius, 0.0, 0.0, maskVal)) {
     176            // subtract the best fit from the object, leave local sky
     177            pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
     178            // XXX raise an error of some kind
     179            continue;
     180        }
     181
    166182        // save the modelFlux here in case we need to subtract it (for failure)
    167183        psImage *modelFluxStart = psMemIncrRefCounter (source->modelFlux);
     
    242258
    243259          // test for fit quality / result
     260          modelFit->fitRadius = radius;
    244261          psArrayAdd (source->modelFits, 4, modelFit);
    245262
Note: See TracChangeset for help on using the changeset viewer.