empyrean.get_states

get_states(target, center, epochs, frame=Frame.ECLIPTICJ2000)[source]

Query Cartesian states of a body from the SPK ephemeris.

Parameters:
  • target (Origin | str) – Target body. Pass an Origin (e.g. Origin.EARTH) or the canonical name (e.g. "Earth").

  • center (Origin | str) – Center body. Same shape as target.

  • epochs (Epochs | ndarray | Sequence[float]) – Epochs as an Epochs table or MJD TDB array.

  • frame (Frame | str) – Reference frame (default: EclipticJ2000).

Return type:

CartesianCoordinates

Returns:

CartesianCoordinates – Cartesian states (AU, AU/day) at each epoch.