aper_run¶
- tessilator.aperture.aper_run(file_in, targets, xy_pos=(10.0, 10.0), ap_rad=1.0, sky_ann=(6.0, 8.0), fix_rad=False)[source]¶
Perform aperture photometry for the image data.
This function reads in each fits file, determines the pixel radius for an image aperture and performs aperture photometry. A table of aperture photometry results is returned, which forms the raw lightcurve to be processed in subsequent functions.
- Parameters:
- file_in
str Name of the fits file containing image data.
- targets
astropy.table.Table The table of input data.
- xy_pos
tuple, optional, default=(10.,10.) The x-y centroid (in pixels) of the aperture.
- ap_rad
float, optional, default=1. The size of the aperture radius in pixels.
- sky_ann
tuple, optional, default=(6.,8.) A 2-element tuple defining the inner and outer annulus to calculate the background flux.
- fix_rad
bool, optional, default=False If True, then set the aperture radius equal to ap_rad, otherwise run the calc_rad algorithm.
- file_in
- Returns:
- full_phot_table
astropy.table.Table The formatted table containing results from the aperture photometry.
- ap_rad
float The size of the aperture radius in pixels.
- full_phot_table