@spiceErrorCheck<EOL>def spkw09(handle, body, center, inframe, first, last, segid, degree, n, states,<EOL>epochs):
handle = ctypes.c_int(handle)<EOL>body = ctypes.c_int(body)<EOL>center = ctypes.c_int(center)<EOL>inframe = stypes.stringToCharP(inframe)<EOL>first = ctypes.c_double(first)<EOL>last = ctypes.c_double(last)<EOL>segid = stypes.stringToCharP(segid)<EOL>degree = ctypes.c_int(degree)<EOL>n = ctypes.c_int(n)<EOL>states = stypes.toDoubleMatrix(states)  <EOL>epochs = stypes.toDoubleVector(epochs)<EOL>libspice.spkw09_c(handle, body, center, inframe, first, last, segid, degree,<EOL>n, states, epochs)<EOL>
Write a type 9 segment to an SPK file.

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

:param handle: Handle of an SPK file open for writing.
:type handle: int
:param body: NAIF code for an ephemeris object.
:type body: int
:param center: NAIF code for center of motion of "body".
:type center: int
:param inframe: Reference frame name.
:type inframe: str
:param first: Start time of interval covered by segment.
:type first: float
:param last: End time of interval covered by segment.
:type last: float
:param segid: Segment identifier.
:type segid: str
:param degree: Degree of interpolating polynomials.
:type degree: int
:param n: Number of states.
:type n: int
:param states: Array of states.
:type states: Nx6-Element Array of floats
:param epochs: Array of epochs corresponding to states.
:type epochs: Array of floats