spkezr
is similar to Spkpos
, but computes the entire state vector.
spkezr
Abstract
Return the state (position and velocity) of a target body relative to an observing body, optionally corrected for light time (planetary aberration) and stellar aberration.

The state of Moon with respect to the Earth/Moon Barycenter
Results at 2022 JAN 19 01:49:38.592 UTC
:
[(-256387.71, 259021.9, 148136.81); (-0.7185901, -0.62086363, -0.24174899)]
Units are Kilometers; Kilometers/Second.
State Vectors

SStateVector (State Vector) and constituents
A State Vector includes both a position (r
) and velocity term (v
). The full state vector is required for many operations, such as computing orbital elements.