IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 23, 2006, 6:16:11 PM (20 years ago)
Author:
eugene
Message:

fixed some errors with double sources, added second-pass linear PSF fit, multiple-depths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotRadiusChecks.c

    r6427 r6481  
    2424    // set the fit radius based on the object flux limit and the model
    2525    model->radius = modelRadiusPSF (model->params, PSF_FIT_NSIGMA*moments->dSky) + PSF_FIT_PADDING;
     26    if (isnan(model->radius)) psAbort ("apply_psf_model", "error in radius");
     27       
     28    if (source->mode &  PM_SOURCE_SATSTAR) {
     29        model->radius *= 2;
     30    }
     31
     32    bool status = psphotRedefinePixels (source, readout, model->params->data.F32[2], model->params->data.F32[3], model->radius);
     33    return status;
     34}
     35
     36bool psphotCheckRadiusPSFBlend (pmReadout *readout, pmSource *source, pmModel *model, float dR) {
     37
     38    pmMoments *moments = source->moments;
     39    if (moments == NULL) return false;
     40
     41    // set the fit radius based on the object flux limit and the model
     42    model->radius = modelRadiusPSF (model->params, PSF_FIT_NSIGMA*moments->dSky) + dR + PSF_FIT_PADDING;
    2643    if (isnan(model->radius)) psAbort ("apply_psf_model", "error in radius");
    2744       
Note: See TracChangeset for help on using the changeset viewer.