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) – Epochs table, converted to TDB internally. Build one withEpochs.from_mjd(values, scale="tdb")(orscale="utc"); a bare array is refused, as it carries no time scale.frame (
Frame|str) – Reference frame (default: EclipticJ2000).
- Return type:
CartesianCoordinates- Returns:
CartesianCoordinates – Cartesian states (AU, AU/day) at each epoch.
- Raises:
TypeError –
epochsis not anEpochstable.