Changeset 34258 for trunk/psphot/src/psphotSourceSize.c
- Timestamp:
- Jul 31, 2012, 3:58:10 PM (14 years ago)
- Location:
- trunk/psphot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20120627/psphot (added) merged: 34139,34146,34172,34179,34190,34240,34247,34255
- Property svn:mergeinfo changed
-
trunk/psphot/src
- Property svn:ignore
-
old new 23 23 psphotStack 24 24 psphotModelTest 25 psphotMinimal
-
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20120627/psphot/src (added) merged: 34139,34146,34172,34179,34190,34240,34247,34255
- Property svn:ignore
-
trunk/psphot/src/psphotSourceSize.c
r34201 r34258 462 462 psImageMaskType maskVal = options->maskVal | options->markVal; 463 463 464 // in the ppSub context, do we get sensible values for ApResid? 465 float ApResidPSF = options->ApResid; 466 if (!isfinite(ApResidPSF)) { 467 ApResidPSF = 0.0; 468 } 469 float ApSysErrPSF = options->ApSysErr; 470 if (!isfinite(ApSysErrPSF)) { 471 ApSysErrPSF = 0.0; 472 } 473 464 474 for (psS32 i = 0 ; i < sources->n ; i++) { 465 475 … … 529 539 // set nSigmaMAG to include both systematic and poisson error terms. we include a hard 530 540 // floor on the Ap Sys Err (to be a bit generous). XXX put the floor in the recipe... 531 float nSigmaMAG = (dMag - options->ApResid) / hypot(source->psfMagErr, hypot(options->ApSysErr, 0.02));541 float nSigmaMAG = (dMag - ApResidPSF) / hypot(source->psfMagErr, hypot(ApSysErrPSF, 0.02)); 532 542 source->extNsigma = nSigmaMAG; 533 543
Note:
See TracChangeset
for help on using the changeset viewer.
