@spiceErrorCheck<EOL>def ckw02(handle, begtim, endtim, inst, ref, segid, nrec, start, stop, quats,<EOL>avvs, rates):
handle = ctypes.c_int(handle)<EOL>begtim = ctypes.c_double(begtim)<EOL>endtim = ctypes.c_double(endtim)<EOL>inst = ctypes.c_int(inst)<EOL>ref = stypes.stringToCharP(ref)<EOL>segid = stypes.stringToCharP(segid)<EOL>start = stypes.toDoubleVector(start)<EOL>stop = stypes.toDoubleVector(stop)<EOL>rates = stypes.toDoubleVector(rates)<EOL>quats = stypes.toDoubleMatrix(quats)<EOL>avvs = stypes.toDoubleMatrix(avvs)<EOL>nrec = ctypes.c_int(nrec)<EOL>libspice.ckw02_c(handle, begtim, endtim, inst, ref, segid, nrec, start,<EOL>stop, quats, avvs, rates)<EOL>
Write a type 2 segment to a C-kernel.

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

:param handle: Handle of an open CK file.
:type handle: int
:param begtim: The beginning encoded SCLK of the segment.
:type begtim: float
:param endtim: The ending encoded SCLK of the segment.
:type endtim: float
:param inst: The NAIF instrument ID code.
:type inst: int
:param ref: The reference frame of the segment.
:type ref: str
:param segid: Segment identifier.
:type segid: str
:param nrec: Number of pointing records.
:type nrec: int
:param start: Encoded SCLK interval start times.
:type start: Array of floats
:param stop: Encoded SCLK interval stop times.
:type stop: Array of floats
:param quats: Quaternions representing instrument pointing.
:type quats: Nx4-Element Array of floats
:param avvs: Angular velocity vectors.
:type avvs: Nx3-Element Array of floats
:param rates: Number of seconds per tick for each interval.
:type rates: Array of floats