CSPICE_EKOPN creates, then opens a new E-kernel file and
prepares the file for writing.
For important details concerning this module's function, please refer to
the CSPICE routine ekopn_c.
fname the scalar string holding the name of the EK file to
ifname the scalar string holding the internal file name
of the new EK kernel; the string must have length
60 characters or less
ncomch a scalar integer describing the number of characters
to allocate in the comment of the new EK file.
cspice_ekopn, fname, ifname, ncomch, handle
returns to the scalar integer 'handle' an integer that refers
to the EK file.
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.
;; Set the name for the new EK file. Set the amount
;; of space reserved for comments to zero.
EK = 'ekfile.ek'
comment_space = 0
;; Create a new EK with name ekfile.ek, assign
;; the internal file name the same value.
EK_INTERNAL = EK
cspice_ekopn, EK, EK_INTERNAL, comment_space, handle
... write data, but don't alter the value of handle ...
;; SAFELY close the file. Always close an EK file opened
;; for writing with cspice_ekcls.
-Icy Version 1.0.2, 19-JAN-2009, EDW (JPL)
Edits to header text and spelling correction.
-Icy Version 1.0.0, 16-JUN-2003, EDW (JPL)
open new E-kernel
open new EK