|
Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.stsci.edu/~sontag/spicedocs/cspice/spkcls_c.html
Дата изменения: Sat Dec 17 06:09:45 2005 Дата индексирования: Mon Apr 11 00:09:34 2016 Кодировка: Поисковые слова: http www.badastronomy.com bad tv foxapollo.html |
Close an open SPK file.
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.
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.
1) If there are no segments in the file, the error
SPICE(NOSEGMENTSFOUND) will be signaled.
See argument handle.
F.S. Turner (JPL)
None.
-CSPICE Version 1.0.0, 16-MAR-1999 (FST)
close an spk file