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/psphotGalaxyShape.c

    r36315 r36318  
    9797    assert (status);
    9898
     99    float fitNsigmaConv = psMetadataLookupF32 (&status, recipe, "EXT_FIT_NSIGMA_CONV"); // number of sigma for the convolutio
     100    if (!status || !isfinite(fitNsigmaConv) || fitNsigmaConv <= 0) {
     101        fitNsigmaConv = 5.0;
     102    }
     103
    99104    // Define source fitting parameters for extended source fits
    100105    // we are not doing LMM fitting, so most options are irrelevant
     
    102107    fitOptions->mode           = PM_SOURCE_FIT_EXT_AND_SKY;
    103108    fitOptions->covarFactor    = psImageCovarianceFactorForAperture(readout->covariance, 10.0); // Covariance matrix
     109    fitOptions->nsigma         = fitNsigmaConv;
    104110
    105111    // Poisson or Constant weight for chisq tests?
     
    298304
    299305        // cache the model flux
    300         pmPCMCacheModel (source, maskVal, psfSize);
     306        pmPCMCacheModel (source, maskVal, psfSize, fitOptions->nsigma);
    301307    }
    302308
     
    316322    // need to reset here each time since we assign below to calculate the flux
    317323    // XXX note that this does not add sky to model
    318     pmPCMMakeModel (source, pcm->modelConv, maskVal, psfSize);
     324    pmPCMMakeModel (source, pcm->modelConv, pcm->nsigma, maskVal, psfSize);
    319325    pcm->modelConv->params->data.F32[PM_PAR_I0] = 1.0;
    320326       
Note: See TracChangeset for help on using the changeset viewer.