VNC Frame¶
rotation_vnc_to_eci builtin ¶
Computes the rotation matrix transforming a vector in the Velocity, Normal, Co-normal (VNC) frame to the Earth-Centered Inertial (ECI) frame.
The ECI frame can be any inertial frame centered on the orbited body, such as GCRF or EME2000.
The VNC frame follows the SANA definition: - X (V): Unit vector along the inertial velocity. - Y (N): Unit vector along the orbital angular momentum r x v (normal to the orbit). - Z (C): X x Y, the co-normal, completing the right-handed set; in the orbit plane, normal to the velocity, pointing outward (radial for a circular orbit).
The matrix is assembled from the NTW axes as [Y_NTW, Z_NTW, X_NTW], which equals the definition exactly. TNW and VNC use the same three directions as NTW: TNW = [Y_NTW, -X_NTW, Z_NTW], VNC = [Y_NTW, Z_NTW, X_NTW]; STK calls VNC the VNB frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_eci | ndarray or list | 6D state vector in the ECI frame [x, y, z, vx, vy, vz] (m, m/s), shape (6,), or a batch of vectors with the 6 components along | required |
axis | int | The axis along which the 6 components of a single vector lie; the remaining axes enumerate the batch. For a batch of shape (n, 6) the components lie along the last axis, so the default | -1 |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 3x3 rotation matrix transforming from VNC to ECI frame, shape (3, 3), or the batch dimensions followed by (3, 3) for batched input. |
Example
rotation_eci_to_vnc builtin ¶
Computes the rotation matrix transforming a vector in the Earth-Centered Inertial (ECI) frame to the Velocity, Normal, Co-normal (VNC) frame.
This is the transpose (inverse) of the VNC-to-ECI rotation matrix.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_eci | ndarray or list | 6D state vector in the ECI frame [x, y, z, vx, vy, vz] (m, m/s), shape (6,), or a batch of vectors with the 6 components along | required |
axis | int | The axis along which the 6 components of a single vector lie; the remaining axes enumerate the batch. For a batch of shape (n, 6) the components lie along the last axis, so the default | -1 |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 3x3 rotation matrix transforming from ECI to VNC frame, shape (3, 3), or the batch dimensions followed by (3, 3) for batched input. |
omega_vnc builtin ¶
Computes the angular velocity of the Velocity, Normal, Co-normal (VNC) frame with respect to the Earth-Centered Inertial (ECI) frame, expressed in VNC axes. Equal to omega_vnc_for_body with GM_EARTH.
The VNC axes are built from the velocity direction and the orbit normal, and the orbit normal is the Y axis, so the frame turns about Y at omega_v = mu * |h| / (r^3 * v^2), the two-body rate at which the unit velocity rotates. The rate is exact under two-body motion and is the rate of the osculating frame otherwise. On a circular orbit it equals the mean motion.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_eci | ndarray or list | 6D state vector in the ECI frame [x, y, z, vx, vy, vz] (m, m/s), shape (6,), or a batch of vectors with the 6 components along | required |
axis | int | The axis along which the 6 components of a single vector lie; the remaining axes enumerate the batch. For a batch of shape (n, 6) the components lie along the last axis, so the default | -1 |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Angular velocity of the VNC frame relative to ECI, expressed in VNC axes (rad/s), shape (3,), or the batch dimensions with 3 components along |
omega_vnc_for_body builtin ¶
Computes the angular velocity of the Velocity, Normal, Co-normal (VNC) frame with respect to an inertial frame centered on a body with gravitational parameter gm, expressed in VNC axes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_inertial | ndarray or list | 6D state vector in the inertial frame [x, y, z, vx, vy, vz] (m, m/s), shape (6,), or a batch of vectors with the 6 components along | required |
gm | float | Gravitational parameter of the central body (m^3/s^2) | required |
axis | int | The axis along which the 6 components of a single vector lie; the remaining axes enumerate the batch. For a batch of shape (n, 6) the components lie along the last axis, so the default | -1 |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Angular velocity of the VNC frame relative to the inertial frame, expressed in VNC axes (rad/s), shape (3,), or the batch dimensions with 3 components along |
state_eci_to_vnc builtin ¶
state_eci_to_vnc(x_chief: Union[ndarray, Sequence], x_deputy: Union[ndarray, Sequence], axis: int = -1) -> ndarray
Transforms the absolute states of a chief and deputy satellite from the Earth-Centered Inertial (ECI) frame to the relative state of the deputy with respect to the chief in the rotating Velocity, Normal, Co-normal (VNC) frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_chief | ndarray or list | 6D state vector of the chief satellite in the ECI frame [x, y, z, vx, vy, vz] (m, m/s), shape (6,), or a batch of vectors with the 6 components along | required |
x_deputy | ndarray or list | 6D state vector of the deputy satellite in the ECI frame [x, y, z, vx, vy, vz] (m, m/s), shape (6,), or a batch of vectors with the 6 components along | required |
axis | int | The axis along which the 6 components of a single vector lie; the remaining axes enumerate the batch. For a batch of shape (n, 6) the components lie along the last axis, so the default | -1 |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 6D relative state of the deputy with respect to the chief in the VNC frame [rho_V, rho_N, rho_C, rho_dot_V, rho_dot_N, rho_dot_C] (m, m/s), shape (6,), or the layout of the batched argument for batched input. |
Example
state_inertial_to_vnc_for_body builtin ¶
state_inertial_to_vnc_for_body(x_chief: Union[ndarray, Sequence], x_deputy: Union[ndarray, Sequence], gm: float, axis: int = -1) -> ndarray
Transforms the absolute states of a chief and deputy satellite from an inertial frame centered on a body with gravitational parameter gm to the relative state of the deputy with respect to the chief in the rotating Velocity, Normal, Co-normal (VNC) frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_chief | ndarray or list | 6D state vector of the chief satellite in the inertial frame [x, y, z, vx, vy, vz] (m, m/s), shape (6,), or a batch of vectors with the 6 components along | required |
x_deputy | ndarray or list | 6D state vector of the deputy satellite in the inertial frame [x, y, z, vx, vy, vz] (m, m/s), shape (6,), or a batch of vectors with the 6 components along | required |
gm | float | Gravitational parameter of the central body (m^3/s^2) | required |
axis | int | The axis along which the 6 components of a single vector lie; the remaining axes enumerate the batch. For a batch of shape (n, 6) the components lie along the last axis, so the default | -1 |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 6D relative state of the deputy with respect to the chief in the VNC frame [rho_V, rho_N, rho_C, rho_dot_V, rho_dot_N, rho_dot_C] (m, m/s), shape (6,), or the layout of the batched argument for batched input. |
Example
state_vnc_to_eci builtin ¶
state_vnc_to_eci(x_chief: Union[ndarray, Sequence], x_rel_vnc: Union[ndarray, Sequence], axis: int = -1) -> ndarray
Transforms the relative state of a deputy satellite with respect to a chief satellite from the rotating Velocity, Normal, Co-normal (VNC) frame to the absolute state of the deputy in the Earth-Centered Inertial (ECI) frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_chief | ndarray or list | 6D state vector of the chief satellite in the ECI frame [x, y, z, vx, vy, vz] (m, m/s), shape (6,), or a batch of vectors with the 6 components along | required |
x_rel_vnc | ndarray or list | 6D relative state of the deputy with respect to the chief in the VNC frame [rho_V, rho_N, rho_C, rho_dot_V, rho_dot_N, rho_dot_C] (m, m/s), shape (6,), or a batch of vectors with the 6 components along | required |
axis | int | The axis along which the 6 components of a single vector lie; the remaining axes enumerate the batch. For a batch of shape (n, 6) the components lie along the last axis, so the default | -1 |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 6D state vector of the deputy satellite in the ECI frame [x, y, z, vx, vy, vz] (m, m/s), shape (6,), or the layout of the batched argument for batched input. |
Example
state_vnc_to_inertial_for_body builtin ¶
state_vnc_to_inertial_for_body(x_chief: Union[ndarray, Sequence], x_rel_vnc: Union[ndarray, Sequence], gm: float, axis: int = -1) -> ndarray
Transforms the relative state of a deputy satellite with respect to a chief satellite from the rotating Velocity, Normal, Co-normal (VNC) frame to the absolute state of the deputy in an inertial frame centered on a body with gravitational parameter gm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_chief | ndarray or list | 6D state vector of the chief satellite in the inertial frame [x, y, z, vx, vy, vz] (m, m/s), shape (6,), or a batch of vectors with the 6 components along | required |
x_rel_vnc | ndarray or list | 6D relative state of the deputy with respect to the chief in the VNC frame [rho_V, rho_N, rho_C, rho_dot_V, rho_dot_N, rho_dot_C] (m, m/s), shape (6,), or a batch of vectors with the 6 components along | required |
gm | float | Gravitational parameter of the central body (m^3/s^2) | required |
axis | int | The axis along which the 6 components of a single vector lie; the remaining axes enumerate the batch. For a batch of shape (n, 6) the components lie along the last axis, so the default | -1 |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 6D state vector of the deputy satellite in the inertial frame [x, y, z, vx, vy, vz] (m, m/s), shape (6,), or the layout of the batched argument for batched input. |