Function lupnt::spk_extract¶
Defined in File spice_cheby.h
Function Documentation¶
-
segment_t *lupnt::spk_extract(char const *path, long *segs)¶
Extract all Chebyshev-position-only (Type 2) segments from an SPK file into a heap-allocated array of
segment_t, without requiring the SPICE library afterwards.Called once by
spice::LoadSpiceKernelonde440.bsp(planetary/lunar ephemeris), producing the segment table thatspice::GetBodyPosVelBasesearches (by target/center body codes) and evaluates viacheby_posvel_adfor everyspice::GetBodyPosVelcall.- Parameters:
path – SPK (
.bsp) file pathsegs – Output: number of segments in the returned array
- Returns:
Heap-allocated array of
*segssegment descriptors, ornullptron error (e.g. not a valid SPK / no Chebyshev position-only segments)