@spiceErrorCheck<EOL>def spkpds(body, center, framestr, typenum, first, last):
body = ctypes.c_int(body)<EOL>center = ctypes.c_int(center)<EOL>framestr = stypes.stringToCharP(framestr)<EOL>typenum = ctypes.c_int(typenum)<EOL>first = ctypes.c_double(first)<EOL>last = ctypes.c_double(last)<EOL>descr = stypes.emptyDoubleVector(<NUM_LIT:5>)<EOL>libspice.spkpds_c(body, center, framestr, typenum, first, last, descr)<EOL>return stypes.cVectorToPython(descr)<EOL>
Perform routine error checks and if all check pass, pack the
descriptor for an SPK segment

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

:param body: The NAIF ID code for the body of the segment.
:type body: int
:param center: The center of motion for body.
:type center: int
:param framestr: The frame for this segment.
:type framestr: str
:param typenum: The type of SPK segment to create.
:type typenum: int
:param first: The first epoch for which the segment is valid.
:type first: float
:param last: The last  epoch for which the segment is valid.
:type last: float
:return: An SPK segment descriptor.
:rtype: 5-Element Array of floats