Differentiable small-body orbit computation and orbit determination with JAX.
Project description
DiffOrb
DiffOrb is a differentiable, batchable Python framework for small-body orbit propagation, orbit determination, and Horizons-like ephemeris products. It is built on JAX and keeps the main numerical objects compatible with automatic differentiation, JIT compilation, and vectorized execution.
Documentation: Read the DiffOrb documentation
Features
- Native JAX with an object-oriented interface.
- Automatic differentiation support and usage.
- Batch computation and automatic broadcasting.
- Dense orbit propagation.
- Composable orbit-determination and ephemeris-generation workflow.
- Horizons-like ephemeris products.
- Reusable astrometric and astrodynamical infrastructure.
Installation
DiffOrb requires Python 3.11 or later.
python -m pip install difforb
Download the EOP parameter file, observatory list, and optical debiasing model:
python -m difforb.data install all
Verify the downloaded data:
python -m difforb.data status
Quick Start
Propagate a small body and query its state from the dense trajectory:
from difforb.body import SmallBody
from difforb.core import BCRS, State, Time
from difforb.dynamics import DynamicSystem
from difforb.integrator import NumericalIntegrator
from difforb.spk import set_default_ephemeris
set_default_ephemeris("/path/to/de441.bsp")
t0 = Time.from_tdb_date(2025, 1, 2)
t1 = Time.from_tdb_date(2025, 2, 15)
t_query = Time.from_tdb_date(2025, 1, 20)
state0 = State(
tdb=t0.tdb(),
pos=[1.685775738339898, -1.336388854313325, -0.2144927004440800],
vel=[0.008995712853117517, 0.006985684417802803, 0.004020851173846060],
frame=BCRS,
)
force_model = DynamicSystem.from_standard_system().build_force_model()
integrator = NumericalIntegrator(method="IAS15", tol=1e-12)
body = SmallBody.create(state0).propagate(t0.tdb(), t1.tdb(), force_model, integrator)
state = body.state(t_query.tdb(), frame=BCRS)
print(state.frame.name)
print(state.pos)
print(state.vel)
License
DiffOrb source code, documentation, and DiffOrb-maintained bundled data files are licensed under the Apache License, Version 2.0. Data files downloaded from external sources are still governed by the original providers' terms.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file difforb-0.1.0.tar.gz.
File metadata
- Download URL: difforb-0.1.0.tar.gz
- Upload date:
- Size: 263.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3e7cd10e54ebacd51dddc7a972d91575465767c017b5f2ee097c9d5a543a181
|
|
| MD5 |
ab1dad4b250357d0be1c38e12959cb78
|
|
| BLAKE2b-256 |
12faf0c123ecff3526a29d8682546fcd2c37bf89c9594de245aa6fae46573825
|
Provenance
The following attestation bundles were made for difforb-0.1.0.tar.gz:
Publisher:
publish.yml on jianhua-naoc/difforb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
difforb-0.1.0.tar.gz -
Subject digest:
f3e7cd10e54ebacd51dddc7a972d91575465767c017b5f2ee097c9d5a543a181 - Sigstore transparency entry: 1997101461
- Sigstore integration time:
-
Permalink:
jianhua-naoc/difforb@9c53f631824d71067746126b588a8fb3231d32a8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/jianhua-naoc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9c53f631824d71067746126b588a8fb3231d32a8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file difforb-0.1.0-py3-none-any.whl.
File metadata
- Download URL: difforb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 303.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65b13314c1664be1fe253114ca9e72205f7b547d911ea3a88cbe46dcc3e51d26
|
|
| MD5 |
c91d2683686e341df9e9fd9d8570ab55
|
|
| BLAKE2b-256 |
087177436c2d91e821130410683d80ed85703eca220815e18ea89afda7bbe55a
|
Provenance
The following attestation bundles were made for difforb-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on jianhua-naoc/difforb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
difforb-0.1.0-py3-none-any.whl -
Subject digest:
65b13314c1664be1fe253114ca9e72205f7b547d911ea3a88cbe46dcc3e51d26 - Sigstore transparency entry: 1997101563
- Sigstore integration time:
-
Permalink:
jianhua-naoc/difforb@9c53f631824d71067746126b588a8fb3231d32a8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/jianhua-naoc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9c53f631824d71067746126b588a8fb3231d32a8 -
Trigger Event:
push
-
Statement type: