Index Page
cspice_sce2t
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_SCE2T converts ephemeris seconds past J2000 (ET) to 
   discrete, encoded spacecraft clock ("ticks").

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

I/O

   
   Given:
   
      sc   the scalar integer NAIF ID of the spacecraft whose 
           encoded SCLK value at the epoch 'et' is desired
      et   the scalar double precision epoch, specified as ephemeris 
           seconds past J2000
   
   the call:
   
      cspice_sce2t, sc, et, sclkdp
   
   returns:
   
      sclkdp   the double precision encoded spacecraft clock
               value for 'sc' at 'et'
   
   Note: NAIF deprecated this function and so recommends the use of
   use cspice_sce2c.
   

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),
      ;; and s-clock kernels.
      ;;
      SC         = -32
      SCLK       = '/kernels/voyager2/sclk/vg200004.tsc'
      event_time = '1979 JUL 05 21:50:21.23379'
   
      ;;
      ;; Load the SCLK file.
      ;;
      cspice_furnsh, SCLK
   
      ;;
      ;; Convert the time string to ephemeris time.
      ;;
      cspice_str2et, event_time, et
   
      ;;
      ;; Convert the ephemeris time to the encoded s-clock
      ;; format.
      ;;
      cspice_sce2t, sc, et, sclkdp
      print, format='(F16.6)', sclkdp

      ;;
      ;; 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:  985327950.000000

Particulars


   None.

Required Reading


   ICY.REQ
   SCLK.REQ

Version


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

Index_Entries

 
   ephemeris time to spacecraft_clock ticks 
 



Wed Apr  5 17:58:03 2017