Index Page
cspice_bodfnd
A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X 

Abstract
I/O
Examples
Particulars
Required Reading
Version
Index_Entries

Abstract


   CSPICE_BODFND returns a boolean to indicate whether a designated 
   body data item exists in the kernel pool.

   For important details concerning this module's function, please refer to
   the CSPICE routine bodfnd_c.

I/O

   
   Given:
   
      body   the scalar, integer SPICE code for some
             vehicle or body

      item   the scalar string naming the property of 'body' to return, 
             e.g. AXES, RADII, NUT_AMP_RA, etc.

             Note: 'item' *is* case-sensitive.  This attribute 
             is inherited from the case-sensitivity of kernel 
            variable names.

   the call
   
       boolean = cspice_bodfnd( body, item ) 
   
   returns a boolean value to the function, indicate whether the variable 
   exists in the kernel pool (TRUE) or not (FALSE).
   

Examples


   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
      ;; BODY399_RADII.
      ;;
      found = cspice_bodfnd( 399, "RADII" )
   
      ;;
      ;; If found, retrieve the values.
      ;;
      
      if (found) then begin
      
         cspice_bodvcd, 399, 'RADII', 5, radii
         print, '399 RADII: ', radii
      
      endif
   
   IDL outputs:
   
      399 RADII:     6378.1400    6378.1400    6356.7500

Particulars


   None.

Required Reading


   ICY.REQ
   KERNEL.REQ
   PCK.REQ

Version


   -Icy Version 1.0.1, 10-NOV-2005, EDW (JPL)

      Minor edits to Examples section, Replaced cspice_bodvar
      call (deprecated) with cspice_bodvcd.

   -Icy Version 1.0.0, 16-JUN-2003, EDW (JPL)

Index_Entries


   find constants for a body in the kernel pool




Wed Apr  5 17:57:59 2017