Index Page
cspice_scpart
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_SCPART retrieves the spacecraft clock partition information 
   from a spacecraft clock kernel file.  

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

I/O

   
   Given:
   
      sc   the scalar NAIF ID for the spacecraft whose clock partition 
           information is requested 
   
   the call:
   
      cspice_scpart, sc, pstart, pstop
   
   returns:
   
      pstart   a double precision array containing the partition start 
               times represented as encoded ticks
      pstop    a double precision array containing the partition stop 
               times represented as encoded ticks 
   
   The arrays 'pstart' and 'pstop' have the same vector dimension.
   

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.

   
      ;;
      ;; Assign values for the spacecraft ID (Voyager2),
      ;; and s-clock kernel.
      ;;
      SC     = -32
      SCLK   = '/kernels/voyager2/sclk/vg200004.tsc'
   
      ;;
      ;; Load the kernel files.
      ;;
      cspice_furnsh, SCLK
   
      ;;
      ;; Retrieve the arrays for start and stop
      ;; of the partitions as measures in ticks.
      ;;
      cspice_scpart, sc, pstart, pstop
   
      ;;
      ;; Obtain the dimension of the arrays 'pstart' & 'pstop'. 
      ;; Note: nparts becomes a 1-vector, so use nparts[0] for the
      ;; dimension value.
      ;;
      nparts = size(pstart, /dim)
   
      ;;
      ;; Loop over each array value.
      ;;
      for i = 0, (nparts[0]-1) do begin
   
         print, 'Partition: ', i
         print, format='(A11,F20.6)', 'Start    : ', pstart[i]
         print, format='(A11,F20.6)', 'Stop     : ',  pstop[i]
         print
   
      endfor
   
   IDL outputs:
   
   Partition:        0
   Start    :        528000.000000
   Stop     :     192545583.000000
   
   Partition:        1
   Start    :     192545600.000000
   Stop     :    3145728001.000000
   
   Partition:        2
   Start    :             0.000000
   Stop     :    2626104831.000000
   
   Partition:        3
   Start    :         24800.000000
   Stop     :    3145728000.000000
   
   Partition:        4
   Start    :             0.000000
   Stop     :    3145727999.000000

Particulars


   None.

Required Reading


   ICY.REQ
   SCLK.REQ

Version


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

Index_Entries

 
   spacecraft_clock partition information 
 



Wed Apr  5 17:58:03 2017