void pckcls_c ( SpiceInt handle )
Close an open PCK file.
PCK
PCK
VARIABLE I/O DESCRIPTION
-------- --- --------------------------------------------------
handle I Handle of the PCK file to be closed.
handle The handle of the PCK 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'.
None.
Suppose that you want to create a new PCK file called "new.PCK"
that contains a single type 2 PCK 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 PCK type 2 segment writer have appropriate values.
name = "new.pck";
ifname = "Test PCK file";
pckopn_c ( name, ifname, 5000, &handle );
pckw02_c ( handle, body, frame_c, first, last,
segid, intlen, n, polydg, cdata,
btime );
pckcls_c ( handle );
None.
None.
N.J. Bachman (JPL)
K.R. Gehringer (JPL)
-CSPICE Version 1.0.0, 16-DEC-2016 (NJB) (KRG)
close a pck file
Link to routine pckcls_c source file pckcls_c.c
|