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_instr

Name of the fits file containing image data.

targetsastropy.table.Table

The table of input data.

xy_postuple, optional, default=(10.,10.)

The x-y centroid (in pixels) of the aperture.

ap_radfloat, optional, default=1.

The size of the aperture radius in pixels.

sky_anntuple, optional, default=(6.,8.)

A 2-element tuple defining the inner and outer annulus to calculate the background flux.

fix_radbool, optional, default=False

If True, then set the aperture radius equal to ap_rad, otherwise run the calc_rad algorithm.

Returns:
full_phot_tableastropy.table.Table

The formatted table containing results from the aperture photometry.

ap_radfloat

The size of the aperture radius in pixels.