Changeset 29935 for trunk/psModules/src/objects/pmSourcePhotometry.c
- Timestamp:
- Dec 5, 2010, 9:33:17 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourcePhotometry.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourcePhotometry.c
r29546 r29935 107 107 // XXX handle negative flux, low-significance 108 108 if (model->dparams->data.F32[PM_PAR_I0] > 0) { 109 SN = model->params->data.F32[PM_PAR_I0] / model->dparams->data.F32[PM_PAR_I0];109 SN = fabs(model->params->data.F32[PM_PAR_I0] / model->dparams->data.F32[PM_PAR_I0]); 110 110 source->errMag = 1.0 / SN; 111 111 } else { … … 331 331 } 332 332 if (apFluxOut) *apFluxOut = apFlux; 333 if (apFluxErr) *apFluxErr = sqrt( apFluxVar);333 if (apFluxErr) *apFluxErr = sqrt(fabs(apFluxVar)); 334 334 335 335 if (apFlux <= 0) {
Note:
See TracChangeset
for help on using the changeset viewer.
