query#

Query Simbad & Astropy to get information about celestial objects, using an ImageSettings object to filter the data.

Constants#

SOLARSYSTEM_BODIES

Dictionary of bodies (planets) and base magnitudes (used in get_planet_magnitude)

BASIC_TABLE

Basic table structure used for celestial objects.

FALLBACK_SPECTRAL_TYPE

The spectral type to assign to an object that doesn't have one.

Functions#

High-Level Functions#

get_body_locations(observation_times, ...)

Get ephemeris for the sun/earth/planets.

get_planet_table(body_locations)

Get the planetary information at each observing time.

get_star_table(observation_radec, ...[, ...])

Query Simbad to get celestial objects.

Low-Level Functions#

get_spectral_types(object_colours)

Convert the user-input object colours dictionary to a list of valid spectral types.

run_simbad_query(query_type[, extra_columns])

Query SIMBAD with either a region or TAP request.

get_planet_magnitude(base_magnitude, ...)

Calculate the magnitude for a planet.

get_star_name_column(star_table)

Create human-readable name column.

get_child_stars(parent_stars, maximum_magnitude)

Query SIMBAD for any child objects of parent_stars.

remove_child_stars(star_table, maximum_magnitude)

Check the given table for parent-child pairs, and remove the children if they exist.

get_single_spectral_type(spectral_type, ...)

Process a SIMBAD spectral type into one of acceptable_types or FALLBACK_SPECTRAL_TYPE.

simplify_spectral_types(star_table, ...)

Replaces the spectral_type column of a table with simplified versions via get_single_spectral_type.

clean_simbad_table_columns(table)

Remove and rename some SIMBAD columns - does not fail if the columns do not exist (happens if the table was actually generated from BASIC_TABLE and not by an actual query).