Rotation Matrix error uncaught for unavaible SPICE kernels
addy999 opened this issue · comments
For an unavailable time period from the SPICE kernels, an unexpected {First Column} is undefined
error is thrown instead of a polar motion error - which occurs for a time much later in the future.
Error is raised from LibraryMathematics
I know this is an old issue, but I ran into the same thing recently and tracked it down to an error in the Finals2000A
data file handling. Fix in this MR.
Propagating into the future tries to fetch the polar motion
in order to do the frame conversion to ITRF. The {First column} is undefined
error comes from this line.
It's due to the polar motion computed a few lines above being a nan
. Seems that the valid data range that we define for the Finals2000A data class is a bit larger than the actual range over which it's able to provide valid polar motion predictions. Added a check to see when the return from that function is invalid, and give a more useful error message.
Looks like at the moment, we're only able to propagate about 1 year into the future (at least when ITRF/TEME frame conversions are required).
Gonna close this one out!