Function lupnt::spk_extract

Function Documentation

segment_t *lupnt::spk_extract(char const *path, long *segs)

Scan through the SPK file path and extract all of the Chebyshev position-only segments, saving them in an allocated array of segment_t, which is returned. If there is an error, NULL is returned. *segs is set to the number of segments in the array. Once this is done, this array can be used by cheby_verify() and cheby_posvel() above, with no dependency on or reference to the SPICE library.