full_run_lc¶
- tessilator.tessilator.full_run_lc(file_in, t_target, make_plots, scc, final_table, cutout_size=20, flux_con=0, LC_con=0, con_file=0, XY_pos=(10.0, 10.0), Rad=1.0, SkyRad=[6.0, 8.0])[source]¶
Aperture photometry, lightcurve cleaning and periodogram analysis.
This function calls a set of functions in the lc_analysis.py module to perform aperture photometry, clean the lightcurves from spurious data and runs the Lomb-Scargle periodogram to measure rotation periods.
- Parameters:
- file_in
str name of the input TESS fits file
- t_target
astropy.table.Table details of the target star
- make_plots: `bool`
decides if plots are made
- scc
list, size=3 sector, camera, ccd
- cutout_size
int the pixel length of the downloaded cutout
- flux_con
bool, optional, default=0 Decides if the flux contribution from contaminants is to be calculated.
- LC_con
bool, optional, default=0 Decides if a lightcurve analysis is to be performed for the n strongest contaminants, where n is a keyword in the “contamination” function from tess_functions2.py.
- con_file
str The name of the file to store data from the total flux contribution from contaminants.
- XY_pos
tuple, size=2x2, optional, default=(10.,10.) The centroid of the target in pixels.
- Rad
float, optional, default=1.0 The aperture radius from the aperture photometry
- SkyRad
Iterable, optional, default=[6.,8.] The inner and outer background annuli from aperture photometry
- file_in
- Returns:
- A data entry for the final period file.
- A plot of the lightcurve (if requested).