IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 23, 2007, 4:54:30 PM (19 years ago)
Author:
eugene
Message:

moving to maskObj and maskView, re-wrote psphotEnsemblePSF using modelFlux, renamed to psphotFitSourcesLinear

File:
1 edited

Legend:

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

    r12792 r12978  
    2525bool psphotCheckRadiusPSF (pmReadout *readout, pmSource *source, pmModel *model)
    2626{
     27    psF32 *PAR = model->params->data.F32;
     28
     29    // XXX do we have a better value for the sky noise level?  not really...
    2730    pmMoments *moments = source->moments;
    28     // do we have a better value for the sky noise level?
    29     // not really...
    3031
    3132    // set the fit radius based on the object flux limit and the model
     
    4647    }
    4748
    48     bool status = pmSourceRedefinePixels (source, readout, model->params->data.F32[2], model->params->data.F32[3], model->radiusFit);
     49    bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit);
     50
     51    // set the mask to flag the excluded pixels
     52    psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", PM_MASK_MARK);
    4953    return status;
    5054}
    5155
    5256bool psphotCheckRadiusPSFBlend (pmReadout *readout, pmSource *source, pmModel *model, float dR) {
     57
     58    psF32 *PAR = model->params->data.F32;
    5359
    5460    pmMoments *moments = source->moments;
     
    6369    }
    6470
    65     bool status = pmSourceRedefinePixels (source, readout, model->params->data.F32[2], model->params->data.F32[3], model->radiusFit);
     71    bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit);
     72
     73    // set the mask to flag the excluded pixels
     74    psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", PM_MASK_MARK);
    6675    return status;
    6776}
     
    8695bool psphotCheckRadiusEXT (pmReadout *readout, pmSource *source, pmModel *model) {
    8796
     97    psF32 *PAR = model->params->data.F32;
     98
    8899    pmMoments *moments = source->moments;
    89100    if (moments == NULL) return false;
     
    94105
    95106    // redefine the pixels if needed
    96     bool status = pmSourceRedefinePixels (source, readout, model->params->data.F32[2], model->params->data.F32[3], model->radiusFit);
     107    bool status = pmSourceRedefinePixels (source, readout, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit);
     108
     109    // set the mask to flag the excluded pixels
     110    psImageKeepCircle (source->maskObj, PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], model->radiusFit, "OR", PM_MASK_MARK);
    97111    return status;
    98112}
Note: See TracChangeset for help on using the changeset viewer.