- Timestamp:
- Nov 28, 2013, 4:09:45 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130904/psphot/src/psphotGalaxyShape.c
r36315 r36318 97 97 assert (status); 98 98 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 99 104 // Define source fitting parameters for extended source fits 100 105 // we are not doing LMM fitting, so most options are irrelevant … … 102 107 fitOptions->mode = PM_SOURCE_FIT_EXT_AND_SKY; 103 108 fitOptions->covarFactor = psImageCovarianceFactorForAperture(readout->covariance, 10.0); // Covariance matrix 109 fitOptions->nsigma = fitNsigmaConv; 104 110 105 111 // Poisson or Constant weight for chisq tests? … … 298 304 299 305 // cache the model flux 300 pmPCMCacheModel (source, maskVal, psfSize );306 pmPCMCacheModel (source, maskVal, psfSize, fitOptions->nsigma); 301 307 } 302 308 … … 316 322 // need to reset here each time since we assign below to calculate the flux 317 323 // 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); 319 325 pcm->modelConv->params->data.F32[PM_PAR_I0] = 1.0; 320 326
Note:
See TracChangeset
for help on using the changeset viewer.
