collect_contamination_data

tessilator.tessilator.collect_contamination_data(t_targets, flux_con, LC_con, con_file, **kwargs)[source]

Collect data on contamination sources around selected targets

This function takes a target table and, if requested, prints out details of the total flux contribution from neighbouring contaminating sources for each target. It also returns a table (in descending order) of (up to) 5 neighbouring contaminants that contribute the most flux in the target aperture, if requested.

Parameters:
t_targetsastropy.table.Table

target table with columns “name, source_id, ra, dec, parallax, Gmag”.

flux_conbool

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

LC_conbool

Decides if a lightcurve analysis is to be performed for the n_cont strongest contaminants, where n_cont is a keyword in the “contamination” function from contaminants.py.

con_filestr

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

Returns:
t_targetsastropy.table.Table

Input target table with 3 columns added containing details of the contamination: “log_tot_bg”, “log_max_bg”, “num_tot_bg”