IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36757 for trunk/psphot/src


Ignore:
Timestamp:
May 21, 2014, 9:37:09 AM (12 years ago)
Author:
bills
Message:

Changes to full force galaxy shapes analysis

  • Put parameters for all extended models into cff file
  • in psphotFullForce select models to force and those to skip
  • skip sources that are very likely to be stars
  • clean up a few "hacky" pieces of the implementation
Location:
trunk/psphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphot.h

    r36754 r36757  
    435435    float   NSigma;
    436436    float   clampSN;
    437 #ifdef notdef
    438     float fRmajorMin;
    439     float fRmajorMax;
    440     float fRmajorDel;
    441     float fRminorMin;
    442     float fRminorMax;
    443     float fRminorDel;
    444     float snMinAllTrials;
    445     float reduceTrialsFactor;
    446     bool  reducedTrials;
    447 #endif
     437    int     extModelType;
    448438} psphotGalaxyShapeOptions;
    449439
  • trunk/psphot/src/psphotGalaxyShape.c

    r36754 r36757  
    8989    opt->clampSN = psMetadataLookupF32(&status, recipe, "GALAXY_SHAPES_CLAMP_SN");
    9090    psAssert (status, "missing GALAXY_SHAPES_NSIGMA");
     91    psString modelTypeToSave = psMetadataLookupStr(&status, recipe, "EXT_MODEL_TYPE_FORCE");
     92    if (modelTypeToSave && strcmp(modelTypeToSave, "ALL") && strcmp(modelTypeToSave, "BEST")) {
     93        opt->extModelType = pmModelClassGetType(modelTypeToSave);
     94    } else {
     95        opt->extModelType = pmModelClassGetType("PS_MODEL_SERSIC");
     96    }
    9197
    9298#ifdef notdef
     
    251257
    252258        pmModelType modelType = model->type;
     259        model->flags = PM_MODEL_STATUS_NONE;
    253260
    254261        // we are using fitOptions->mode : be sure this makes sense
     
    322329
    323330            // Replace modelEXT with the best model from the first of the model fits if one of them is good
    324             if (isfinite(PAR[PM_PAR_I0]) && iModel == 0) {
     331            if (isfinite(PAR[PM_PAR_I0]) && modelType == opt->extModelType) {
    325332                psFree (source->modelEXT);
    326333
Note: See TracChangeset for help on using the changeset viewer.