Index Page
cspice_kinfo
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_KINFO returns information on a loaded kernel specified
   by name.

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

I/O


   Given:

      file   the scalar string path name for the kernel of interest

   the call:

      cspice_kinfo, file, filtyp, source, handle, found

   returns:

      filtyp   the type name of the kernel specified by 'file'.
               'filtyp' will be empty if file is not on the list of kernels
               loaded via cspice_furnsh.


      source   the name of the source file used to
               specify 'file' as one to load.  If 'file' was loaded
               directly via a call to cspice_furnsh, 'source' will be empty.
               If file is not on the list of kernels loaded via
               cspice_furnsh, 'source' will be empty.

      handle   the integer handle attached to 'file' if it is a binary
               kernel.  If file is a text kernel or meta-text kernel
               handle will be zero. If file is not on the list of
               kernels loaded via cspice_furnsh, 'handle' has value zero.

      found    returns true if the specified file exists.
               If there is no such file, 'found' will be set to
               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.


      ;;
      ;; Load a meta kernel listing a path to an SPK file.
      ;;
      cspice_furnsh, 'standard.tm'

      ;;
      ;; Use cspice_kinfo to ensure the kernel system loaded
      ;; the SPK file of interest.
      ;;
      file = '/kernels/gen/spk/de405_2000-2050.bsp'

      cspice_kinfo, file, filtyp, source, handle, found

      ;;
      ;; Take appropriate action depending on the returned
      ;; state of found. If found has value false, then
      ;; file is not loaded.
      ;;
      if ( found ) then begin
         print, 'File type: ', filtyp
         print, 'Source   : ', source
      endif

   IDL outputs:

      File type: SPK
      Source   : standard.tm

Particulars


   None.

Required Reading


   ICY.REQ
   DSK.REQ
   KERNEL.REQ

Version


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

Index_Entries


   Fetch information about a loaded SPICE kernel




Wed Apr  5 17:58:02 2017