@spiceErrorCheck<EOL>def spkw15(handle, body, center, inframe, first, last, segid, epoch, tp, pa, p,<EOL>ecc, j2flg, pv, gm, j2, radius):
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>epoch = ctypes.c_double(epoch)<EOL>tp = stypes.toDoubleVector(tp)<EOL>pa = stypes.toDoubleVector(pa)<EOL>p = ctypes.c_double(p)<EOL>ecc = ctypes.c_double(ecc)<EOL>j2flg = ctypes.c_double(j2flg)<EOL>pv = stypes.toDoubleVector(pv)<EOL>gm = ctypes.c_double(gm)<EOL>j2 = ctypes.c_double(j2)<EOL>radius = ctypes.c_double(radius)<EOL>libspice.spkw15_c(handle, body, center, inframe, first, last, segid, epoch,<EOL>tp, pa, p, ecc, j2flg, pv, gm, j2, radius)<EOL>
Write an SPK segment of type 15 given a type 15 data record.

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

:param handle: Handle of an SPK file open for writing.
:type handle: int
:param body: Body code for ephemeris object.
:type body: int
:param center: Body code for the center of motion of the body.
:type center: int
:param inframe: The reference frame of the states.
:type inframe: str
:param first: First valid time for which states can be computed.
:type first: float
:param last: Last valid time for which states can be computed.
:type last: float
:param segid: Segment identifier.
:type segid: str
:param epoch: Epoch of the periapse.
:type epoch: float
:param tp: Trajectory pole vector.
:type tp: 3-Element Array of floats
:param pa: Periapsis vector.
:type pa: 3-Element Array of floats
:param p: Semi-latus rectum.
:type p: float
:param ecc: Eccentricity.
:type ecc: float
:param j2flg: J2 processing flag.
:type j2flg: float
:param pv: Central body pole vector.
:type pv: 3-Element Array of floats
:param gm: Central body GM.
:type gm: float
:param j2: Central body J2.
:type j2: float
:param radius: Equatorial radius of central body.
:type radius: float