Changeset 1774 for trunk/archive/pslib/include/psTime.h
- Timestamp:
- Sep 9, 2004, 3:05:41 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psTime.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psTime.h
r1587 r1774 78 78 psF64 psTimeDelta(const psTime *time1, const psTime *time2); 79 79 80 // A table of UT1-UTC and polar coordinates 81 typedef 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 91 psTimeTable *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 97 bool psTimeTableLoad(psTimeTable *table // Time table to load 98 ); 99 100 // Interpolate on a table, return true if given MJD is within the given range 101 bool 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 109 static psArray *timeTables; 110 // Time configuration 111 static psMetadata *timeConfig; 112 80 113 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
