adam_core.orbits.query.horizons module¶
- adam_core.orbits.query.horizons.query_horizons_ephemeris(object_ids: List | _Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], observers: Observers) Ephemeris[source]¶
Query JPL Horizons (through astroquery) for an object’s predicted ephemeris as seen from a given location at the given times.
- Parameters:
object_ids (Union[List, ~numpy.ndarray] (N)) – Object IDs / designations recognizable by HORIZONS.
observers (~adam_core.observers.observers.Observers) – Observers object containing the location and times of the observers.
- Returns:
ephemeris – Dataframe containing the predicted ephemerides of the given objects as seen from the observer location at the given times.
- Return type:
~pandas.DataFrame
- adam_core.orbits.query.horizons.query_horizons(object_ids: List | _Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], times: Timestamp, coordinate_type: str = 'cartesian', location: str = '@sun', aberrations: str = 'geometric', id_type: str | None = None) Orbits[source]¶
Query JPL Horizons (through astroquery) for an object’s state vectors or elements at the given times.
- Parameters:
object_ids (npt.ArrayLike (N)) – Object IDs / designations recognizable by HORIZONS.
times (Timestamp (M)) – Time at which to gather state vectors.
coordinate_type ({'cartesian', 'keplerian', 'cometary'}) – Type of orbital elements to return.
location (str, optional) – Location of the origin typically a NAIF code. (‘0’ or ‘@ssb’ for solar system barycenter, ‘10’ or ‘@sun’ for heliocenter) [Default = ‘@sun’]
id_type ({'majorbody', 'smallbody', 'designation',) – ‘name’, ‘asteroid_name’, ‘comet_name’, ‘id’} ID type, Horizons will find closest match under any given type.
aberrations ({'geometric', 'astrometric', 'apparent'}) – Adjust state for one of three different aberrations.
- Returns:
orbits – Orbits object containing the state vectors or elements of the object at each time.
- Return type:
~adam_core.orbits.orbits.Orbits