1 /* 2 * - - - - - - - - - - - 3 * g a l _ t a i 2 t t 4 * - - - - - - - - - - - 5 * 6 * This routine is part of the General Astrodynamics Library 7 * 8 * Description: 9 * 10 * This routine converts a TAI jd date to a TT jd date. 11 * 12 * Status: 13 * 14 * support routine. 15 * 16 * Given: 17 * 18 * tai1 d TAI date part 1 ( see Note 1 ) 19 * tai2 d TAI date part 2 ( see Note 1 ) 20 * 21 * Returned: 22 * 23 * *tt1 d TT date part 1 ( see Note 1 ) 24 * *tt2 d TT date part 2 ( see Note 1 ) 25 * 26 * Notes: 27 * 28 * 1) The Julian Date is apportioned in any convenient way between 29 * the arguments tai1 and tai2. For example, JD=2450123.7 could 30 * be expressed in any of these ways, among others: 31 * 32 * tai1 tai2 33 * 34 * 2450123.7 0.0 (JD method) 35 * 2451545.0 -1421.3 (J2000 method) 36 * 2400000.5 50123.2 (MJD method) 37 * 2450123.5 0.2 (date & time method) 38 * 39 * References: 40 * 41 * Explantory Supplement to the Astronomical Supplement 42 * Seidelmann P. Kenneth 1992 43 * Pages 47-48 44 * 45 * This revision: 46 * 47 * 2008 April 13 48 * 49 * Copyright (C) 2008 Paul C. L. Willmott. See notes at end. 50 * 51 *----------------------------------------------------------------------- 52 */ 53 54 #ifndef _GAL_TAI2TT_H_ 55 #define _GAL_TAI2TT_H_ 1 56 57 #undef __BEGIN_DECLS 58 #undef __END_DECLS 59 #ifdef __cplusplus 60 #define __BEGIN_DECLS extern "C" { 61 #define __END_DECLS } 62 #else 63 #define __BEGIN_DECLS /* empty */ 64 #define __END_DECLS /* empty */ 65 #endif 66 67 __BEGIN_DECLS 68 69 void 70 gal_tai2tt 71 ( 72 double tai1, 73 double tai2, 74 double *tt1, 75 double *tt2 76 ) ; 77 78 __END_DECLS 79 80 #endif /* !_GAL_TAI2TT_H_ */ 81 82 /* 83 * gal - General Astrodynamics Library 84 * Copyright (C) 2008 Paul C. L. Willmott 85 * 86 * This program is free software; you can redistribute it and/or modify 87 * it under the terms of the GNU General Public License as published by 88 * the Free Software Foundation; either version 2 of the License, or 89 * (at your option) any later version. 90 * 91 * This program is distributed in the hope that it will be useful, 92 * but WITHOUT ANY WARRANTY; without even the implied warranty of 93 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 94 * GNU General Public License for more details. 95 * 96 * You should have received a copy of the GNU General Public License along 97 * with this program; if not, write to the Free Software Foundation, Inc., 98 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 99 * 100 * Contact: 101 * 102 * Paul Willmott 103 * vp9mu@amsat.org 104 */ 105