CSPICE_BODFND determines whether values exist for some item for any body
in the kernel pool.
body the ID code of the body for which the item is
requested. Bodies are numbered according to the
standard NAIF numbering scheme.
[1,1] = size(body); int32 = class(body)
item the item to be returned. Together, the body and
item name combine to form a variable name, e.g.,
[1,c1] = size(item); char = class(item)
[1,1] = size(item); cell = class(item)
[found] = cspice_bodfnd( body, item )
found true if the `item` is in the kernel pool; false
if it is not.
[1,1] = size(found); logical = class(found)
Any numerical results shown for this example may differ between
platforms as the results depend on the SPICE kernels used as input
and the machine specific arithmetic implementation.
% Test if Earth's radii values exist in the
% kernel pool.
% The procedure searches for the kernel variable
found = cspice_bodfnd( 399, 'RADII' );
% If found, retrieve the values.
radii = cspice_bodvcd( 399, 'RADII', 3 )
radii = [ 100; 100; 100 ]
(If BODY399_RADII exists in the kernel pool)
(If BODY399_RADII does not exist in the kernel pool)
The Mice routines cspice_bodvcd and cspice_bodvrd, which return values
from the kernel pool, signal an error if the specified item is not found.
In many cases, this is appropriate. However, sometimes the program
may attempt to recover, by providing default values, prompting for
replacements, and so on.
For important details concerning this module's function, please refer to
the CSPICE routine bodfnd_c.
-Mice Version 1.0.0, 14-NOV-2016, EDW (JPL)
find constants for a body in the kernel pool