eliminate_duplicates module¶
This script removes duplicates and creates a catalog without duplicated sources
- eliminate_duplicates.find_catalog_duplicates(ras, dec, freq)¶
Finds duplicates in the catalog
- Parameters
ras (float) – Right ascension
dec (float) – Declination
freq (float) – Frequency
- Returns
cond (Bool array) – array storing proximity criteria
idx (int array) – Index of the duplicated sources
- eliminate_duplicates.get_args()¶
This function parses and returns arguments passed in
- eliminate_duplicates.main()¶
Removes duplicates and creates a catalog without duplicated sources
- eliminate_duplicates.mask_worse_duplicates(cond, idx, catalog_table)¶
Finds worse duplicates and masks them
- Parameters
cond (Bool array) – array storing proximity criteria
idx (int array) – Index of the duplicated sources
catalog_table (astropy.Table) – table with detections
- Returns
duplicates – array with True when source is duplicated
- Return type
Bool array
- eliminate_duplicates.read_coordinates_from_table(cat)¶
Reads coordinates from a table
- Parameters
cat (astropy.Table) – table with coordinates
- Returns
ras (float) – Right ascension
dec (float) – Declination
freq (float) – Frequency
- eliminate_duplicates.read_ref_catalog(infile, name_list)¶
Reads the catalog with the variables from an input string
- Parameters
infile (str) – Input file name
name_list (str) – List of varible names
- Returns
catalog_table – table with the data
- Return type
astropy.Table