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 anOrigin(e.g.Origin.EARTH) or the canonical name (e.g."Earth").center (
Origin|str) – Center body. Same shape astarget.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.