Reference/API¶
twobody Package¶
A package for computing orbits and astronomical observables for binary stars, exoplanets, and other gravitational two-body systems.
Functions¶
|
Compute the semi-major axis given the orbital period and total mass. |
|
Compute the total mass given the semi-major axis and period. |
|
Compute the orbital period given the semi-major axis and total mass. |
|
|
|
|
|
Compute the minimum companion mass given the primary mass and the binary mass function. |
|
|
|
Run the tests for the package. |
|
Classes¶
|
The location of the barycenter at the specified epoch. |
|
Keplerian orbital elements for a single orbit. |
|
Represents a bound Kepler orbit. |
|
Subclasses must define the class attribute |
|
Specify a polynomial trend in radial velocities by specifying the polynomial coefficients and optionally a reference time. |
|
|
|
A coordinate frame aligned with the reference plane coordinates of a Kepler orbit, centered on the barycenter or reference point of the orbit. |
|
Keplerian orbital elements for a two-body system. |
|
Represents a system of units. |