Stellarium 0.12.3
Main Page
Namespaces
Classes
Coding Style
Scripting
Plugins
Renderer
File Structure
File List
File Members
core
planetsephems
l1.h
1
/************************************************************************
2
3
The L1 theory of the galilean satellites
4
by Valery Lainey can be found at
5
ftp://ftp.imcce.fr/pub/ephem/satel/galilean/L1
6
7
I (Johannes Gajdosik) have just taken the Fortran code and data
8
obtained from above and rearranged it into this piece of software.
9
10
I can neigther allow nor forbid the usage of the L1 theory.
11
The copyright notice below covers not the work of Valery Lainey
12
but just my work, that is the compilation of the L1 theory
13
into the software supplied in this file.
14
15
16
Copyright (c) 2005 Johannes Gajdosik
17
18
Permission is hereby granted, free of charge, to any person obtaining a
19
copy of this software and associated documentation files (the "Software"),
20
to deal in the Software without restriction, including without limitation
21
the rights to use, copy, modify, merge, publish, distribute, sublicense,
22
and/or sell copies of the Software, and to permit persons to whom the
23
Software is furnished to do so, subject to the following conditions:
24
25
The above copyright notice and this permission notice shall be included
26
in all copies or substantial portions of the Software.
27
28
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
31
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
SOFTWARE.
35
36
This is an implementation of the L1 theory, V1.1.
37
My modifications are:
38
1) do not calculate constant terms at runtime but beforehand
39
2) unite terms with the same frequencies
40
3) rearrange the terms so that calculation of the argument becomes easier
41
4) substitute so that the independent variable becomes T=jd-2433282.5
42
5) artificially blend out the usage of polynomials outside [-695+t0,695+t0]
43
in order to avoid a discontinuity
44
45
****************************************************************/
46
47
#ifndef _L1_H_
48
#define _L1_H_
49
50
#ifdef __cplusplus
51
extern
"C"
{
52
#endif
53
54
#define L1_IO 0
55
#define L1_EUROPA 1
56
#define L1_GANYMEDE 2
57
#define L1_CALLISTO 3
58
59
void
GetL1Coor(
double
jd,
int
body,
double
*xyz);
60
/* Return the rectangular coordinates of the given satellite
61
and the given julian date jd expressed in dynamical time (TAI+32.184s).
62
The origin of the xyz-coordinates is the center of the planet.
63
The reference frame is "dynamical equinox and ecliptic J2000",
64
which is the reference frame in VSOP87 and VSOP87A.
65
*/
66
67
void
GetL1OsculatingCoor(
const
double
jd0,
const
double
jd,
const
int
body,
double
*xyz);
68
69
/* The oculating orbit of epoch jd0, evatuated at jd, is returned.
70
*/
71
72
73
#ifdef __cplusplus
74
}
75
#endif
76
77
#endif
Generated on Sat Aug 10 2013 17:12:44 for Stellarium by
1.8.3.1