Project

General

Profile

Bug #4445

Text PCK with NUT_PREC values may cause issues with spiceinit

Added by Ian Hall almost 2 years ago. Updated almost 2 years ago.

Status:
Acknowledged
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Impact:
Software Version:
Test Reviewer:

Description

Version: 3.4.13.7091 (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.

History

#1 Updated by Tammy Becker almost 2 years ago

  • Status changed from New to Acknowledged

Also available in: Atom PDF