Changeset 1788 for trunk/psLib/src/astronomy/psTime.h
- Timestamp:
- Sep 10, 2004, 2:57:31 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astronomy/psTime.h (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psTime.h
r1614 r1788 54 54 * @author Ross Harman, MHPCC 55 55 * 56 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $57 * @date $Date: 2004-0 8-25 01:37:45$56 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 57 * @date $Date: 2004-09-11 00:55:13 $ 58 58 * 59 59 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 68 68 69 69 #include "psType.h" 70 #include "psImage.h" 70 71 71 72 /// @addtogroup Time … … 91 92 typedef struct psTime 92 93 { 93 psS64 sec; ///< Seconds since epoch, Jan 1, 1970.94 psU32 usec; ///< Microseconds since last second.95 psTimeType type; ///< Type of time.94 psS64 sec; ///< Seconds since epoch, Jan 1, 1970. 95 psU32 usec; ///< Microseconds since last second. 96 psTimeType type; ///< Type of time. 96 97 } 97 98 psTime; … … 105 106 */ 106 107 psTime* psTimeGetTime( 107 psTimeType type ///< Type of time to get (UTC or TAI). 108 ); 109 108 psTimeType type ///< Type of time to get (UTC or TAI). 109 ); 110 110 111 111 /** Convert psTime to UTC or TAI time. … … 116 116 */ 117 117 psTime* psTimeConvert( 118 psTime *time, 119 psTimeType type 118 psTime *time, ///< Time to be converted. 119 psTimeType type ///< Type to be converted to. 120 120 ); 121 121 … … 128 128 */ 129 129 double psTimeToLST( 130 psTime *time, ///< psTime to be converted. 131 double longitude ///< Longitude. 132 ); 133 134 /** Convert Local Mean Sidereal Time (LST) to psTime. 135 * 136 * Converts LST time to psTime. 137 * 138 * @return psTime*: Pointer to psTime. 139 */ 140 psTime* psLSTToTime( 141 double time, ///< LST time to be converted. 142 double longitude ///< Longitude. 130 psTime *time, ///< psTime to be converted. 131 double longitude ///< Longitude. 143 132 ); 144 133 … … 150 139 */ 151 140 double psGetUT1Delta( 152 psTime *time ///< psTime to be looked up.141 psTime *time ///< psTime to be looked up. 153 142 ); 154 143 … … 160 149 */ 161 150 double psGetTAIDelta( 162 psTime *time ///< psTime to be looked up.151 psTime *time ///< psTime to be looked up. 163 152 ); 164 153 … … 170 159 */ 171 160 /*psSphere* psGetPoleCoords( 172 psTime *time ///< psTime determine polar orientation.161 psTime *time ///< psTime determine polar orientation. 173 162 );*/ 163 164 /** Calculate the number of leapseconds between two times. 165 * 166 * Calculates the number of leapseconds between two times. 167 * 168 * @return psSphere*: Spherical coordinates of Earth's polar axias. 169 */ 170 psF64 psTimeLeapseconds( 171 const psTime *time1, ///< First input time. 172 const psTime *time2 ///< Second input time. 173 ); 174 174 175 175 /** Convert psTime to Julian date time. … … 215 215 /** Convert psTime to tm time. 216 216 * 217 * Converts psTime to tm time. This function does not add or subtract leapseconds. 217 * Converts psTime to tm time. This function is based on a Perl algorithm availble in the Pan-STARRS Image 218 * processing Algorithm Design Description (ADD). This function does not add or subtract leapseconds. 218 219 * 219 220 * @return tm: tm struct time. … … 250 251 */ 251 252 psTime* psISOToTime( 252 char *time ///< Input time to be converted.253 char *time ///< Input time to be converted. 253 254 ); 254 255 … … 265 266 /** Convert tm time to psTime. 266 267 * 267 * Converts tm time to psTime. This function does not add or subtract leapseconds. 268 * Converts tm time to psTime. This function is based on a Perl algorithm availble in the Pan-STARRS Image 269 * processing Algorithm Design Description (ADD). This function does not add or subtract leapseconds. 268 270 * 269 271 * @return psTime*: time. 270 272 */ 271 273 psTime* psTMToTime( 272 struct tm *time ///< Input time to be converted.274 struct tm *time ///< Input time to be converted. 273 275 ); 274 276 … … 279 281 * @return psTime*: time. 280 282 */ 281 psTime* psT AIAdd(282 psTime *tai1, ///< First TAI time.283 psTime *tai2 ///< Second TAI time.283 psTime* psTimeAdd( 284 psTime *tai1, ///< First TAI time. 285 psTime *tai2 ///< Second TAI time. 284 286 ); 285 287 … … 290 292 * @return psTime*: time. 291 293 */ 292 psTime* psT AISub(293 psTime *tai1, ///< First TAI time.294 psTime *tai2 ///< Second TAI time.294 psTime* psTimeSub( 295 psTime *tai1, ///< First TAI time. 296 psTime *tai2 ///< Second TAI time. 295 297 ); 296 298 … … 302 304 * @return psTime*: time. 303 305 */ 304 psTime* psTAIDelta( 305 psTime *tai1, ///< First TAI time. 306 psTime *tai2 ///< Second TAI time. 306 psTime* psTimeDelta( 307 psTime *tai1, ///< First TAI time. 308 psTime *tai2 ///< Second TAI time. 309 ); 310 311 312 /** Read TAI/UTC data file. 313 * 314 * Reads TAI/UTC data file. 315 * 316 * @return psImage*: Two-dimensional array with table data. 317 */ 318 psImage* readTaiUtcFile( 319 char *fileName ///< Name of file to read. 320 ); 321 322 323 /** Read SER7 data file. 324 * 325 * Reads SER7 data file. 326 * 327 * @return psImage*: Two-dimensional array with table data. 328 */ 329 psImage* readSer7File( 330 char *fileName ///< Name of file to read. 331 ); 332 333 /** Read finals data file. 334 * 335 * Reads finals data file. 336 * 337 * @return psImage*: Two-dimensional array with table data. 338 */ 339 psImage* readFinalsFile( 340 char *fileName ///< Name of file to read. 341 ); 342 343 /** Read EOPC data file. 344 * 345 * Reads EOPC data file. 346 * 347 * @return psImage*: Two-dimensional array with table data. 348 */ 349 psImage* readEopcFile( 350 char *fileName ///< Name of file to read. 351 ); 352 353 /** Lookup and interpolate TAI-UTC data 354 * 355 * Interpolates TAI-UTC data, given time in MJD format. 356 * 357 * @return double: Interpolated value. 358 */ 359 double lookupTaiUtcTable( 360 psImage *table, ///< Table with data. 361 psTime *time ///< time to lookup. 362 ); 363 364 /** Lookup and interpolate polar or UT1-UTC data 365 * 366 * Interpolates TAI-UT1 or polar coordinate data, given time in MJD format. 367 * 368 * @return double: Interpolated value. 369 */ 370 double lookupSer7Table( 371 psImage *table, ///< Table with data. 372 psTime *time, ///< time to lookup. 373 int col ///< Column to lookup. 307 374 ); 308 375 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
