IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 19, 2013, 2:50:27 PM (13 years ago)
Author:
eugene
Message:

add mark & mask to model guess code; add -moments-radius and -psf to psphotModelTest; pass the fit tolerance info to the extended source fits; allow psphotModelTest to do trails and psf-convolved fits

File:
1 edited

Legend:

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

    r34258 r35322  
    457457
    458458    // use the source moments, etc to guess basic model parameters
    459     pmModel *model = pmSourceModelGuess (source, modelType);
     459    pmModel *model = 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);
     
    625625        model->params->data.F32[PM_PAR_7] = 0.5/indexGuess[i];
    626626
    627         if (!model->modelGuess(model, source)) {
     627        if (!model->modelGuess(model, source, maskVal, markVal)) {
    628628            model->flags |= PM_MODEL_STATUS_BADARGS;
    629629            return false;
     
    648648    model->flags = PM_MODEL_STATUS_NONE; // do not attempt to handle failures here, let the next iteration deal with it
    649649    model->params->data.F32[PM_PAR_7] = 0.5/indexGuess[iMin];
    650     model->modelGuess(model, source);
     650    model->modelGuess(model, source, maskVal, markVal);
    651651
    652652    return true;
     
    677677        model->params->data.F32[PM_PAR_7] = indexGuess[i];
    678678       
    679         if (!model->modelGuess(model, source)) {
     679        if (!model->modelGuess(model, source, maskVal, markVal)) {
    680680            model->flags |= PM_MODEL_STATUS_BADARGS;
    681681            return false;
Note: See TracChangeset for help on using the changeset viewer.