IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 3, 2013, 6:13:52 PM (13 years ago)
Author:
eugene
Message:

add iterative model window for extended sources (crude and hackish still)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/psphot/src/psphotSourceFits.c

    r35559 r35630  
    268268    {
    269269        // 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);
    271271        if (!EXT) goto escape;
    272272        if (!isfinite(EXT->params->data.F32[PM_PAR_I0])) goto escape;
     
    443443}
    444444
    445 pmModel *psphotFitEXT (pmReadout *readout, pmSource *source, pmSourceFitOptions *fitOptions, pmModelType modelType, psImageMaskType maskVal, psImageMaskType markVal) {
     445pmModel *psphotFitEXT (pmModel *guessModel, pmReadout *readout, pmSource *source, pmSourceFitOptions *fitOptions, pmModelType modelType, psImageMaskType maskVal, psImageMaskType markVal) {
    446446
    447447    if ((source->moments->Mxx < 1e-3) || (source->moments->Myy < 1e-3)) {
     
    457457
    458458    // 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);
    460460    if (!model) {
    461461        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.