- Timestamp:
- Jun 3, 2013, 6:13:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/psphot/src/psphotSourceFits.c
r35559 r35630 268 268 { 269 269 // XXX need to handle failures better here 270 EXT = psphotFitEXT ( readout, source, fitOptions, modelTypeEXT, maskVal, markVal);270 EXT = psphotFitEXT (NULL, readout, source, fitOptions, modelTypeEXT, maskVal, markVal); 271 271 if (!EXT) goto escape; 272 272 if (!isfinite(EXT->params->data.F32[PM_PAR_I0])) goto escape; … … 443 443 } 444 444 445 pmModel *psphotFitEXT (pm Readout *readout, pmSource *source, pmSourceFitOptions *fitOptions, pmModelType modelType, psImageMaskType maskVal, psImageMaskType markVal) {445 pmModel *psphotFitEXT (pmModel *guessModel, pmReadout *readout, pmSource *source, pmSourceFitOptions *fitOptions, pmModelType modelType, psImageMaskType maskVal, psImageMaskType markVal) { 446 446 447 447 if ((source->moments->Mxx < 1e-3) || (source->moments->Myy < 1e-3)) { … … 457 457 458 458 // use the source moments, etc to guess basic model parameters 459 pmModel *model = pmSourceModelGuess (source, modelType, maskVal, markVal);459 pmModel *model = guessModel ? guessModel : pmSourceModelGuess (source, modelType, maskVal, markVal); 460 460 if (!model) { 461 461 psTrace ("psphot", 5, "failed to generate a model for source: moments: %f %f\n", source->moments->Mxx, source->moments->Myy);
Note:
See TracChangeset
for help on using the changeset viewer.
