DC2-analysis icon indicating copy to clipboard operation
DC2-analysis copied to clipboard

Add correct psfFlux PSF scaling with aperture correction to Postage Stamp

Open wmwv opened this issue 6 years ago • 1 comments

The PSF subtraction is intentionally naive. But perhaps not sufficiently so. A new user might be misled to think that it's showing a reasonable way of getting the full contribution of a source.

Eventually add on how to do this right:

 psfIm = exposure.getPsf(s.getCentroid()).computeImage()
 psfIm *= s.getPsfFlux()
 exposure.maskedImage[psfIm.getBBox()] -= psfIm
AND ACCOUNT APERTURE CORRECTION

Showing this would require adding (1) querying the coadd catalog and (2) doing the aperture correction right.

wmwv avatar Jul 23 '18 14:07 wmwv

Move to DC2-analysis repo. Low priority

wmwv avatar Oct 27 '21 19:10 wmwv