Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
subagonsouth committed Sep 26, 2024
1 parent dd25e73 commit 922ae1e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion imap_processing/spice/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class SpiceBody(IntEnum):
# A subset of IMAP Specific bodies as defined in imap_wkcp.tf
IMAP = -43
IMAP_SPACECRAFT = -43000
# IMAP Pointing Frame (Despun) as defined in iamp_science_0001.tf
# IMAP Pointing Frame (Despun) as defined in imap_science_0001.tf
IMAP_DPS = -43901
# Standard NAIF bodies
SOLAR_SYSTEM_BARYCENTER = spice.bodn2c("SOLAR_SYSTEM_BARYCENTER")
Expand Down Expand Up @@ -228,6 +228,13 @@ def frame_transform(
"""
Transform an <x, y, z> vector between reference frames (rotation only).
This function is a vectorized equivalent to performing the following SPICE
calls for each input time and position vector to perform the transform.
The matrix multiplication step is done using `numpy.matmul` rather than
`spice.mxv`.
>>> rotation_matrix = spice.pxform(from_frame, to_frame, et)
... result = spice.mxv(rotation_matrix, position)
Parameters
----------
et : float or npt.NDArray
Expand Down

0 comments on commit 922ae1e

Please sign in to comment.