opihiexarata.library.mpcrecord module
- opihiexarata.library.mpcrecord.blank_minor_planet_table() Table [source]
Creates a blank table which contains the columns which are recognized by the MPC standard 80-column record format.
- Parameters:
None –
- Returns:
blank_table – The table with only the column headings; no records are in the table.
- Return type:
Astropy Table
- opihiexarata.library.mpcrecord.clean_minor_planet_record(records: list[str]) list[str] [source]
This function cleans up an input MPC record.
It…
Removes duplicate entries
Entries not 80-characters long.
Sorts based off of observation time.
- Parameters:
records (list) – The records to be sorted and cleaned up.
- Returns:
clean_records – The records after they have been cleaned.
- Return type:
list
- opihiexarata.library.mpcrecord.minor_planet_record_to_table(records: list[str]) Table [source]
This converts an 80 column record for minor planets to a table representing the same data.
The documentation for how the columns are assigned is provided by the Minor Planet Center: https://www.minorplanetcenter.net/iau/info/OpticalObs.html
- Parameters:
records (list) – The records in MPC format. Each entry of the list should be an 80 column string representing an observed record, a single line.
- Returns:
table – A table containing the same information that is in the MPC record format in an easier interface.
- Return type:
Astropy Table
- opihiexarata.library.mpcrecord.minor_planet_table_to_record(table: Table) list[str] [source]
This converts an 80 column record for minor planets to a table representing the same data.
This function provides a minimal amount of verification that the input table is correct. If the provided entry of the table is too long, the text is striped of whitespace and then ususally cut.
The documentation for how the columns are assigned is provided by the Minor Planet Center: https://www.minorplanetcenter.net/iau/info/OpticalObs.html
- Parameters:
table (Astropy Table) – A table containing the same information that can be written as the standard 80-column record.
- Returns:
records – The records in MPC format. Each entry is 80 characters long and are in the standard format. The entries are derived from the provided table with information cut to fit into the format.
- Return type:
list