Changeset 5980 for trunk/psphot/src/psphotRadiusChecks.c
- Timestamp:
- Jan 13, 2006, 8:24:10 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotRadiusChecks.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotRadiusChecks.c
r5828 r5980 31 31 } 32 32 33 // check if we need to redefine the pixels 34 // XXX EAM : a better test would examine the source pixels 33 # if (1) 34 bool status = psphotRedefinePixels (source, imdata, model->params->data.F32[2], model->params->data.F32[3], model->radius); 35 return status; 36 37 # else 38 35 39 if (model->radius > PSF_OUTER_RADIUS) { 36 40 // (re)-allocate image, weight, mask arrays for each peak (square of radius OUTER) 37 41 psphotDefinePixels (source, imdata, model->params->data.F32[2], model->params->data.F32[3], model->radius); 38 42 return true; 43 } else { 44 fprintf (stderr, "skipping %f,%f\n", model->params->data.F32[2], model->params->data.F32[3]); 39 45 } 40 41 46 return false; 47 # endif 42 48 } 43 49 … … 68 74 if (isnan(model->radius)) psAbort ("fit_galaxies", "error in radius"); 69 75 76 # if (1) 77 // redefine the pixels if needed 78 bool status = psphotRedefinePixels (source, imdata, model->params->data.F32[2], model->params->data.F32[3], model->radius); 79 return status; 80 81 # else 82 70 83 // check if we need to redefine the pixels 71 84 if (model->radius > GAL_OUTER_RADIUS) { … … 76 89 } 77 90 return false; 91 # endif 78 92 }
Note:
See TracChangeset
for help on using the changeset viewer.
