diff --git a/CHANGES.md b/CHANGES.md index ef60c313..81c3f5e1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +1.16.1 (2023-04-23) +------------------- +- Correction to aperture photometry. We were incorrectly using the radius instead of the diameter + 1.16.0 (2023-04-18) ------------------- - Calibration frames are now associated with output data products rather than frames diff --git a/banzai/photometry.py b/banzai/photometry.py index bb8862e4..58bc7cce 100755 --- a/banzai/photometry.py +++ b/banzai/photometry.py @@ -125,9 +125,9 @@ def do_stage(self, image): 'xy': catalog.covar_sigxy.value, 'background': catalog.background_mean}) - for r in range(1, 7): - radius_arcsec = r / image.pixel_scale - sources[f'fluxaper{r}'], sources[f'fluxerr{r}'] = catalog.circular_photometry(radius_arcsec) + for d in range(1, 7): + radius_arcsec = d / image.pixel_scale / 2.0 + sources[f'fluxaper{d}'], sources[f'fluxerr{d}'] = catalog.circular_photometry(radius_arcsec) for r in [0.25, 0.5, 0.75]: sources['fluxrad' + f'{r:.2f}'.lstrip("0.")] = catalog.fluxfrac_radius(r)