Index Page
cspice_scs2e
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_SCS2E converts a spacecraft clock string to ephemeris
   seconds past J2000 (ET). 

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

I/O

   
   Given:
   
      sc       a scalar NAIF ID code for a spacecraft, one of whose 
               clock values is represented by 'sclkch'.

      sclkch   a scalar or N-vector string representation of the 
               spacecraft clock value for 'sc' ('sclkch' is an absolute 
               spacecraft clock time, so the string should include 
               partition information).
      
   the call:
   
      cspice_scs2e, sc, sclkch, et
   
   returns:
   
      et    the double precision scalar or N-vector epoch in ephemeris
            seconds past J2000, that corresponds to 'sclkch'.

            'et' returns with the same measure of vectorization (N) 
            as 'sclkch'.

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 kernel.
      ;;
      SC     = -32
      SCLK   = '/kernels/voyager2/sclk/vg200004.tsc'
      sclkch = '2/20538:39:768'
   
      ;;
      ;; Load the SCLK kernel.
      ;;
      cspice_furnsh, SCLK
   
      ;;
      ;; Convert 'sclkch' for spacecraft 'SC' to ephemeris time.
      ;;
      cspice_scs2e, SC, sclkch, et
   
      ;;
      ;; Convert the ephemeris time to a UTC calendar string.
      ;;
      cspice_et2utc, et, 'C', 3, utc

      print, 'Scalar:'
      print,                       'Original: ' + sclkch
      print, format='(A10,F20.8)', 'ET      : ',  et
      print,                       'UTC     : ' + utc
      print

      ;;
      ;; Convert a vector of SCLK strings.
      ;;
      sclkch =  [ '2/20538:39:768' ,$
                  '2/20543:21:768' ,$
                  '2/20550:37'     ,$
                  '2/20561:59'     ,$
                  '5/04563:00:001'  ]

      cspice_scs2e, SC, sclkch, et
      cspice_et2utc, et, 'C', 3, utc

      print, 'Vector:'
      for i=0, n_elements(et)-1 do begin

         print,                       'Original: ' + sclkch[i]
         print, format='(A10,F20.8)', 'ET      : ',  et[i]
         print,                       'UTC     : ' + utc[i]
         print

      endfor

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

      Scalar:
      Original: 2/20538:39:768
      ET      :  -646668528.58222842
      UTC     : 1979 JUL 05 21:50:21.234

      Vector:
      Original: 2/20538:39:768
      ET      :  -646668528.58222842
      UTC     : 1979 JUL 05 21:50:21.234

      Original: 2/20543:21:768
      ET      :  -646654992.59209847
      UTC     : 1979 JUL 06 01:35:57.224

      Original: 2/20550:37
      ET      :  -646634110.62732494
      UTC     : 1979 JUL 06 07:23:59.189

      Original: 2/20561:59
      ET      :  -646601374.65119493
      UTC     : 1979 JUL 06 16:29:35.165

      Original: 5/04563:00:001
      ET      :  -157626068.50102001
      UTC     : 1995 JAN 03 02:57:50.315

Particulars


   None.

Required Reading


   ICY.REQ
   SCLK.REQ

Version


   -Icy Version 1.1.1, 05-FEB-2008, EDW (JPL)

      Edited I/O section, replaced comment
      
         "returns with the same order"
      
      with
      
         "returns with the same measure of vectorization"
      
   -Icy Version 1.1.0, 12-SEP-2004, EDW (JPL)

       Added capability to process vector 'sclkch' as
       input returning vector 'et' on output.

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

Index_Entries

 
   spacecraft_clock string to ephemeris time 
 



Wed Apr  5 17:58:03 2017