Mars Frames¶
Transformations between Mars-Centered Inertial (MCI), Mars-Centered Mars-Fixed (MCMF), and Earth-Centered Inertial (ECI).
Note
For conceptual explanations and examples, including MCI's body-center origin and the mar099s kernel it uses, see Mars Reference Frames in the Learn section.
MCI ↔ MCMF¶
rotation_mci_to_mcmf builtin ¶
Computes the rotation matrix from Mars-Centered Inertial (MCI) to Mars-Centered Mars-Fixed (MCMF), using the IAU/WGCCRE pole and prime-meridian model for Mars.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epc | Epoch | Epoch instant for computation of the transformation matrix | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 3x3 rotation matrix transforming MCI -> MCMF |
rotation_mcmf_to_mci builtin ¶
Computes the rotation matrix from Mars-Centered Mars-Fixed (MCMF) to Mars-Centered Inertial (MCI). Inverse of rotation_mci_to_mcmf.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epc | Epoch | Epoch instant for computation of the transformation matrix | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: 3x3 rotation matrix transforming MCMF -> MCI |
position_mci_to_mcmf builtin ¶
Transforms a Cartesian Mars-inertial (MCI) position into the equivalent Cartesian Mars-fixed (MCMF) position.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epc | Epoch | Epoch instant for computation of the transformation | required |
x_mci | ndarray or list | Cartesian MCI position (m), shape | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Cartesian MCMF position (m), shape |
position_mcmf_to_mci builtin ¶
Transforms a Cartesian Mars-fixed (MCMF) position into the equivalent Cartesian Mars-inertial (MCI) position.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epc | Epoch | Epoch instant for computation of the transformation | required |
x_mcmf | ndarray or list | Cartesian MCMF position (m), shape | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Cartesian MCI position (m), shape |
state_mci_to_mcmf builtin ¶
Transforms a Cartesian Mars-inertial (MCI) state (position and velocity) into the equivalent Cartesian Mars-fixed (MCMF) state.
The velocity transformation accounts for the transport term induced by Mars' rotation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epc | Epoch | Epoch instant for computation of the transformation | required |
x_mci | ndarray or list | Cartesian MCI state | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Cartesian MCMF state |
state_mcmf_to_mci builtin ¶
Transforms a Cartesian Mars-fixed (MCMF) state (position and velocity) into the equivalent Cartesian Mars-inertial (MCI) state. Inverse of state_mci_to_mcmf.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epc | Epoch | Epoch instant for computation of the transformation | required |
x_mcmf | ndarray or list | Cartesian MCMF state | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Cartesian MCI state |
ECI ↔ MCI¶
position_eci_to_mci builtin ¶
Transforms a Cartesian Earth-inertial (ECI) position into the equivalent Cartesian Mars-inertial (MCI) position.
The MCI origin is the Mars body center (NAIF ID 499); the mar099s satellite ephemeris kernel is auto-loaded for the body-center leg. Auto-initializes the default de440s ephemeris if no SPK kernel is loaded.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epc | Epoch | Epoch instant for computation of the transformation | required |
x_eci | ndarray or list | Cartesian ECI position (m), shape | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Cartesian MCI position (m), shape |
position_mci_to_eci builtin ¶
Transforms a Cartesian Mars-inertial (MCI) position into the equivalent Cartesian Earth-inertial (ECI) position.
The MCI origin is the Mars body center (NAIF ID 499); the mar099s satellite ephemeris kernel is auto-loaded for the body-center leg. Auto-initializes the default de440s ephemeris if no SPK kernel is loaded.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epc | Epoch | Epoch instant for computation of the transformation | required |
x_mci | ndarray or list | Cartesian MCI position (m), shape | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Cartesian ECI position (m), shape |
state_eci_to_mci builtin ¶
Transforms a Cartesian Earth-inertial (ECI) state (position and velocity) into the equivalent Cartesian Mars-inertial (MCI) state.
The MCI origin is the Mars body center (NAIF ID 499); the mar099s satellite ephemeris kernel is auto-loaded for the body-center leg. Auto-initializes the default de440s ephemeris if no SPK kernel is loaded.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epc | Epoch | Epoch instant for computation of the transformation | required |
x_eci | ndarray or list | Cartesian ECI state | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Cartesian MCI state |
state_mci_to_eci builtin ¶
Transforms a Cartesian Mars-inertial (MCI) state (position and velocity) into the equivalent Cartesian Earth-inertial (ECI) state.
The MCI origin is the Mars body center (NAIF ID 499); the mar099s satellite ephemeris kernel is auto-loaded for the body-center leg. Auto-initializes the default de440s ephemeris if no SPK kernel is loaded.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epc | Epoch | Epoch instant for computation of the transformation | required |
x_mci | ndarray or list | Cartesian MCI state | required |
Returns:
| Type | Description |
|---|---|
ndarray | numpy.ndarray: Cartesian ECI state |
See Also¶
- Mars Reference Frames (Learn) - Conceptual explanation, examples, and MCI's body-center origin
- Lunar Frames - Moon-centered frame transformations
- Reference Frame Router - Generic conversion between any two frames
- Reference Frames Module - Complete API reference for frames module