Skip to main content

Ephemeris for Solar System Objects with JPL/Horizons

Project description

EPHESSOS

Ephemeris for Solar System Objects with JPL/Horizons

PyPI version License: BSD

EPHESSOS is a Python library for querying ephemeris data of solar system objects from NASA's JPL Horizons system. It provides an easy interface to retrieve positional and observational data for asteroids, comets, and planets.

Features

  • Query JPL Horizons using orbital elements or object designations
  • Parse MPC NEA (Near-Earth Asteroid) data files
  • Retrieve comprehensive ephemeris data including RA, Dec, distance, and more
  • Support for custom time ranges and step sizes
  • Integration with Astropy for astronomical calculations

Installation

Install EPHESSOS using pip:

pip install ephessos

Or from source:

git clone https://github.com/Borlaff/EPHESSOS.git
cd EPHESSOS
pip install .

Quick Start

Here's a simple example showing how to query the ephemeris of asteroid (433) Eros:

import ephessos as ep
from astropy.time import Time

# Define time range
mjd_start = Time('2024-01-01T00:00:00', format='isot', scale='utc').mjd
mjd_end = Time('2024-01-15T00:00:00', format='isot', scale='utc').mjd

# Query Horizons for Eros (designation: 00433)
eros_data = ep.core.sso_query_to_horizons(
    designation="00433",
    mjd_start=mjd_start,
    mjd_end=mjd_end,
    step_size="1d",
    verbose=True
)

print(eros_data.head())

This will return a pandas DataFrame containing ephemeris data including:

  • Right Ascension (RA) and Declination (Dec) in degrees
  • Distance from observer
  • Magnitude and other observational quantities
  • Modified Julian Date (MJD)

Advanced Usage

Reading MPC Data Files

EPHESSOS can parse MPC-formatted NEA files:

# Read MPC NEA data
nea_table = ep.core.read_mpc_nea_file("path/to/nea.txt")

# Query ephemeris for the first object
first_object = nea_table.iloc[0]
data = ep.core.sso_query_to_horizons(
    designation=first_object["Designation"],
    epoch=first_object["Epoch"],
    eccentricity=first_object["Eccentricity"],
    node=first_object["Node"],
    arg_perihelion=first_object["Arg_Perihelion"],
    inclination=first_object["Inclination"],
    mean_anomaly=first_object["Mean_Anomaly"],
    semimajor_axis=first_object["Semimajor_Axis"],
    mean_motion=first_object["Mean_Motion"],
    mjd_start=mjd_start,
    mjd_end=mjd_end,
    step_size="1d"
)

Documentation

Full documentation is available at: https://ephessos.readthedocs.io/

Contributing

Contributions are welcome! Please see our contributing guidelines for details.

License

EPHESSOS is licensed under the BSD 3-Clause License. See LICENSE for details.

Citation

If you use EPHESSOS in your research, please cite:

Borlaff, A. S., & Dotson, J. (2026). EPHESSOS: Ephemeris for Solar System Objects with JPL/Horizons.

Contact

Project details


Download files

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

Source Distribution

ephessos-1.0.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ephessos-1.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file ephessos-1.0.0.tar.gz.

File metadata

  • Download URL: ephessos-1.0.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for ephessos-1.0.0.tar.gz
Algorithm Hash digest
SHA256 95784be2ca0c6da3772ea03b7c96450c0338f6ac985e507bd66a6091d9106bd4
MD5 12fed4c1e40c81085fe459ab2633ffac
BLAKE2b-256 6e35117175d9809ace684caf1f9726217b5993855aae73adef719f807975408a

See more details on using hashes here.

File details

Details for the file ephessos-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ephessos-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for ephessos-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fca1f88236c2dcac8b1f999dbe0a92de655d38fde5712ce8228a45ccbb4e1872
MD5 8ed5f3f2efc11588a2bb8b40554c0a37
BLAKE2b-256 5e1b04324fdccf0a18003206380765b1216fbd9fb957339219a234ad5fc0ff4d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page