@spiceErrorCheck<EOL>def ckcov(ck, idcode, needav, level, tol, timsys, cover=None):
ck = stypes.stringToCharP(ck)<EOL>idcode = ctypes.c_int(idcode)<EOL>needav = ctypes.c_int(needav)<EOL>level = stypes.stringToCharP(level)<EOL>tol = ctypes.c_double(tol)<EOL>timsys = stypes.stringToCharP(timsys)<EOL>if not cover:<EOL><INDENT>cover = stypes.SPICEDOUBLE_CELL(<NUM_LIT>)<EOL><DEDENT>assert isinstance(cover, stypes.SpiceCell)<EOL>assert cover.dtype == <NUM_LIT:1><EOL>libspice.ckcov_c(ck, idcode, needav, level, tol, timsys,<EOL>ctypes.byref(cover))<EOL>return cover<EOL>
Find the coverage window for a specified object in a specified CK file.

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

:param ck: Name of CK file.
:type ck: str
:param idcode: ID code of object.
:type idcode: int
:param needav: Flag indicating whether angular velocity is needed.
:type needav: bool
:param level: Coverage level: (SEGMENT OR INTERVAL)
:type level: str
:param tol: Tolerance in ticks.
:type tol: float
:param timsys: Time system used to represent coverage.
:type timsys: str
:param cover: Window giving coverage for idcode.
:type cover: Optional SpiceCell
:return: coverage window for a specified object in a specified CK file
:rtype: spiceypy.utils.support_types.SpiceCell