void spkuds_c ( ConstSpiceDouble descr ,
SpiceInt * body,
SpiceInt * center,
SpiceInt * frame,
SpiceInt * type,
SpiceDouble * first,
SpiceDouble * last,
SpiceInt * begin,
SpiceInt * end )
Unpack the contents of an SPK segment descriptor
VARIABLE I/O DESCRIPTION
-------- --- --------------------------------------------------
descr I An SPK segment descriptor.
body O The NAIF ID code for the body of the segment.
center O The center of motion for body.
frame O The ID code for the frame of this segment.
type O The type of SPK segment.
first O The first epoch for which the segment is valid.
last O The last epoch for which the segment is valid.
begin O Beginning DAF address of the segment.
end O Ending DAF address of the segment.
descr is an SPK segment descriptor.
body is the NAIF ID code for the body of the segment.
center is the center of motion for body.
frame is the SPICE integer code for the frame to which states
for the body are be referenced.
type is the type of SPK segment.
first is the first epoch for which the segment has
last is the last epoch for which the segment has
begin is the starting address of the data associated
with this descriptor.
end is the last address of the data associated with
This routine extracts the contents of an SPK segment
descriptor into the components needed for reading and
evaluating the data stored in the segment. It serves
as a macro for expanding the SPK segment descriptor.
Suppose you wished to summarize a particular SPK segment
and that you have the descriptor for that segment in hand.
The following code fragment shows how you might use this
routine to create a summary message concerning the segment.
#define TIMLEN 35
spkuds_c ( descr, &body, ¢er, &frame,
. &type, &first, &last, &baddr, &eaddr );
Convert the start and stop times to TDB calendar strings.
etcal_c ( first, TIMLEN, fstcal );
etcal_c ( last, TIMLEN, lstcal );
printf ( "\n"
"Body : %d\n"
"Center : %d\n"
"Frame ID : %d\n"
"Data Type: %d\n"
"Segment Start : %s\n"
"Segment Stop : %s\n",
N.J. Bachman (JPL)
W.L. Taber (JPL)
K.R. Gehringer (JPL)
-CSPICE Version 1.1.0, 24-JUL-2001 (NJB)
Changed protoype: input descr is now type (ConstSpiceDouble *).
Implemented interface macro for casting input descr to const.
-CSPICE Version 1.0.0, 22-JUL-1999 (NJB) (WLT) (KRG)
Unpack and SPK segment descriptor