Index Page
cspice_pdpool
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_PDPOOL inserts double precision data into the kernel pool.

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

I/O

   
   Given:
   
      name    the scalar string name of the kernel pool variable to
              associate with the values supplied in the array 'dvals'.
              'name' is restricted to a length of 32 characters or less.

      dvals    an array of double precision values to load into 
               the kernel pool sub-system with the assigned 
               variable name 'name'.
   
   the call:
   
      cspice_pdpool, name, dvals
   
   performs the operation.
   

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.

   
      ;;
      ;; Define array sizes and the kernel variable name.
      ;;
      PDPOOL_DIM  = 9
      PDPOOL_VAR  = 'pdpool_array'
      NUM_VARS    = 30
   
      ;;
      ;; Create an array of doubles, 0 to (PIPOOL_DIM-1)
      ;;
      pdpool_arr  = dindgen( PDPOOL_DIM )   
   
      ;;
      ;; Insert the data assigned to 'PDPOOL_VAR' into the kernel pool.
      ;;
      cspice_pdpool, PDPOOL_VAR, pdpool_arr
   
      ;;
      ;; Retrieve the variable's associated values into the 
      ;; array named 'dvals'. Retrieve all values, so set
      ;; 'START' to zero.
      ;;
      START = 0
      cspice_gdpool, PDPOOL_VAR, START, NUM_VARS, dvals, found
   
      ;;
      ;; Check we found the expected variable, and ensure
      ;; the expected values.
      ;;
      if ( found ) then begin
   
         print, 'Found array variable ' + PDPOOL_VAR + ' with entries:'
   
         for i = 0, (n_elements(dvals)-1) do begin
            print, dvals[i]
         endfor
   
      endif else begin
         print, 'Variable ' + PDPOOL_VAR + ' not found in kernel pool.'
      endelse
   
   IDL outputs:
   
      Found array variable pdpool_array with entries:
             0.0000000
             1.0000000
             2.0000000
             3.0000000
             4.0000000
             5.0000000
             6.0000000
             7.0000000
             8.0000000

Particulars


   Kernel pool variable names are restricted to a length of 32 
   characters or less.

Required Reading


   ICY.REQ
   KERNEL.REQ

Version


   -Icy Version 1.0.1, 10-FEB-2010, EDW (JPL)

      Added mention of the length restriction on the kernel pool variable
      name 'name'.

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

Index_Entries

 
   Set the value of a d.p. kernel pool variable 
 



Wed Apr  5 17:58:02 2017