Interactive Aperture

Functions for doing interactive photometry:

class hostphot.interactive_aperture.InteractiveAperture(name, survey='PS1', filters=None, masked=True, bkg_sub=None, correct_extinction=True)

Class to interactively set the aperture to calculate photometry.

Parameters:
  • name (str) – Name of the object to find the path of the fits file.

  • filters (str, default, None) – Filters to use to load the fits files. If None use all the filters of the given survey.

  • survey (str, default PS1) – Survey to use for the zero-points and pixel scale.

  • masked (bool, default False) – If True, uses masked images.

  • masked – If True, the images are background subtracted.

  • bkg_sub (bool, default None) – If True, the image gets background subtracted. By default, only the images that need it get background subtracted (WISE, 2MASS and VISTA).

  • correct_extinction (bool, default True) – If True, corrects for Milky-Way extinction using the recalibrated dust maps by Schlafly & Finkbeiner (2011) and the extinction law from Fitzpatrick (1999).

export_photometry(outfile=None)

Exports the photometry (magnitudes) into a csv file.