![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
00001 /************************************************************************ 00002 00003 The L1 theory of the galilean satellites 00004 by Valery Lainey can be found at 00005 ftp://ftp.imcce.fr/pub/ephem/satel/galilean/L1 00006 00007 I (Johannes Gajdosik) have just taken the Fortran code and data 00008 obtained from above and rearranged it into this piece of software. 00009 00010 I can neigther allow nor forbid the usage of the L1 theory. 00011 The copyright notice below covers not the work of Valery Lainey 00012 but just my work, that is the compilation of the L1 theory 00013 into the software supplied in this file. 00014 00015 00016 Copyright (c) 2005 Johannes Gajdosik 00017 00018 Permission is hereby granted, free of charge, to any person obtaining a 00019 copy of this software and associated documentation files (the "Software"), 00020 to deal in the Software without restriction, including without limitation 00021 the rights to use, copy, modify, merge, publish, distribute, sublicense, 00022 and/or sell copies of the Software, and to permit persons to whom the 00023 Software is furnished to do so, subject to the following conditions: 00024 00025 The above copyright notice and this permission notice shall be included 00026 in all copies or substantial portions of the Software. 00027 00028 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00029 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00030 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00031 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00032 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00033 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00034 SOFTWARE. 00035 00036 This is an implementation of the L1 theory, V1.1. 00037 My modifications are: 00038 1) do not calculate constant terms at runtime but beforehand 00039 2) unite terms with the same frequencies 00040 3) rearrange the terms so that calculation of the argument becomes easier 00041 4) substitute so that the independent variable becomes T=jd-2433282.5 00042 5) artificially blend out the usage of polynomials outside [-695+t0,695+t0] 00043 in order to avoid a discontinuity 00044 00045 ****************************************************************/ 00046 00047 #ifndef _L1_H_ 00048 #define _L1_H_ 00049 00050 #ifdef __cplusplus 00051 extern "C" { 00052 #endif 00053 00054 #define L1_IO 0 00055 #define L1_EUROPA 1 00056 #define L1_GANYMEDE 2 00057 #define L1_CALLISTO 3 00058 00059 void GetL1Coor(double jd,int body,double *xyz); 00060 /* Return the rectangular coordinates of the given satellite 00061 and the given julian date jd expressed in dynamical time (TAI+32.184s). 00062 The origin of the xyz-coordinates is the center of the planet. 00063 The reference frame is "dynamical equinox and ecliptic J2000", 00064 which is the reference frame in VSOP87 and VSOP87A. 00065 */ 00066 00067 void GetL1OsculatingCoor(double jd0,double jd,int body,double *xyz); 00068 /* The oculating orbit of epoch jd0, evatuated at jd, is returned. 00069 */ 00070 00071 00072 #ifdef __cplusplus 00073 } 00074 #endif 00075 00076 #endif