@spiceErrorCheck<EOL>def spkez(targ, et, ref, abcorr, obs):
targ = ctypes.c_int(targ)<EOL>et = ctypes.c_double(et)<EOL>ref = stypes.stringToCharP(ref)<EOL>abcorr = stypes.stringToCharP(abcorr)<EOL>obs = ctypes.c_int(obs)<EOL>starg = stypes.emptyDoubleVector(<NUM_LIT:6>)<EOL>lt = ctypes.c_double()<EOL>libspice.spkez_c(targ, et, ref, abcorr, obs, starg, ctypes.byref(lt))<EOL>return stypes.cVectorToPython(starg), lt.value<EOL>
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.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkez_c.html

:param targ: Target body.
:type targ: int
:param et: Observer epoch.
:type et: float
:param ref: Reference frame of output state vector.
:type ref: str
:param abcorr: Aberration correction flag.
:type abcorr: str
:param obs: Observing body.
:type obs: int
:return:
        State of target,
        One way light time between observer and target.
:rtype: tuple