run_sql_query_contaminants¶
- tessilator.contaminants.run_sql_query_contaminants(t_target, pix_radius=5.0, mag_lim=3.0, tot_attempts=3)[source]¶
Perform an SQL Query to identify neighbouring contaminants.
If an analysis of flux contribution from neighbouring contaminants is specified, this function generates the SQL query to identify targets within a specified pixel radius. The function returns a table of Gaia information on the neighbouring sources which is used to quantify the flux contamination within the target aperture.
- Parameters:
- t_target
astropy.table.Table The input table
- pix_radius
float, optional, default=5.0 The maximum angular distance (in arcsecs) to search for contaminants
- t_target
- Returns:
- t_gaia
astropy.table.Table The Gaia results table from the SQL query.
- t_gaia