IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2013, 4:09:45 AM (13 years ago)
Author:
eugene
Message:

make sure the convolution scale is passed to all functions that need it; update sersic search a bit

File:
1 edited

Legend:

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

    r36315 r36318  
    120120    }
    121121
     122    float fitNsigmaConv = psMetadataLookupF32 (&status, recipe, "EXT_FIT_NSIGMA_CONV"); // number of sigma for the convolutio
     123    if (!status || !isfinite(fitNsigmaConv) || fitNsigmaConv <= 0) {
     124        fitNsigmaConv = 5.0;
     125    }
     126
    122127    bool chisqConvergence = psMetadataLookupBool (&status, recipe, "LMM_FIT_CHISQ_CONVERGENCE"); // Fit tolerance
    123128    if (!status) {
     
    144149    fitOptions->minTol         = fitMinTol;
    145150    fitOptions->maxTol         = fitMaxTol;
     151    fitOptions->nsigma         = fitNsigmaConv;
    146152
    147153    fitOptions->gainFactorMode   = gainFactorMode;
     
    656662        if (source->modelEXT->isPCM) {
    657663            // fprintf (stderr, "subtract PCM extended source model for object %d @ %f, %f\n", source->id, source->moments->Mx, source->moments->My);
    658             pmPCMCacheModel (source, maskVal, psfSize);
     664            pmPCMCacheModel (source, maskVal, psfSize, fitOptions->nsigma);
    659665        } else {
    660666            // fprintf (stderr, "subtract non-PCM extended source model for object %d @ %f, %f\n", source->id, source->moments->Mx, source->moments->My);
Note: See TracChangeset for help on using the changeset viewer.