mubody.coordinates.transformations.translate#

mubody.coordinates.transformations.translate(t, ri, vi, frame_source, frame_target, eph)#

Transform the position and velocity between two parallel frames with different origins.

Parameters:
  • t (float, 1-D array (n)) – Time

  • ri (ndarray (3,)/(3, n)) – Position in source frame

  • vi (ndarray (3,)/(3, n)) – Velocity in target frame

  • frame_source (Frame class instance) – Source frame

  • frame_target (Frame class instance) – Target frame

  • eph (Ephemeris class) – Ephemeris class

Returns:

  • rf (ndarray (3,)/(3, n)) – Position in target frame

  • vf (ndarray (3,)/(3, n)) – Velocity in target frame