Text PCK with NUT_PREC values may cause issues with spiceinit
Version: 126.96.36.19991 (not available in Software Version dropdown as I write this)
In function SpiceRotation::loadPCFromSpice(int centerBody), starting with:
00888 naifKeyword = "BODY" + toString(centerBodyCode) + "NUT_PRECRA" ;
where ISIS starts looking for nutation/precession terms. If a text PCK includes these values, but the body is not
a moon, then the result of the line:
00893 SpiceInt bcCode = centerBodyCode/100; // Ex: bc code for Jupiter (599) & its moons is 5
will fail because bcCode is not a valid NAIF ID.
It seems that centerBodyCode should be checked to be in the range required for moons, or if bcCode is out of the valid range for
a planetary barycenter, assume the sun?
The workaround is just to comment out the values in the PCK, but I do not know what possible problems this might cause.