Skip to main content

orbix

PyPI Documentation Status Tests License Python 3.12+ DOI

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)
time_jd = jnp.linspace(2451545.0, 2451545.0 + 365.25, 5)
r_AU, phase_angle_rad, dist_AU = orbit.propagate(trig_solver, time_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 4.2.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 4.2.0
File Size Uploaded Provenance Actions
orbix-4.2.0.tar.gz 213.3 kB With provenance Details for orbix-4.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 341.8 kB

Release files / orbix-4.2.0.tar.gz

Download URL orbix-4.2.0.tar.gz
Size 213.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b9e0399557bd2e798bf069e630075fee849c1a66d8edb4c490f991eaabb6d31b
BLAKE2b-256 checksum
How to use checksums
1d369ee809e32f4bb810c8560f2afda49f9812fe8cfb3ed3dfc5df03115d7de5
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 16, 2026.

Transparency log

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

Download URL orbix-4.2.0-py3-none-any.whl
Size 128.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d143addea63703a0bb0f9028f32525bd4145b434ea716600daa2103d461586cf
BLAKE2b-256 checksum
How to use checksums
eaa947e64d586fcd9e8192770dc9af54a3bdb3bdb6d40fc244a7b612a78195fd
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 16, 2026.

Transparency log

Security for orbix 4.2.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-4.2.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 16, 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