@spiceErrorCheck<EOL>def spkopn(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.spkopn_c(filename, ifname, ncomch, ctypes.byref(handle))<EOL>return handle.value<EOL>
Create a new SPK file, returning the handle of the opened file.

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

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