Skip to main content

CALLHORIZONS is a Python 2.7 interface to access JPL HORIZONS ephemerides and orbital elements of Solar System bodies.

Project description


This module provides a convenient python interface to the JPL HORIZONS system by directly accessing and parsing the http website. Ephemerides can be obtained through get_ephemerides, orbital elements through get_elements. Function export2pyephem provides a convenient interface to the PyEphem module that allows for ephemerides calculations on your machine.


The easiest way is to install the module using pip:

pip install callhorizons

For other ways, see the documentation.


The CALLHORIZONS documentation is available at


  • print RA and DEC of asteroid 433 Eros from Mauna Kea for two discrete dates:

    import callhorizons
    eros = callhorizons.query('Eros')
    eros.set_discreteepochs([2457446.177083, 2457446.182343])
    print eros['RA'], eros['DEC']

For more examples, see the documentation.


This code is published under the MIT License. Feel free to use this code and modify it to your own needs. Please note that the code is provided as is, without any warranty (see LICENSE file for details).

Copyright (c) 2016 Michael Mommert


Feel free to contact me with your suggestions and comments!

michael.mommert (at), latest version: v0.9, 2016-02-27


  • 2016-01-13: implemented function export2pyephem that exports orbital elements into a PyEphem object (requires PyEphem:
  • 2016-02-27: changed structure into class structure, created pip installer

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for CALLHORIZONS, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size CALLHORIZONS-1.0.0.tar.gz (290.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page