Changeset 11174
- Timestamp:
- Jan 18, 2007, 6:54:46 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotRadiusChecks.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotRadiusChecks.c
r10140 r11174 26 26 { 27 27 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... 29 30 30 31 // set the fit radius based on the object flux limit and the model 31 32 float radiusFit = PSF_FIT_RADIUS; 32 33 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 } 34 39 } 35 40 model->radiusFit = (RADIUS_TYPE)(radiusFit + PSF_FIT_PADDING);
Note:
See TracChangeset
for help on using the changeset viewer.
