read_data¶
- tessilator.tessilator.read_data(t_filename, name_is_source_id=0)[source]¶
Read input data and convert to an astropy table ready for analysis
The input data must be in the form of a comma-separated variable and may take 3 forms:(a) a 1-column table of source identifiers(b) a 2-column table of decimal sky coordinates (celestial or galactic)(c) a pre-prepared table of 5 columns consisting of source_id, ra, dec, parallax, Gmag (without column headers)Note that a single target can be quickly analysed directly from the command line by using option (a) with double-quotation marks around the source identifier.
E.G. >>> python run_tess_cutouts 0 0 0 files “AB Doradus”
- Parameters:
- t_filename
astropy.table.Table name of the file containing the input data
- name_is_source_id
int, optional, Default=0 when running option (c), this toggle if == 1 will automatically set the “name” column as the Gaia DR3 identifiers. This avoids long sql queries for very large input tables.
- t_filename
- Returns:
- t_targets
astropy.table.Table a formatted astropy table ready for further analysis
- t_targets