Changeset 5802 for trunk/psphot/src/psModulesUtils.c
- Timestamp:
- Dec 17, 2005, 10:26:59 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psModulesUtils.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psModulesUtils.c
r5772 r5802 65 65 float sky = model->params->data.F32[0]; 66 66 67 *fitMag = 99.0; 68 *obsMag = 99.0; 69 67 70 pmModelFlux modelFluxFunc = pmModelFlux_GetFunction (model->type); 68 71 fitSum = modelFluxFunc (model->params); 72 if (fitSum <= 0) return false; 73 if (!isfinite(fitSum)) return false; 74 *fitMag = -2.5*log10(fitSum); 69 75 70 76 for (int ix = 0; ix < image->numCols; ix++) { … … 75 81 } 76 82 if (obsSum <= 0) return false; 77 if (fitSum <= 0) return false;83 *obsMag = -2.5*log10(obsSum); 78 84 79 *fitMag = -2.5*log10(fitSum);80 *obsMag = -2.5*log10(obsSum);81 85 return (true); 82 86 }
Note:
See TracChangeset
for help on using the changeset viewer.
