~ubuntu-branches/ubuntu/precise/stellarium/precise

« back to all changes in this revision

Viewing changes to src/stellplanet/marssat.h

  • Committer: Bazaar Package Importer
  • Author(s): Cédric Delfosse
  • Date: 2008-05-19 21:28:23 UTC
  • mfrom: (3.1.5 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080519212823-m5nfiuntxstxzxj7
Tags: 0.9.1-4
Add libxcursor-dev, libxfixes-dev, libxinerama-dev, libqt4-opengl-dev to
build-deps (Closes: #479906)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/************************************************************************
2
 
 
3
 
The Ephemerides of the Martian satellites
4
 
(adjustement from 1877 to 2005, Version 1.0)
5
 
by Valery Lainey can be obtained from Valery Lainey: 
6
 
 
7
 
               V.Lainey (Lainey@oma.be)
8
 
ROB- 3, Avenue Circulaire, B-1180 Bruxelles (Belgium)
9
 
IMCCE - 77, Avenue Denfert-Rochereau 75014 Paris (France)
10
 
 
11
 
-----------------------------------------------------------------------
12
 
 
13
 
I (Johannes Gajdosik) have just taken Valery Laineys Fortran code,
14
 
MarsSatV1-0.f, which he kindly supplied, and rearranged it into
15
 
this piece of software.
16
 
 
17
 
I can neigther allow nor forbid the usage of Valery Laineys
18
 
Ephemerides of the Martian satellites.
19
 
The copyright notice below covers not the work of Valery Lainey
20
 
but just my work, that is the compilation of Valery Laineys
21
 
Ephemerides of the Martian satellites into the software supplied in this file.
22
 
 
23
 
 
24
 
Copyright (c) 2006 Johannes Gajdosik
25
 
 
26
 
Permission is hereby granted, free of charge, to any person obtaining a
27
 
copy of this software and associated documentation files (the "Software"),
28
 
to deal in the Software without restriction, including without limitation
29
 
the rights to use, copy, modify, merge, publish, distribute, sublicense,
30
 
and/or sell copies of the Software, and to permit persons to whom the
31
 
Software is furnished to do so, subject to the following conditions:
32
 
 
33
 
The above copyright notice and this permission notice shall be included
34
 
in all copies or substantial portions of the Software.
35
 
 
36
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37
 
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38
 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
39
 
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40
 
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41
 
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
42
 
SOFTWARE.
43
 
 
44
 
My modifications to the "Ephemerides of the Martian satellites" as implemented
45
 
in MarsSatV1-0.f are
46
 
1) do not calculate constant terms at runtime but beforehand
47
 
2) unite terms with the same frequencies
48
 
 
49
 
****************************************************************/
50
 
 
51
 
#ifndef _MARS_SAT_H_
52
 
#define _MARS_SAT_H_
53
 
 
54
 
#ifdef __cplusplus
55
 
extern "C" {
56
 
#endif
57
 
 
58
 
#define MARS_SAT_PHOBOS 0
59
 
#define MARS_SAT_DEIMOS 1
60
 
 
61
 
void GetMarsSatCoor(double jd,int body,double *xyz);
62
 
  /* Return the rectangular coordinates of the given satellite
63
 
     and the given julian date jd expressed in dynamical time (TAI+32.184s).
64
 
     The origin of the xyz-coordinates is the center of the planet.
65
 
     The reference frame is "dynamical equinox and ecliptic J2000",
66
 
     which is the reference frame in VSOP87 and VSOP87A.
67
 
  */
68
 
 
69
 
#ifdef __cplusplus
70
 
}
71
 
#endif
72
 
 
73
 
#endif