An orbital fitting package
Project description
periapsis
Package for efficiently modeling and fitting orbits with various parameterizations and priors with support for data from a variety of sources.
Installing
pip
pip install periapsis
Usage Example
from periapsis.data import AstrometryData, RadialVelocityData, JointData
from periapsis.fitting import MCMCFitter
from periapsis.prior import UniformPrior
import numpy as np
fit_data = JointData([
AstrometryData(t_astro, x, y),
RadialVelocityData(t_rv, rv),
])
fitter = MCMCFitter(
nwalkers=32,
niter=10000,
P=UniformPrior(10, 20000), # orbital period, days
t0=UniformPrior(1990, 2050), # time of periapsis passage
a=UniformPrior(0.01, 1000), # semi-major axis, AU
e=UniformPrior(0, 1), # eccentricity
cosi=UniformPrior(-1, 1), # cos(inclination)
omega=UniformPrior(0, 2*np.pi), # argument of periapsis
bigomega=UniformPrior(0, 2*np.pi), # longitude of ascending node
)
result = fitter.fit(fit_data)
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
periapsis-0.1.0.tar.gz
(25.4 kB
view details)
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
periapsis-0.1.0-py3-none-any.whl
(34.5 kB
view details)
File details
Details for the file periapsis-0.1.0.tar.gz.
File metadata
- Download URL: periapsis-0.1.0.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6572df42e29bf0ef808560762096d16466d1000356b6cec3bd15450acbd1607
|
|
| MD5 |
740178e9eccab503e197c5502d67b015
|
|
| BLAKE2b-256 |
890126f2252276d829c695853e8ae7b65b645f30e1f80afe1398a6b345611c26
|
File details
Details for the file periapsis-0.1.0-py3-none-any.whl.
File metadata
- Download URL: periapsis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 34.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b951fb76566f74f9fa7e4ee6f7a6e39edb7c996da4bb7264f8dd27d95fac070
|
|
| MD5 |
93f2821b4474bebe95c67cdf84e4e002
|
|
| BLAKE2b-256 |
309ec37aab8c46666b23f95a0160c54a1c9c0395fcaae7389a201210c18e12e8
|