void spkcls_c ( SpiceInt handle )
Close an open SPK file.
SPK
SPK
VARIABLE I/O DESCRIPTION
-------- --- --------------------------------------------------
handle I Handle of the SPK file to be closed.
handle The handle of the SPK file that is to be closed.
None.
None.
1) If there are no segments in the file, the error
SPICE(NOSEGMENTSFOUND) will be signaled.
See argument handle.
Close the SPK file attached to handle.
Suppose that you want to create a new SPK file called "new.spk"
that contains a single type 5 SPK segment and has room for at
least 5000 comment characters. The following code fragment should
take care of this for you, assuming that all of the variables
passed to the SPK type 5 segment writer have appropriate values
and no errors occur.
#include "SpiceUsr.h"
.
.
.
name = "new.spk";
ifname = "Test SPK file";
spkopn_c ( name, ifname, 5000, &handle );
spkw05 ( handle, objid, cntrid, cframe, etbeg,
etend, segmid, cntrgm, nstate, state,
epoch );
spkcls_c ( handle );
None.
None.
F.S. Turner (JPL)
-CSPICE Version 1.0.0, 16-MAR-1999 (FST)
close an spk file
Link to routine spkcls_c source file spkcls_c.c
|