Index Page
cspice_etcal
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_ETCAL converts from an ephemeris epoch measured in 
   seconds past the epoch of J2000 to a calendar string 
   format using a formal calendar free of leapseconds.

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

I/O

   
   Given:
   
     et    the double precision scalar or N-vector of ephemeris 
           time expressed as ephemeris seconds past J2000

   the call:
   
      cspice_etcal, et, cal
   
   returns:
   
      cal   the scalar string or N-vector of strings describing 
            the calendar form of 'et' based on the Gregorian Calendar
            covering all dates infinitely forward and backward in 
            time, respecting leapyears, but not leapseconds
   
   Use of cspice_etcal does not require a loaded leapseconds kernel.

Examples


   ;;
   ;; An arbitrary array of ephemeris time values,
   ;; sequentially representing the J2000 epoch (TDB) and the
   ;; subsequent 19 seconds.
   ;;
   IDL> et = dblarr(20)

   ;;
   ;; Convert the ephemeris time to a calendar representation of
   ;; the time.
   ;;
   IDL> cspice_etcal, et, cal

   ;;
   ;; Output the 'cal' time strings. We ought to observe graduations 
   ;; of one second.
   ;;
   IDL> for i=0,19 do print, cal[i]
   2000 JAN 01 12:00:00.000
   2000 JAN 01 12:00:01.000
   2000 JAN 01 12:00:02.000
   2000 JAN 01 12:00:03.000
   2000 JAN 01 12:00:04.000
   2000 JAN 01 12:00:05.000
   2000 JAN 01 12:00:06.000
   2000 JAN 01 12:00:07.000
   2000 JAN 01 12:00:08.000
   2000 JAN 01 12:00:09.000
   2000 JAN 01 12:00:10.000
   2000 JAN 01 12:00:11.000
   2000 JAN 01 12:00:12.000
   2000 JAN 01 12:00:13.000
   2000 JAN 01 12:00:14.000
   2000 JAN 01 12:00:15.000
   2000 JAN 01 12:00:16.000
   2000 JAN 01 12:00:17.000
   2000 JAN 01 12:00:18.000
   2000 JAN 01 12:00:19.000

Particulars


   None.

Required Reading


   ICY.REQ
   TIME.REQ

Version


   -Icy Version 1.1.0, 22-AUG-2007, EDW (JPL)

      Added example code into the Examples section.

      Added capability to process vector 'et' input
      returning a vector 'cal' on output.
       
   -Icy Version 1.0.1, 09-DEC-2005, EDW (JPL)

      Added Examples section.

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

Index_Entries


   Convert ephemeris time to a formal calendar date




Wed Apr  5 17:58:01 2017