IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1768


Ignore:
Timestamp:
Sep 9, 2004, 2:23:39 PM (22 years ago)
Author:
Paul Price
Message:

Fixing up psTime configuration file loading, including change to psLibInit.

File:
1 edited

Legend:

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

    r1767 r1768  
    1 %%% $Id: psLibSDRS.tex,v 1.119 2004-09-10 00:17:59 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.120 2004-09-10 00:23:39 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    176176\item Set the error codes for PSLib.
    177177\item Seed the random number generator.
    178 \item Read the \code{psTimeTable} configuration file and set up the
    179   appropriate \code{psTimeTable}s and predictions.
     178\item Read the \code{psTime} configuration file (\code{timeConfig})
     179  and set up the appropriate \code{psTimeTable}s and predictions.
    180180\end{itemize}
    181181
    182182The prototype is:
    183183\begin{verbatim}
    184 void psLibInit(bool predictable);
     184void psLibInit(bool predictable, const char *timeConfig);
    185185\end{verbatim}
    186186
     
    190190generator shall be seeded from \code{/dev/random} if it exists,
    191191otherwise from the system clock.
     192
     193\code{timeConfig} specifies the filename of the configuration file
     194for \code{psTime} metadata.
    192195
    193196
     
    33403343\begin{tabular}{l|l} \hline
    33413344Metadata key & Purpose \\ \hline
     3345psLib.time.tables.dir   & Time table directory                                             \\
    33423346psLib.time.tables.files & Time table file names (space-delimited)                          \\
    33433347psLib.time.tables.from  & Time tables are valid from these MJDs (vector)                   \\
     
    33603364\begin{verbatim}
    33613365# This configuration file specifies values required for time calculations by psLib.
     3366psLib.time.tables.dir   STR     /home/panstarrs/psLib/config/                   # Directory for time tables
    33623367psLib.time.tables.n     U8      2                                               # Number of time tables
    33633368psLib.time.tables.files STR     bulletinA_09Sep2004.dat eopc01_1900_2004.40.dat # These are the file names
Note: See TracChangeset for help on using the changeset viewer.