Hipparcos¶
- class sonic.Hipparcos¶
Bases:
sonic.StarCatalog
- Constructor Summary
- Hipparcos(varargin)¶
Instantiate the Hipparcos catalog from a SONIC-generated Hipparcos datafile.
- Inputs:
[No Input]: uses the internal cache location to find the SONIC-generated Hipparcos datafile OR
hip_db (table): table from the SONIC-generated Hipparcos datafile
- Outputs:
obj (sonic.Hipparcos): Hipparcos catalog object
Last revised: 3/29/24 Last author: Michael Krause
- Property Summary
- Vmag¶
- bayer¶
- const_bayer¶
- const_radec¶
- id¶
- Method Summary
- static getBayerParseTargs()¶
Yields the struct for appropriately parsing the raw Bayer table, used by sonic.Hipparcos.parseTable()
- Outputs:
bayer_parse_targs (nx1 struct): a struct array, where each entry indicates a column to select and a desired name for each column
Last revised: 2/14/24 Last author: Michael Krause
- static getHipparcosParseTargs()¶
Yields the struct for appropriately parsing the raw Hipparcos table, used by sonic.Hipparcos.parseTable()
- Outputs:
hip_parse_targs (nx1 struct): a struct array, where each entry indicates a column to select and a desired name for each column
Last revised: 2/14/24 Last author: Michael Krause
- static matchHipBayer(hip_data, bayer_data)¶
Given parsed tables of Hipparcos and Bayer catalog data, matches the two and concatenates the tables appropriately.
- Inputs:
hip_data (table): table containing (parsed) Hipparcos catalog
bayer_data (table): table containing (parsed) Bayer catalog
- Outputs:
comb_data (table): combined table, with Hipparcos and Bayer data correlated
Last revised: 2/14/24 Last author: Michael Krause
- static parseData(hip_db_path, bayer_db_path, save_loc)¶
Load the raw Hipparcos catalog and the associated Bayer lookup tables, parse and combine them, and save it to the specified location.
- Inputs:
hip_db_path (char): Path to Hipparcos catalog
bayer_db_path (char): Path to Bayer catalog
save_loc (char): Path to save processed datafile
Last revised: 2/14/24 Last author: Michael Krause
- static parseTable(raw_tab, parse_targs)¶
Given a table, extracts only the columns of interest and renames them as specified.
- Inputs:
raw_tab (table): an arbitrary table
parse_targs (1xn struct): a struct array, where each entry indicates a column to select and a desired name for each column
- Outputs:
parsed_tab (table): retained columns from the input table, renamed accordingly
Last revised: 2/14/24 Last author: Michael Krause