Index Page
cspice_scfmt
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_SCFMT converts encoded spacecraft clock ticks to 
   character clock format. 

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

I/O

   
   Given:
   
      sc      the scalar NAIF ID number for the spacecraft whose 
              clock's time is being decoded
      ticks   the scalar double precision encoding of a clock time in 
              units of ticks (partition information is not reflected 
              in this value)
   
   the call:
   
      cspice_scfmt, sc, ticks, clkstr
   
   returns:
   
      clkstr   the scalar spacecraft clock string corresponding to 
               'ticks'
   
   cspice_sctiks performs the inverse operation to cspice_scfmt,
   converting from clock format to number of ticks.
   

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. 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
   
         cspice_scfmt, sc, pstart[i], start
         cspice_scfmt, sc, pstop[i] , stop
   
         print, 'Partition: ', i
         print, 'Start    : ', start
         print, 'Stop     : ', stop
         print
   
      endfor
   
   IDL outputs:
   
      Partition:        0
      Start    : 00011:00:001
      Stop     : 04011:21:784
   
      Partition:        1
      Start    : 04011:22:001
      Stop     : 65536:00:002
   
      Partition:        2
      Start    : 00000:00:001
      Stop     : 54710:31:032
   
      Partition:        3
      Start    : 00000:31:001
      Stop     : 65536:00:001
   
      Partition:        4
      Start    : 00000:00:001
      Stop     : 65535:59:800

Particulars


   None.

Required Reading


   ICY.REQ
   SCLK.REQ

Version


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

Index_Entries

 
   convert spacecraft_clock ticks to character clock format 
 



Wed Apr  5 17:58:03 2017