Use aperture size as diameter of the photometric aperture

This commit is contained in:
Lukas Klass 2020-10-05 20:45:05 +02:00
parent 009a01597b
commit 342c9f5dfa

View File

@ -361,10 +361,8 @@ class Imager(ASensor):
else: else:
# Target is a point source # Target is a point source
if self.__aperture_size is not None: if self.__aperture_size is not None:
# Calculate the diameter of the photometric aperture as square root of the contained pixels # Us ethe aperture size as diameter
d_photometric_ap = np.sqrt(self.__aperture_size.value) * u.pix d_photometric_ap = self.__aperture_size
# Mask the pixels to be exposed
mask.createPhotometricAperture("square", d_photometric_ap / 2, np.array([0, 0]) << u.pix)
else: else:
# Calculate the diameter of the photometric aperture from the given contained energy # Calculate the diameter of the photometric aperture from the given contained energy
logger.info("Calculating the diameter of the photometric aperture...", logger.info("Calculating the diameter of the photometric aperture...",