Skip to main content

orbix

A JAX library of functions for exoplanet simulations: differentiable Keplerian orbit propagation and Kepler-equation solvers, plus solar-system geometry (observatory position, keepout) for the Habitable Worlds Observatory direct imaging simulation suite. Scene composition (planet catalogs, EXOSIMS integration, zodiacal photometry) lives in other libraries; see below.

Install

pip install orbix

Quickstart

import jax.numpy as jnp
from orbix.orbit import KeplerianOrbit
from orbix.kepler.shortcuts.grid import get_grid_solver

orbit = KeplerianOrbit(
    a_AU=1.0,
    e=0.0167,
    W_rad=0.0,
    i_rad=0.0,
    w_rad=0.0,
    M0_rad=0.0,
    t0_d=0.0,
)
trig_solver = get_grid_solver(level="scalar", E=False, trig=True)
t_jd = jnp.linspace(2451545.0, 2451545.0 + 365.25, 5)
r_AU, phase_angle_rad, dist_AU = orbit.propagate(trig_solver, t_jd, Ms_kg=1.989e30)
print(r_AU.shape)  # (1, 3, 5): (K orbits, xyz, T times)

get_grid_solver builds a cached grid-interpolation Kepler solver with the contract trig_solver(M, e) -> (sinE, cosE); KeplerianOrbit.propagate uses it to convert orbital elements and times into position vectors, phase angle, and star-planet distance.

Raw orbit rows are (east, north, away) in AU, a right-handed frame. Velocities share this order in AU/day; dz/dt is the body's radial velocity relative to the star, positive receding. state_vector_to_keplerian takes position and velocity in that frame. position_arcsec returns (raoff, decoff) = (Delta alpha cos delta, Delta delta), east and north offsets in arcsec. Omega is the ascending (receding) node's PA measured north through east; i < 90 deg gives increasing PA, and omega is measured from that node in the direction of motion. Phase angle is beta, with cos(beta) = z/r; alpha denotes angular separation. See the documentation's sky-coordinate convention for details.

For an alternative without interpolation tables, use from orbix.kepler import markley_solve_trig and pass markley_solve_trig as the orbit's trig_solver. This Markley-based solver supports scalar inputs, broadcasting, and both forward and reverse derivatives. Enable jax.config.update("jax_enable_x64", True) for double-precision accuracy. The RPP/orvara solver remains available in orbix.kepler.core.

Scope

orbix provides Keplerian orbit geometry and Kepler-equation solvers; scene composition lives in skyscapes.

Citation

If you use orbix, please cite it as described in CITATION.cff.

Metadata

Release files for orbix 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orbix 3.0.0
File Size Uploaded Provenance Actions
orbix-3.0.0.tar.gz 177.8 kB With provenance Details for orbix-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for orbix 3.0.0
File Interpreter ABI Platform Actions
orbix-3.0.0-py3-none-any.whl Python 3 none any Details for orbix-3.0.0-py3-none-any.whl

Total release size: 287.5 kB

Release files / orbix-3.0.0.tar.gz

Download URL orbix-3.0.0.tar.gz
Size 177.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ae45acc2fc89bcf2736b34b1f8b4554e8ecdfaefd5f06c84635f1f3b8acc5b85
BLAKE2b-256 checksum
How to use checksums
e596e89de3c70574bf7c73fb3e8457c8fec5ce8b5764efd1ec3c0a6e6a38aa85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / orbix-3.0.0-py3-none-any.whl

Download URL orbix-3.0.0-py3-none-any.whl
Size 109.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8768911f94a407393b6a31b370d4b35e228c23cf5eb69124343771e33c3fa03
BLAKE2b-256 checksum
How to use checksums
0ee29a599bbf362bfd418ceaf383acc4c47918b801dffe0c73b95f1a023d8b97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for orbix 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for orbix-3.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page