one_source_cutout

tessilator.tessilator.one_source_cutout(coord, target, LC_con, flux_con, con_file, make_plots, final_table, choose_sec=None, cutout_size=20, tot_attempts=3, cap_files=None, targ_name='G')[source]

Download cutouts and run lightcurve/periodogram analysis for one target.

Called by the function “all_sources”.

Parameters:
coordastropy.astropy.SkyCoord

A set of coordinates in the SkyCoord format

targetastropy.table.row.Row

A row of data from the astropy table

LC_conbool

Decides if a lightcurve analysis is to be performed for the 5 strongest contaminants. Here, the data required for further analysis are stored in a table.

flux_conbool

Decides if the flux contribution from contaminants is to be calculated.

con_filestr

The name of the file to store data from the total flux contribution from contaminants.

make_plotsbool

Decides is plots are made from the lightcurve analysis.

final_tableastropy.table.Table

The table to store the final tessilator results.

choose_secNone, int or Iterable, optional, default=None
The sector, or sectors required for download.
  • If None, TESScut will download all sectors available for the target.

  • If int, TESScut will attempt to download this sector number.

  • If Iterable, TESScut will attempt to download a list of sectors.

cutout_sizefloat, optional, default=20

the pixel length of the downloaded cutout

tot_attemptsint, optional, default=3

The number of attempts to download the fits files in case of request or server errors

cap_filesNone, int, optional, default=None

The maximum number of sectors for each target.

targ_nameG or T, optional, default=G

The prefix in the names of the fits files are changed to either the Gaia source identifier if targ_name = G, or the target name if targ_name = T.

Returns:
Nothing returned. Results are saved to table and plots are generated (if
specified).