jplhorizons.HorizonsSPKQuery

jplhorizons.HorizonsSPKQuery(
    command,
    start=None,
    stop=None,
    obj_data=False,
    output=None,
)

Class to handle JPL Horizons SPK queries.

Methods

Name Description
init Get SPK query parameters for JPL Horizons.

init

jplhorizons.HorizonsSPKQuery.__init__(
    command,
    start=None,
    stop=None,
    obj_data=False,
    output=None,
)

Get SPK query parameters for JPL Horizons.

Parameters

command : str
The COMMAND parameter in Horizons Query API. See the COMMAND Parameter section in this link for the details https://ssd-api.jpl.nasa.gov/doc/horizons.html#ephem_type For small bodies, it should generally be ending with a semicolon (";"), and in the format of one of these::
  • "<astnum>;", e.g., "99942;"
  • "<name>;" (e.g., "Apophis;"),
  • "DES=<des>;" (e.g., "DES=1999 AN10;").
  • "DES=<spkid>;" (e.g., "DES=20099942;").
start : str, default = None

Start and stop times of the query in ISO format. If not provided, the current time and one day later will be used (the default setting of Horizons API).

stop : str, default = None

Start and stop times of the query in ISO format. If not provided, the current time and one day later will be used (the default setting of Horizons API).

obj_data : bool, default = False

If True, include object data in the SPK file.