Cartesian Coordinates¶
Functions for working with Cartesian state vectors and conversions.
State Conversions¶
state_koe_to_eci builtin ¶
state_koe_to_eci(x_oe: Union[ndarray, Sequence], angle_format: AngleFormat) -> ndarray
Convert osculating orbital elements to Cartesian state.
Transforms a state vector from osculating Keplerian orbital elements to Cartesian position and velocity coordinates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_oe | ndarray or list | Osculating orbital elements | required |
angle_format | AngleFormat | Angle format for angular elements ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Cartesian state |
state_eci_to_koe builtin ¶
state_eci_to_koe(x_cart: Union[ndarray, Sequence], angle_format: AngleFormat) -> ndarray
Convert Cartesian state to osculating orbital elements.
Transforms a state vector from Cartesian position and velocity coordinates to osculating Keplerian orbital elements.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_cart | ndarray or list | Cartesian state | required |
angle_format | AngleFormat | Angle format for output angular elements ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Osculating orbital elements |
Example
Arbitrary Central Body¶
state_koe_to_eci_for_body builtin ¶
state_koe_to_eci_for_body(x_oe: Union[ndarray, Sequence], gm: float, angle_format: AngleFormat) -> ndarray
Convert osculating orbital elements to a Cartesian state about a central body with an arbitrary gravitational parameter. Inverse of state_eci_to_koe_for_body.
Generalizes state_koe_to_eci to central bodies other than Earth (e.g. the Moon or Mars). state_koe_to_eci is equivalent to calling this with gm = GM_EARTH.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_oe | ndarray or list | Osculating orbital elements | required |
gm | float | Gravitational parameter of the central body. Units: (m^3/s^2) | required |
angle_format | AngleFormat | Angle format for input angular elements ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Cartesian state |
state_eci_to_koe_for_body builtin ¶
state_eci_to_koe_for_body(x_cart: Union[ndarray, Sequence], gm: float, angle_format: AngleFormat) -> ndarray
Convert Cartesian state to osculating orbital elements about a central body with an arbitrary gravitational parameter.
Generalizes state_eci_to_koe to central bodies other than Earth (e.g. the Moon or Mars). state_eci_to_koe is equivalent to calling this with gm = GM_EARTH.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_cart | ndarray or list | Cartesian state | required |
gm | float | Gravitational parameter of the central body. Units: (m^3/s^2) | required |
angle_format | AngleFormat | Angle format for output angular elements ( | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Osculating orbital elements |
See Also¶
- Propagation Around Other Central Bodies -
CentralBodyand non-Earth propagation