spiceinit - NAIF error due to length of spk kernel filename
It appears there is a limitation on the number of characters a spacecraft kernel file can have. I'm exactly sure what the exact number is, but it is somewhere to the tune of 130+. The limitation seems to only apply to spk files for some reason.
Errors occur when I run the following:
spiceinit from=M3G20090214T094953_V03_L1B.cub \
Error = "An unknown NAIF error has been encountered. The short explanation provided by NAIF is [SPICE(SPKINSUFFDATA)]. The Naif error is [Insufficient ephemeris data has been loaded to compute the position of -86 (CHANDRAYAAN-1) relative to 0 (SOLAR SYSTEM BARYCENTER) at the ephemeris epoch 2009 FEB 14 09:50:57.544.]"
If I drop "prelim10kgrnd_" from the spk filename, the program runs successfully.
I've put test data under /work/users/lweller/Isis3Tests/Spiceinit/SpkFilename/ that will replicate the error (already renaming things under my m3 projects directory in the example above). See the file proc.txt for the cases where it fails, and the last case where the program works depending on the number of characters in the spk filename.
This fails as far back as isis3.4.10, and likely even beyond that.