jplhorizons.horizons_quick

jplhorizons.horizons_quick(
    objid,
    epochs,
    depochs=HORIZONS_DEPOCHS,
    location='500',
    in_tdb=False,
    auto_choose_recordnum=False,
    **kwargs,
)

Quick query for the object ID from JPL Horizons to compare with kete.

Parameters

objid : str

The object ID to be queried.

epochs : list-like or dict

The epochs to be queried. Can be:

  • list-like: A sequence of JD values.
  • dict: A range specification with keys 'start', 'stop', and 'step', e.g., {'start': '2025-01-01', 'stop': '2026-01-01', 'step': '1d'}. When a dict is provided, chunking (depochs) is bypassed and the dict is passed directly to ~astroquery.jplhorizons.Horizons.
depochs : int, default = HORIZONS_DEPOCHS

Number of epochs in a chunk to use for the query. This is necessary to avoid “too long URI” errors when epochs is a large list. Ignored when epochs is a dict. Default is HORIZONS_DEPOCHS.

location : str, default = '500'

The location of the observer. Default is "500".

in_tdb : bool, default = False

If True, the input epochs are in TDB. If `False`` (default), the input epochs are in UTC.

.. note:: The default is False (UTC). If your epochs are in TDB (e.g., JD values from kete), set in_tdb=True explicitly.

For dict epochs with in_tdb=True, the 'start' and 'stop' values are parsed as TDB and converted to UTC ISO strings before querying.

auto_choose_recordnum : bool, default = False

If True and the query returns ambiguous results (e.g., for comets with multiple apparitions), automatically interpret the error message to select the record with the most recent epoch year (or largest Record # if years are identical). Default is False.

**kwargs : dict

Additional keyword arguments to pass to ~astroquery.jplhorizons.Horizons.ephemerides. See https://astroquery.readthedocs.io/en/latest/api/astroquery.jplhorizons.HorizonsClass.html#astroquery.jplhorizons.HorizonsClass.ephemerides