IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36100 for trunk/psphot/src


Ignore:
Timestamp:
Sep 9, 2013, 10:43:15 AM (13 years ago)
Author:
eugene
Message:

use EXT_AND_SKY for EXP and SERSIC, SHAPE for DEV, and EXT for all other fits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotSourceFits.c

    r36086 r36100  
    589589    if (TIMING) { psTimerStart ("psphotFitPCM"); }
    590590
     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;
    591596    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:133
    593597        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")) {
    598603        options.mode = PM_SOURCE_FIT_EXT_AND_SKY;
    599604    }
Note: See TracChangeset for help on using the changeset viewer.