Changeset 36100
- Timestamp:
- Sep 9, 2013, 10:43:15 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSourceFits.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSourceFits.c
r36086 r36100 589 589 if (TIMING) { psTimerStart ("psphotFitPCM"); } 590 590 591 // if we are ever (in a given psphot implementation) going to fit a parameter, we must set the options here to include 592 // that parameter (otherwise pmPCMupdate will fail to allocate the dmodelFlux image) 593 // thus, if the sersic analysis below uses an index fit, need to use this EXT_AND_SKY mode for init 594 595 options.mode = PM_SOURCE_FIT_EXT; 591 596 if (modelType == pmModelClassGetType("PS_MODEL_SERSIC")) { 592 options.mode = PM_SOURCE_FIT_NO_INDEX; // XXX note that there may be a conflict with psphotExtendedSourceFits.c:133593 597 options.mode = PM_SOURCE_FIT_EXT_AND_SKY; 594 // if we are ever (in a given psphot implementation) going to fit a parameter, we must set the options here to include 595 // that parameter (otherwise pmPCMupdate will fail to allocate the dmodelFlux image) 596 // thus, if the sersic analysis below uses an index fit, need to use this EXT_AND_SKY mode for init 597 } else { 598 } 599 if (modelType == pmModelClassGetType("PS_MODEL_DEV")) { 600 options.mode = PM_SOURCE_FIT_SHAPE; 601 } 602 if (modelType == pmModelClassGetType("PS_MODEL_EXP")) { 598 603 options.mode = PM_SOURCE_FIT_EXT_AND_SKY; 599 604 }
Note:
See TracChangeset
for help on using the changeset viewer.
