- Timestamp:
- Jun 6, 2011, 1:56:22 PM (15 years ago)
- Location:
- branches/czw_branch/20110406
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20110406
- Property svn:mergeinfo changed
-
branches/czw_branch/20110406/psphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20110404/psphot (added) merged: 31313-31314,31328,31337,31362,31364,31381,31384,31437,31444
- Property svn:mergeinfo changed
-
branches/czw_branch/20110406/psphot/src/psphotSourceFits.c
r31154 r31606 146 146 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 147 147 source->mode |= PM_SOURCE_MODE_BLEND_FIT; 148 source->mode |= PM_SOURCE_MODE_NONLINEAR_FIT; 148 149 return true; 149 150 } … … 186 187 187 188 // build cached model and subtract 189 source->mode |= PM_SOURCE_MODE_NONLINEAR_FIT; 188 190 pmSourceCacheModel (source, maskVal); 189 191 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); … … 233 235 // XXX save the psf-based moments for output 234 236 psfMoments = *source->moments; 235 if (!pmSourceMoments (source, radius, 0.0, 0.5, maskVal)) {237 if (!pmSourceMoments (source, radius, 0.0, 0.5, 0.0, maskVal)) { 236 238 *source->moments = psfMoments; 237 239 return false; … … 319 321 source->type = PM_SOURCE_TYPE_EXTENDED; 320 322 source->mode |= PM_SOURCE_MODE_EXTMODEL; 323 source->mode |= PM_SOURCE_MODE_NONLINEAR_FIT; 321 324 322 325 // build cached model and subtract … … 346 349 source->modelPSF = psMemIncrRefCounter (DBL->data[0]); 347 350 source->mode |= PM_SOURCE_MODE_PAIR; 351 source->mode |= PM_SOURCE_MODE_NONLINEAR_FIT; 348 352 349 353 // copy most data from the primary source (modelEXT, blends stay NULL) … … 489 493 // psTraceSetLevel("psLib.math.psMinimizeLMChi2", 5); 490 494 pmSourceFitModel (source, model, &options, maskVal); 491 // fprintf (stderr, "chisq: %f, nIter: %d, radius: %f, npix: %d\n \n", model->chisqNorm, model->nIter, model->fitRadius, model->nPix);495 // fprintf (stderr, "chisq: %f, nIter: %d, radius: %f, npix: %d\n", model->chisqNorm, model->nIter, model->fitRadius, model->nPix); 492 496 493 497 // psTraceSetLevel("psLib.math.psMinimizeLMChi2", 0); … … 554 558 // psTraceSetLevel("psLib.math.psMinimizeLMChi2", 5); 555 559 pmSourceFitPCM (pcm, source, &options, maskVal, markVal, psfSize); 556 // fprintf (stderr, "chisq: %f, nIter: %d, radius: %f, npix: %d\n \n", model->chisqNorm, model->nIter, model->fitRadius, model->nPix);560 // fprintf (stderr, "chisq: %f, nIter: %d, radius: %f, npix: %d\n", model->chisqNorm, model->nIter, model->fitRadius, model->nPix); 557 561 558 562 // psTraceSetLevel("psLib.math.psMinimizeLMChi2", 0);
Note:
See TracChangeset
for help on using the changeset viewer.
