IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 6, 2004, 9:06:36 AM (22 years ago)
Author:
eugene
Message:

minor mods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibSDRS.tex

    r1214 r1400  
    1 %%% $Id: psLibSDRS.tex,v 1.61 2004-07-13 21:42:55 eugene Exp $
     1%%% $Id: psLibSDRS.tex,v 1.62 2004-08-06 19:06:36 eugene Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    26612661We require a collection of functions to manipulate time data.  These
    26622662operations primarily consist of conversions between specific time
    2663 formats.  PSLib wraps the libTAI structure \code{taia} for use as the
    2664 native time format. 
     2663formats.  PSLib currently uses the UNIX \code{timeval} structure
     2664representation of time as the native time format.
    26652665\begin{verbatim}
    26662666typedef struct {
    2667   struct taia t;
     2667  time_t         tv_sec;   /* seconds */
     2668  suseconds_t    tv_usec;  /* microseconds */
    26682669} psTime;
    26692670\end{verbatim}
    26702671
    2671 Two utility functions provide the current time in two formats, MJD
    2672 (modified Julian day) and the Sidereal time. 
    2673 
    2674 \begin{verbatim}
    2675 psTime psGetMJD(void);
    2676 psTime psGetSidereal(float mjd, float longitude);
     2672A utility function provides the current time from the system clock, in correct TAI units:
     2673\begin{verbatim}
     2674psTime psTimeGetTime (void);
    26772675\end{verbatim}
    26782676
     
    26982696psTime *psTimevalToTime (struct timeval *input);
    26992697psTime *psTMtoTime (struct tm *input);
     2698\end{verbatim}
     2699
     2700\begin{verbatim}
     2701double psMJDToSidereal (double MJD, double longitude);
     2702double psSiderealToMJD (double sidereal, double longitude);
    27002703\end{verbatim}
    27012704
Note: See TracChangeset for help on using the changeset viewer.