Index Page
cspice_sct2e
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_SCT2E converts encoded spacecraft clock (`ticks') 
   to ephemeris seconds past J2000 (ET). 

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

I/O

   
   Given:
   
      sc       the scalar NAIF integer code for a spacecraft, one of 
               whose encoded clock values is represented by 
               'sclkdp'
               
      sclkdp   a double precision scalar encoded spacecraft clock value  
            
   the call:
   
      cspice_sct2e, sc, sclkdp, et
   
   returns:
   
      et   the double precision epoch, specified as ephemeris seconds past 
           J2000, that corresponds to 'sclkdp '
   

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 the leapseconds kernel for time conversion.
      ;;
      cspice_furnsh, 'standard.tm'
   
      ;;
      ;; Assign values for the spacecraft ID (Voyager2),
      ;; s-clock kernel.
      ;;
      SC     = -32
      SCLK   = '/kernels/voyager2/sclk/vg200004.tsc'
      sclkdp = 985327965.d
   
      ;;
      ;; Load the SCLK kernel.
      ;;
      cspice_furnsh, SCLK
   
      ;;
      ;; Convert 'sclkdp' for spacecraft 'SC' to ephemeris time.
      ;;
      cspice_sct2e, SC, sclkdp, et
   
      ;;
      ;; Convert the ephemeris time to a UTC calendar string.
      ;;
      cspice_et2utc, et, 'C', 3, utc
      print, utc

      ;;
      ;; It's always good form to unload kernels after use,
      ;; particularly in IDL due to data persistence.
      ;;
      cspice_unload, SCLK
      cspice_unload, 'standard.tm'

   IDL outputs: 1979 JUL 05 21:50:22.134

Particulars


   None.

Required Reading


   ICY.REQ
   SCLK.REQ

Version


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

Index_Entries

 
   spacecraft_clock ticks to ephemeris time 
 



Wed Apr  5 17:58:03 2017