table_from_coords¶
- tessilator.maketable.table_from_coords(coord_table, ang_max=10.0, type_coord='icrs', gaia_sys=True)[source]¶
Generate the formatted astropy table from a list of coordinates.
Each entry needs to be in comma separated variable(.csv) format.
- Parameters:
- coord_table
astropy.table.Table A table with two columns named ‘col1’ and ‘col2’. If the coordinates are in the ‘icrs’ system, the columns should contain the right ascension and declination values in degrees. If the coordinates are in the ‘galactic’ or ‘ecliptic’ system, the columns contain the longitude and latitude in degrees.
- ang_max
float, optional, default=10.0 the maximum angular distance in arcseconds from the input coordinates provided in the table.
- type_coord
str, optional, default=’icrs’ The coordinate system of the input positions. These can be ‘icrs’ (default), ‘galactic’ or ‘ecliptic’.
- gaia_sys
bool, optional, default=True Choose to format the data based on Gaia DR3. Note that no contamination can be calculated if this is False.
- coord_table
- Returns:
- gaia_table
astropy.table.Table The output table ready for further analysis.
- gaia_table