KeplerElements¶
- class twobody.KeplerElements(*, P=None, a=None, K=None, e=0, omega=None, i=None, Omega=None, M0=None, t0=None, units=None)[source]¶
Bases:
BaseKeplerElements
Keplerian orbital elements for a single orbit.
The elements are assumed to be relative to an inertial frame, typically the barycenter of a two-body system.
- Parameters
- Pquantity_like [time]
Orbital period.
- aquantity_like [length] (optional)
Semi-major axis. Specify this OR the semi-amplitude
K
, but not both. If unspecified, computed orbits will be unscaled.- Kquantity_like [speed] (optional)
Velocity semi-amplitudes. Specify this OR the semi-major axis
a
, but not both. If unspecified, computed orbits will be unscaled.- enumeric (optional)
Orbital eccentricity. Default is circular,
e=0
.- omegaquantity_like,
Angle
[angle] Argument of pericenter.
- iquantity_like,
Angle
[angle] Inclination of the orbit.
- Omegaquantity_like,
Angle
[angle] Longitude of the ascending node.
- M0quantity_like,
Angle
[angle] (optional) Mean anomaly at epoch
t0
. Default is 0º if not specified.- t0quantity-like, numeric,
Time
(optional) Reference epoch. If a number is passed in, it is assumed to be a solar system barycentric modified julian date (BMJD). The default is J2000 if not specified.
- units
UnitSystem
, iterable (optional) The unit system to represent quantities in. The default unit system is accessible as
KeplerElements.default_units
.
Attributes Summary
Velocity semi-amplitude.
Binary mass function.
Attributes Documentation
- K¶
Velocity semi-amplitude.
- M0¶
- Omega¶
- P¶
- a¶
- e¶
- i¶
- m_f¶
Binary mass function.
- names = ['P', 'a', 'e', 'omega', 'i', 'Omega', 'M0']¶
- omega¶