IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11174


Ignore:
Timestamp:
Jan 18, 2007, 6:54:46 PM (19 years ago)
Author:
eugene
Message:

temporary option to handle sources without moments (better choice needed)

File:
1 edited

Legend:

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

    r10140 r11174  
    2626{
    2727    pmMoments *moments = source->moments;
    28     if (moments == NULL) return false;
     28    // do we have a better value for the sky noise level?
     29    // not really...
    2930
    3031    // set the fit radius based on the object flux limit and the model
    3132    float radiusFit = PSF_FIT_RADIUS;
    3233    if (radiusFit <= 0) {               // use fixed radius
    33         radiusFit = modelRadiusPSF(model->params, PSF_FIT_NSIGMA*moments->dSky);
     34        if (moments == NULL) {
     35            radiusFit = modelRadiusPSF(model->params, PSF_FIT_NSIGMA*moments->dSky);
     36        } else {
     37            radiusFit = modelRadiusPSF(model->params, 1.0);
     38        }
    3439    }
    3540    model->radiusFit = (RADIUS_TYPE)(radiusFit + PSF_FIT_PADDING);
Note: See TracChangeset for help on using the changeset viewer.