@spiceErrorCheck<EOL>def ckw05(handle, subtype, degree, begtim, endtim, inst, ref, avflag, segid,<EOL>sclkdp, packts, rate, nints, starts):
handle  = ctypes.c_int(handle)<EOL>subtype = ctypes.c_int(subtype)<EOL>degree  = ctypes.c_int(degree)<EOL>begtim  = ctypes.c_double(begtim)<EOL>endtim  = ctypes.c_double(endtim)<EOL>inst    = ctypes.c_int(inst)<EOL>ref     = stypes.stringToCharP(ref)<EOL>avflag  = ctypes.c_int(avflag)<EOL>segid   = stypes.stringToCharP(segid)<EOL>n       = ctypes.c_int(len(packts))<EOL>sclkdp  = stypes.toDoubleVector(sclkdp)<EOL>packts  = stypes.toDoubleMatrix(packts)<EOL>rate    = ctypes.c_double(rate)<EOL>nints   = ctypes.c_int(nints)<EOL>starts  = stypes.toDoubleVector(starts)<EOL>libspice.ckw05_c(handle, subtype, degree, begtim, endtim, inst, ref, avflag,<EOL>segid, n, sclkdp, packts, rate, nints, starts)<EOL>
Write a type 5 segment to a CK file.

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ckw05_c.html

:param handle: Handle of an open CK file.
:type handle: int
:param subtype: CK type 5 subtype code. Can be: 0, 1, 2, 3 see naif docs via link above.
:type subtype: int
:param degree: Degree of interpolating polynomials.
:type degree: 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 avflag: True if the segment will contain angular velocity.
:type avflag: bool
:param segid: Segment identifier.
:type segid: str
:param sclkdp: Encoded SCLK times.
:type sclkdp: Array of floats
:param packts: Array of packets.
:type packts: Some NxM vector of floats
:param rate: Nominal SCLK rate in seconds per tick.
:type rate: float
:param nints: Number of intervals.
:type nints: int
:param starts: Encoded SCLK interval start times.
:type starts: Array of floats