Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

planetsephems/marssat.h

00001 /************************************************************************
00002 
00003 The Ephemerides of the Martian satellites
00004 (adjustement from 1877 to 2005, Version 1.0)
00005 by Valery Lainey can be obtained from Valery Lainey: 
00006 
00007                V.Lainey (Lainey@oma.be)
00008 ROB- 3, Avenue Circulaire, B-1180 Bruxelles (Belgium)
00009 IMCCE - 77, Avenue Denfert-Rochereau 75014 Paris (France)
00010 
00011 -----------------------------------------------------------------------
00012 
00013 I (Johannes Gajdosik) have just taken Valery Laineys Fortran code,
00014 MarsSatV1-0.f, which he kindly supplied, and rearranged it into
00015 this piece of software.
00016 
00017 I can neigther allow nor forbid the usage of Valery Laineys
00018 Ephemerides of the Martian satellites.
00019 The copyright notice below covers not the work of Valery Lainey
00020 but just my work, that is the compilation of Valery Laineys
00021 Ephemerides of the Martian satellites into the software supplied in this file.
00022 
00023 
00024 Copyright (c) 2006 Johannes Gajdosik
00025 
00026 Permission is hereby granted, free of charge, to any person obtaining a
00027 copy of this software and associated documentation files (the "Software"),
00028 to deal in the Software without restriction, including without limitation
00029 the rights to use, copy, modify, merge, publish, distribute, sublicense,
00030 and/or sell copies of the Software, and to permit persons to whom the
00031 Software is furnished to do so, subject to the following conditions:
00032 
00033 The above copyright notice and this permission notice shall be included
00034 in all copies or substantial portions of the Software.
00035 
00036 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00037 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00038 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
00039 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00040 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00041 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
00042 SOFTWARE.
00043 
00044 My modifications to the "Ephemerides of the Martian satellites" as implemented
00045 in MarsSatV1-0.f are
00046 1) do not calculate constant terms at runtime but beforehand
00047 2) unite terms with the same frequencies
00048 
00049 ****************************************************************/
00050 
00051 #ifndef _MARS_SAT_H_
00052 #define _MARS_SAT_H_
00053 
00054 #ifdef __cplusplus
00055 extern "C" {
00056 #endif
00057 
00058 #define MARS_SAT_PHOBOS 0
00059 #define MARS_SAT_DEIMOS 1
00060 
00061 void GetMarsSatCoor(double jd,int body,double *xyz);
00062   /* Return the rectangular coordinates of the given satellite
00063      and the given julian date jd expressed in dynamical time (TAI+32.184s).
00064      The origin of the xyz-coordinates is the center of the planet.
00065      The reference frame is "dynamical equinox and ecliptic J2000",
00066      which is the reference frame in VSOP87 and VSOP87A.
00067   */
00068 
00069 void GetMarsSatOsculatingCoor(double jd0,double jd,int body,double *xyz);
00070   /* The oculating orbit of epoch jd0, evatuated at jd, is returned.
00071   */
00072 
00073 #ifdef __cplusplus
00074 }
00075 #endif
00076 
00077 #endif

Generated on Mon Mar 22 09:55:38 2010 for Stellarium by  doxygen 1.5.5