Stellarium 0.15.2
Main Page
Modules
Namespaces
Classes
Coding Style
Scripting
Plugins
File Structure
Files
File List
File Members
src
core
planetsephems
vsop87.h
1
/************************************************************************
2
3
The PLANETARY SOLUTION VSOP87 by Bretagnon P. and Francou G. can be found at
4
ftp://ftp.imcce.fr/pub/ephem/planets/vsop87
5
6
I (Johannes Gajdosik) have just taken the data obtained from above
7
(VSOP87.mer,...,VSOP87.nep) and rearranged it into this piece of software.
8
9
I can neigther allow nor forbid the usage of VSOP87.
10
The copyright notice below covers not the work of Bretagnon P. and Francou G.
11
but just my work, that is the compilation of the VSOP87 data
12
into the software supplied in this file.
13
14
15
Copyright (c) 2006 Johannes Gajdosik
16
17
Permission is hereby granted, free of charge, to any person obtaining a
18
copy of this software and associated documentation files (the "Software"),
19
to deal in the Software without restriction, including without limitation
20
the rights to use, copy, modify, merge, publish, distribute, sublicense,
21
and/or sell copies of the Software, and to permit persons to whom the
22
Software is furnished to do so, subject to the following conditions:
23
24
The above copyright notice and this permission notice shall be included
25
in all copies or substantial portions of the Software.
26
27
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
SOFTWARE.
34
35
This is my implementation of the VSOP87 planetary solution.
36
I tried to optimize for speed by rearranging the terms so that
37
for a given touple of (a[0],a[1],...,a[11]) the values
38
(cos,sin)(a[0]*lambda[0](T)+...a[11]*lambda[11](T))
39
have only to be calculated once.
40
Furthermore I used the addition formulas
41
(cos,sin)(x+y) = ...
42
so that for given T the functions cos and sin have only to be called 12 times.
43
44
****************************************************************/
45
46
47
#ifndef _VSOP87_H_
48
#define _VSOP87_H_
49
50
#ifdef __cplusplus
51
extern
"C"
{
52
#endif
53
54
void
GetVsop87Coor(
double
jd,
int
body,
double
*xyz);
55
/* Return the rectangular coordinates of the given planet
56
and the given julian date jd expressed in dynamical time (TAI+32.184s).
57
The origin of the xyz-coordinates is the center of the sun.
58
The reference frame is "dynamical equinox and ecliptic J2000",
59
which is the reference frame in VSOP87 and VSOP87A.
60
*/
61
62
void
GetVsop87OsculatingCoor(
const
double
jd0,
const
double
jd,
const
int
body,
double
*xyz);
63
/* The oculating orbit of epoch jd0, evaluated at jd, is returned.
64
*/
65
66
#ifdef __cplusplus
67
}
68
#endif
69
70
#endif
Generated on Tue Mar 21 2017 14:15:14 for Stellarium by
1.8.11