IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1774


Ignore:
Timestamp:
Sep 9, 2004, 3:05:41 PM (22 years ago)
Author:
Paul Price
Message:

Adding psTimeTable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psTime.h

    r1587 r1774  
    7878psF64 psTimeDelta(const psTime *time1, const psTime *time2);
    7979
     80// A table of UT1-UTC and polar coordinates
     81typedef struct {
     82    const char *filename;               // Filename of time table
     83    const psF64 validFrom, validTo;     // MJDs of validity of time table
     84    bool loaded;                        // Has the table been loaded?
     85    psVector *mjd;                      // MJD data, type is psF64
     86    psVector *dut;                      // delta UT = UT1 - UTC data
     87    psVector *xp, *yp;                  // Polar motion data
     88} psTimeTable;
     89
     90// Constructor --- don't load
     91psTimeTable *psTimeTableAlloc(const char *filename, // Filename of time table
     92                              psF64 validFrom,  // The time table is valid from this MJD
     93                              psF64 validTo // The time table is valid to this MJD
     94                              );
     95
     96// Load a time table, return true for success
     97bool psTimeTableLoad(psTimeTable *table // Time table to load
     98                     );
     99
     100// Interpolate on a table, return true if given MJD is within the given range
     101bool psTimeTableInterpolate(const psTimeTable *table, // Table to interpolate on
     102                            double *xp, // Output x_p, or NULL
     103                            double *yp, // Output y_p, or NULL
     104                            double *dut,// Output UT1-UTC, or NULL
     105                            psF64 mjd   // MJD at which to interpolate
     106                            );
     107
     108// Time tables
     109static psArray *timeTables;
     110// Time configuration
     111static psMetadata *timeConfig;
     112
    80113#endif
Note: See TracChangeset for help on using the changeset viewer.