![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
00001 /************************************************************************ 00002 00003 The TASS 1.7 theory of the Saturnian satellites including HYPERION 00004 by Alain VIENNE and Luc DURIEZ can be found at 00005 ftp://ftp.imcce.fr/pub/ephem/satel/tass17 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 TASS 1.7 theory. 00011 The copyright notice below covers not the work of Alain VIENNE and Luc DURIEZ 00012 but just my work, that is the compilation of the TASS 1.7 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 TASS 1.7 theory. 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-2444240 00042 for all satellites (including hyperion) 00043 5) do not calculate a satellites "rmu" at runtime but beforehand 00044 6) use a rotation matrix for Transformation to J2000 00045 instead of AIA, OMA and inclination of earth axis 00046 7) exchange indices of hyperion and iapetus 00047 8) calculate the orbital elements not for every new jd but rather reuse 00048 the previousely calculated elements if possible 00049 00050 ****************************************************************/ 00051 00052 00053 #ifndef _TASS17_H_ 00054 #define _TASS17_H_ 00055 00056 #ifdef __cplusplus 00057 extern "C" { 00058 #endif 00059 00060 #define TASS17_MIMAS 0 00061 #define TASS17_ENCELADUS 1 00062 #define TASS17_TETHYS 2 00063 #define TASS17_DIONE 3 00064 #define TASS17_RHEA 4 00065 #define TASS17_TITAN 5 00066 #define TASS17_HYPERION 7 00067 #define TASS17_IAPETUS 6 00068 00069 void GetTass17Coor(double jd,int body,double *xyz); 00070 void GetTass17OsculatingCoor(double jd0,double jd,int body,double *xyz); 00071 00072 #ifdef __cplusplus 00073 } 00074 #endif 00075 00076 #endif