table_from_table

tessilator.maketable.table_from_table(input_table, name_is_source_id=False, ang_max=10.0)[source]

Generate the formatted astropy table from a pre-formatted astropy table.

Each entry needs to be in comma separated variable(.csv) format. This is the quickest way to produce the table ready for analysis, but it is important the input data is properly formatted.

Parameters:
input_tableastropy.table.Table

The columns of table must be in the following order:

  • source_id (data type: str)

  • ra (data type: float)

  • dec (data type: float)

  • parallax (data type: float)

  • Gmag (data type: float)

  • BPmag (data type: float)

  • RPmag (data type: float)

The column headers must not be included!

name_is_source_idbool, optional, default=False

Choose if the name is to be the same as the Gaia DR3 source identifier.

ang_maxfloat, optional, default=10.0

the maximum angular distance in arcseconds from the input coordinates provided in the table.

Returns:
gaia_tableastropy.table.Table

The output table ready for further analysis.