CSPICE_CKOPN opens a new CK file, returning the handle
of the opened file.
fname the name of the CK file to open.
[1,c1] = size(fname); char = class(fname)
[1,1] = size(fname); cell = class(fname)
ifname a descriptive internal filename for the CK.
[1,m2] = size(ifname); char = class(ifname)
[1,1] = size(ifname); cell = class(ifname)
ncomch the number of characters to reserve for comments.
[1,1] = size(ncomch); int32 = class(ncomch)
handle = cspice_ckopn( name, ifname, ncomch )
handle the file handle assigned to 'fname'
[1,1] = size(handle); int32 = class(handle)
Any numerical results shown for this example may differ between
platforms as the results depend on the SPICE kernels used as input
and the machine specific arithmetic implementation.
% Define needed parameters, a name for the CK, the
% file internal name, and the number of characters
% to reserve for a comment block.
CK1 = 'type1.bc';
IFNAME = 'CK';
NCOMCH = 10;
% Open a new kernel.
handle = cspice_ckopn( CK1, IFNAME, NCOMCH);
... do some writes to the open CK file ...
% SAFELY close the file
cspice_ckcls( handle )
A cspice_ckcls call should balance every cspice_ckopn
For important details concerning this module's function, please refer to
the CSPICE routine ckopn_c.
-Mice Version 1.0.1, 29-OCT-2014, EDW (JPL)
Edited I/O section to conform to NAIF standard for Mice documentation.
-Mice Version 1.0.0, 22-NOV-2005, EDW (JPL)
open a new ck file