IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 22, 2007, 12:36:57 PM (19 years ago)
Author:
eugene
Message:

prepping for pmSource Add/Sub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_02_branch/psphot/src/psphotReplaceUnfit.c

    r12952 r12955  
    2020                 source->modelPSF->params->data.F32[PM_PAR_XPOS], source->modelPSF->params->data.F32[PM_PAR_YPOS]);
    2121
     22        // why am i assuming below that this is a PSF?
     23        // pmSourceAdd (!NORM, +)
    2224        pmModelAdd (source->pixels, source->mask, source->modelPSF, PM_MODEL_ADD_FULL);
    2325        source->mode &= ~PM_SOURCE_MODE_SUBTRACTED;
     
    4749               model->params->data.F32[PM_PAR_XPOS], model->params->data.F32[PM_PAR_YPOS]);
    4850
     51      // pmSourceAdd (source, !NORM, "+");
     52      // XXX remove model selection and ps
    4953      pmModelAdd (source->pixels, source->mask, model, PM_MODEL_ADD_FULL);
    5054      source->mode &= ~PM_SOURCE_MODE_SUBTRACTED;
     
    9195    // replace the model if 1) state says it is missing or 2) useState is false (just do it)
    9296    if (!state || !useState) {
     97      // pmSourceSub (!NORM, -)
    9398        pmModelSub (source->pixels, source->mask, model, PM_MODEL_ADD_FULL);
    9499    }
     
    111116   
    112117    if (curState && !newState) {
     118      // pmSourceSub (!NORM, -)
    113119        pmModelSub (source->pixels, source->mask, model, PM_MODEL_ADD_FULL);
    114120    }
    115121    if (newState && !curState) {
     122      // pmSourceAdd (!NORM, +)
    116123        pmModelAdd (source->pixels, source->mask, model, PM_MODEL_ADD_FULL);
    117124    }
Note: See TracChangeset for help on using the changeset viewer.