convert

convert

sorts.frames.convert(t, states, in_frame, out_frame, logger=None, profiler=None, **kwargs)[source]

Perform predefined coordinate transformations using Astropy. Always returns a copy of the array.

Parameters
  • t (numpy.ndarray/float) – Absolute time corresponding to the input states.

  • states (numpy.ndarray) – Size (6,n) matrix of states in SI units where rows 1-3 are position and 4-6 are velocity.

  • in_frame (str) – Name of the frame the input states are currently in.

  • out_frame (str) – Name of the state to transform to.

  • profiler (Profiler) – Profiler instance for checking function performance.

  • logger (logging.Logger) – Logger instance for logging the execution of the function.

Return type

numpy.ndarray

Returns

Size (6,n) matrix of states in SI units where rows 1-3 are position and 4-6 are velocity.