Function lupnt::cheby_segment¶
Defined in File spice_cheby.h
Function Documentation¶
-
int lupnt::cheby_segment(SpiceInt daf, SpiceDouble *dc, SpiceInt *ic, segment_t *s)¶
Read one Chebyshev-position-only SPK segment from an open DAF file into
s, verifying its structure viacheby_verify.Called by
spk_extractfor each Type-2 (Chebyshev position-only) segment found while scanning an SPK file.- Parameters:
daf – DAF file handle (from
dafopr_c)dc – Segment descriptor’s double-precision components (start/end epoch [s past J2000])
ic – Segment descriptor’s integer components (target/center/frame codes, representation type, data address range)
s – Output: populated segment descriptor (
s->segis heap-allocated)
- Returns:
0 on success; 1 on error (with
s->segleft asnullptr)