SpiceOrientation

giant.utilities.spice_interface:

class giant.utilities.spice_interface.SpiceOrientation(from_frame, to_frame)[source]

This class creates a callable that returns the rotation from one frame to another as a Rotation given a python datetime.

This class works by storing the “static” inputs to the call to the spice function pxform (specifically the from frame and to frame). The interface to spice is provided through spiceypy.

For more details, refer to the NAIF spice documentation for pxform at https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/spicelib/pxform.html.

This class should be preferred over the create_callable_orientation() because it works much better with pickle.

Parameters:
  • from_frame (str) – The name/integer spice id for the starting frame as a string.

  • to_frame (str) – The name/integer spice id for the ending frame as a string.

from_frame: str

The frame that we are starting in as a string.

This usually is the name of the frame or its integer spice id as a string. This is passed to the FROM input for pxform.

to_frame: str

The frame that we are rotating to as a string.

This usually is the name of the frame or its integer spice id as a string. This is passed to the TO input for pxform.

Summary of Methods