libera_utils.geolocation.frame_transform#
- libera_utils.geolocation.frame_transform(from_frame: SpiceFrame, to_frame: SpiceFrame, et: float, position: ndarray, normalize: bool = False) ndarray #
Transform a position <x, y, z> vector between reference frames, optionally normalizing the result.
- Parameters:
from_frame (spice_utils.SpiceFrame) – Reference frame of position
to_frame (spice_utils.SpiceFrame) – Reference frame of output
et (numpy.float64 or numpy.ndarray) – Ephemeris time(s) corresponding to position(s). For time-independent transformations, this can by any valid ephemeris time.
position (numpy.ndarray) – <x, y, z> vector or array of vectors in reference frame from_frame
normalize (bool, Optional) – Optionally normalize the output vector
- Returns:
3d position vector(s) in reference frame to_frame
- Return type: