Index Page
cspice_expool
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_EXPOOL queries the kernel pool for the existence of a numeric
   kernel variable. The procedure cannot detect the existence of
   string valued kernel pool variables.

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

I/O

   
   Note: NAIF recommends the routine cspice_dtpool when testing for the
   existence of pool variables. That routine determines variable existence, 
   size, and type.
   
   Given:
   
      name   the scalar string name of a pool variable
   
   the call:
   
      cspice_expool, name, found
   
   returns:
   
      found   a scalar boolean that returns TRUE if variable 'name'
              exists in the pool
   

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 leapsecond kernel.
      ;; 
      cspice_furnsh, 'standard.tm'
   
      ;;
      ;; Check for the variables defined in the leapseconds kernel.
      ;;
      lmpoolNames  = [                       $
                    "DELTET/DELTA_T_A",      $
                    "DELTET/K",              $
                    "DELTET/EB",             $
                    "DELTET/M",              $
                    "DELTET/DELTA_AT",       $
                    "EVERLASTING_GOBSTOPPER" $
                     ]
   
      for i = 0, n_elements(lmpoolNames)-1 do begin
   
         cspice_expool, lmpoolNames[i], found
         
         if (found) then begin
            print, "Found variable name : " + lmpoolNames[i]
            print
         endif else begin
            print, "Unable to find variable name : " + lmpoolNames[i]
            print 
         endelse
         
      endfor
   
   IDL outputs:
   
      Found variable name : DELTET/DELTA_T_A
   
      Found variable name : DELTET/K
   
      Found variable name : DELTET/EB
   
      Found variable name : DELTET/M
   
      Found variable name : DELTET/DELTA_AT
   
      Unable to find variable name : EVERLASTING_GOBSTOPPER
   

Particulars


   None.

Required Reading


   ICY.REQ
   KERNEL.REQ

Version


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

Index_Entries


   CONFIRM the existence of a pooled kernel variable




Wed Apr  5 17:58:01 2017