- Timestamp:
- Jul 19, 2012, 12:02:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120627/psphot/src/psphotSourceSize.c
r34172 r34179 456 456 psImageMaskType maskVal = options->maskVal | options->markVal; 457 457 458 // in the ppSub context, do we get sensible values for ApResid? 459 float ApResidPSF = options->ApResid; 460 if (!isfinite(ApResidPSF)) { 461 ApResidPSF = 0.0; 462 } 463 float ApSysErrPSF = options->ApSysErr; 464 if (!isfinite(ApSysErrPSF)) { 465 ApSysErrPSF = 0.0; 466 } 467 458 468 for (psS32 i = 0 ; i < sources->n ; i++) { 459 469 … … 521 531 } 522 532 523 // XXX in the ppSub context, do we get sensible values for ApResid?524 525 533 // set nSigmaMAG to include both systematic and poisson error terms. we include a hard 526 534 // floor on the Ap Sys Err (to be a bit generous). XXX put the floor in the recipe... 527 float nSigmaMAG = (dMag - options->ApResid) / hypot(source->psfMagErr, hypot(options->ApSysErr, 0.02));535 float nSigmaMAG = (dMag - ApResidPSF) / hypot(source->psfMagErr, hypot(ApSysErrPSF, 0.02)); 528 536 source->extNsigma = nSigmaMAG; 529 537
Note:
See TracChangeset
for help on using the changeset viewer.
