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:
- coord
astropy.astropy.SkyCoord A set of coordinates in the SkyCoord format
- target
astropy.table.row.Row A row of data from the astropy table
- LC_con
bool 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_con
bool Decides if the flux contribution from contaminants is to be calculated.
- con_file
str The name of the file to store data from the total flux contribution from contaminants.
- make_plots
bool Decides is plots are made from the lightcurve analysis.
- final_table
astropy.table.Table The table to store the final tessilator results.
- choose_sec
None,intorIterable, optional, default=None - The sector, or sectors required for download.
- cutout_size
float, optional, default=20 the pixel length of the downloaded cutout
- tot_attempts
int, optional, default=3 The number of attempts to download the fits files in case of request or server errors
- cap_files
None,int, optional, default=None The maximum number of sectors for each target.
- targ_name
GorT, 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.
- coord
- Returns:
- Nothing returned. Results are saved to table and plots are generated (if
- specified).