@spiceErrorCheck<EOL>def spkapo(targ, et, ref, sobs, abcorr):
targ = ctypes.c_int(targ)<EOL>et = ctypes.c_double(et)<EOL>ref = stypes.stringToCharP(ref)<EOL>abcorr = stypes.stringToCharP(abcorr)<EOL>sobs = stypes.toDoubleVector(sobs)<EOL>ptarg = stypes.emptyDoubleVector(<NUM_LIT:3>)<EOL>lt = ctypes.c_double()<EOL>libspice.spkapo_c(targ, et, ref, sobs, abcorr, ptarg, ctypes.byref(lt))<EOL>return stypes.cVectorToPython(ptarg), lt.value<EOL>
Return the position of a target body relative to an observer,
optionally corrected for light time and stellar aberration.

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

:param targ: Target body.
:type targ: int
:param et: Observer epoch.
:type et: float
:param ref: Inertial reference frame of observer's state.
:type ref: str
:param sobs: State of observer wrt. solar system barycenter.
:type sobs: 6-Element Array of floats
:param abcorr: Aberration correction flag.
:type abcorr: str
:return:
        Position of target,
        One way light time between observer and target.
:rtype: tuple