Changeset 1400 for trunk/doc/pslib/psLibSDRS.tex
- Timestamp:
- Aug 6, 2004, 9:06:36 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r1214 r1400 1 %%% $Id: psLibSDRS.tex,v 1.6 1 2004-07-13 21:42:55eugene Exp $1 %%% $Id: psLibSDRS.tex,v 1.62 2004-08-06 19:06:36 eugene Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 2661 2661 We require a collection of functions to manipulate time data. These 2662 2662 operations primarily consist of conversions between specific time 2663 formats. PSLib wraps the libTAI structure \code{taia} for use as the2664 native time format. 2663 formats. PSLib currently uses the UNIX \code{timeval} structure 2664 representation of time as the native time format. 2665 2665 \begin{verbatim} 2666 2666 typedef struct { 2667 struct taia t; 2667 time_t tv_sec; /* seconds */ 2668 suseconds_t tv_usec; /* microseconds */ 2668 2669 } psTime; 2669 2670 \end{verbatim} 2670 2671 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); 2672 A utility function provides the current time from the system clock, in correct TAI units: 2673 \begin{verbatim} 2674 psTime psTimeGetTime (void); 2677 2675 \end{verbatim} 2678 2676 … … 2698 2696 psTime *psTimevalToTime (struct timeval *input); 2699 2697 psTime *psTMtoTime (struct tm *input); 2698 \end{verbatim} 2699 2700 \begin{verbatim} 2701 double psMJDToSidereal (double MJD, double longitude); 2702 double psSiderealToMJD (double sidereal, double longitude); 2700 2703 \end{verbatim} 2701 2704
Note:
See TracChangeset
for help on using the changeset viewer.
