Changeset 34179
- Timestamp:
- Jul 19, 2012, 12:02:03 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120627/psphot/src
- Files:
-
- 2 edited
-
psphotReadoutMinimal.c (modified) (1 diff)
-
psphotSourceSize.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120627/psphot/src/psphotReadoutMinimal.c
r34172 r34179 25 25 // Generate the mask and weight images, including the user-defined analysis region of interest 26 26 psphotSetMaskAndVariance (config, view, filerule); 27 28 // only subtract background if needed? 29 if (1) { 30 // generate a background model (median, smoothed image) 31 if (!psphotModelBackground (config, view, filerule)) { 32 return psphotReadoutCleanup (config, view, filerule); 33 } 34 if (!psphotSubtractBackground (config, view, filerule)) { 35 return psphotReadoutCleanup (config, view, filerule); 36 } 37 } 27 38 28 39 // load the psf model, if suppled. FWHM_X,FWHM_Y,etc are saved on readout->analysis -
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.
