Repository navigation
Troubleshooting
| Error | Usual cause | Fix |
|---|---|---|
UtcOutOfRange |
UTC date before the kernel's first entry, or pre-1972 with IersOnly
|
load a kernel that covers the date, or select LeapSecondSource::Sofa
|
InvalidLeapSecond |
23:59:60.x on a normal day, 23:59:59.x on a shortened day, or 60.x outside 23:59 |
the label does not exist on that day; use the correct instant |
LskParse |
malformed text, invalid date, non-finite constant, unsupported operator, duplicate dates | check the kernel; = replaces, += appends |
LskMissing(var) |
a required DELTET variable is absent |
use a complete LSK |
Ut1OutOfRange |
epoch outside the EOP sample range, or EOP data not loaded | check EopTable::range(); the last sample day cannot be interpolated |
EopMissing / EopParse
|
empty table, blank column, non-finite value | re-fetch finals2000A.all
|
SclkParse |
field count, modulus, coefficient order, rate, or partition bound problem | compare against the kernel's declared format |
SclkPartitionsUnsupported |
field/string conversion on a partitioned clock | use encode_native_sclk or decode_native_sclk for partitioned strings |
SclkUnsupported |
clock type other than 1 | not implemented |
InvalidDate / InvalidTime / InvalidSecond
|
civil fields outside the calendar or 0..61 s
|
validate input before conversion |
InvalidFormat |
unsupported % token in strftime
|
see the token list in Formatting |
KernelDateUnsupported |
kernel @date literal outside the exercised N0067 grammar |
check the literal against the grammar scope |
panic from Epoch::from_*
|
non-finite or out-of-range input | use checked_from_* for untrusted input |
Because they are different models. NAIF ET keeps one periodic term, as
documented in the LSK; the IAU series keeps 787. Both are implemented
faithfully, and TDB models explains when each is appropriate.
The contract module stops one from standing in for the other by accident.
Because it does not round to the next day — it rounds to 23:59:60.000,
which exists. The formatter needs the leap-second table to know the day is
86 401 seconds long. Pass FormatOptions::with_leap_seconds(&lsk). See
Formatting.
The last sample day only closes the preceding day: interpolation needs two
bracketing samples. Coverage is [first sample day, last sample day). Check
EopTable::range(). See UT1 and EOP.
A UTC day is 86 400 seconds long unless the LSK says otherwise. 23:59:60
exists only on a 86 401-second day; 23:59:59 does not exist on a
86 399-second day. Both cases return InvalidLeapSecond instead of aliasing
the next day's 00:00:00.
The legacy field-vector and string helpers reject multiple partitions or a
nonzero partition start. Use the native string APIs instead; for parser
history across calls, retain an SclkStringContext. See SCLK.
Each leap second the kernel declares shifts TAI - UTC by one second from
that date onward. That is the correct behaviour, not a bug; it is what makes
kernel selection testable. See Verification.
WebGeocalc displays rounded values. Differences can also arise from selected kernels, input representations, conversion routes, models and floating-point environments. Compare the same inputs and consult the documented verification; a display match alone does not establish binary equality.
Formatting yes. A kernel @date literal is resolved by
kernel_date::parse_kernel_date, which implements the exercised N0067
TPARTV/TPARSE profile without time-scale conversion. There is no general
str2et-style parser for arbitrary civil text, and no attempt to infer a
calendar or leap-second policy from text: construct UtcDateTime explicitly.
A wrap at i64::MAX would move an epoch by 585 billion years. For untrusted
input use Epoch::checked_from_parts, which returns None.
GitHub Packages has no Cargo registry, and the container image that once existed was withdrawn in 0.1.20. Use crates.io for the library and GitHub Releases for binaries.
Include:
- crate version and enabled features (
std,no_std,mcp); - the LSK, SCLK and EOP files by name and date;
- the exact input value and the exact call;
- whether the reference is CSPICE, WebGeocalc, ERFA or IERS.
Most "wrong" results trace to a kernel that does not cover the date, a different kernel than the reference used, or mixing TDB models. The Verification page lists the comparisons that already exist, so a new mismatch can be checked against them before filing an issue.
