@spiceErrorCheck<EOL>def ckopn(filename, ifname, ncomch):
filename = stypes.stringToCharP(filename)<EOL>ifname = stypes.stringToCharP(ifname)<EOL>ncomch = ctypes.c_int(ncomch)<EOL>handle = ctypes.c_int()<EOL>libspice.ckopn_c(filename, ifname, ncomch, ctypes.byref(handle))<EOL>return handle.value<EOL>
Open a new CK file, returning the handle of the opened file.

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

:param filename: The name of the CK file to be opened.
:type filename: str
:param ifname: The internal filename for the CK.
:type ifname: str
:param ncomch: The number of characters to reserve for comments.
:type ncomch: int
:return: The handle of the opened CK file.
:rtype: int