Skip to content
Snippets Groups Projects
Commit 749b47cf authored by Massana Zapata's avatar Massana Zapata
Browse files

Fixed .area call.

parent bdcab8c5
Branches master
No related tags found
No related merge requests found
...@@ -174,8 +174,8 @@ def compute_photometry(x, y, aperture_r=3.0, sky_in=6.0, sky_out=8.0): ...@@ -174,8 +174,8 @@ def compute_photometry(x, y, aperture_r=3.0, sky_in=6.0, sky_out=8.0):
phot_table = aperture_photometry(data_sub, apers, error) phot_table = aperture_photometry(data_sub, apers, error)
# Mean sky subtraction # Mean sky subtraction
bkg_mean = phot_table['aperture_sum_1'] / annulus_apertures.area() bkg_mean = phot_table['aperture_sum_1'] / annulus_apertures.area
bkg_sum = bkg_mean * apertures.area() bkg_sum = bkg_mean * apertures.area
final_sum = phot_table['aperture_sum_0'] - bkg_sum final_sum = phot_table['aperture_sum_0'] - bkg_sum
# Calculating zero-point : http://www.stsci.edu/hst/wfpc2/analysis/wfpc2_cookbook.html # Calculating zero-point : http://www.stsci.edu/hst/wfpc2/analysis/wfpc2_cookbook.html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment