@spiceErrorCheck<EOL>def spkgeo(targ, et, ref, obs):
targ = ctypes.c_int(targ)<EOL>et = ctypes.c_double(et)<EOL>ref = stypes.stringToCharP(ref)<EOL>obs = ctypes.c_int(obs)<EOL>state = stypes.emptyDoubleVector(<NUM_LIT:6>)<EOL>lt = ctypes.c_double()<EOL>libspice.spkgeo_c(targ, et, ref, obs, state, ctypes.byref(lt))<EOL>return stypes.cVectorToPython(state), lt.value<EOL>
Compute the geometric state (position and velocity) of a target
body relative to an observing body.

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

:param targ: Target body.
:type targ: int
:param et: Target epoch.
:type et: float
:param ref: Target reference frame.
:type ref: str
:param obs: Observing body.
:type obs: int
:return: State of target, Light time.
:rtype: tuple