forked from Bill-Gray/find_orb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpl_cache.h
36 lines (27 loc) · 1.57 KB
/
pl_cache.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* pl_cache.h: computes and caches planetary positions
SEE PL_CACHE.TXT (and 'pl_cache.cpp') FOR A DISCUSSION OF WHAT
THIS DOES. It probably won't make much sense to you if you don't.
Copyright (C) 2010, Project Pluto
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. */
int planet_posn( const int planet_no, const double jd, double *vect_2000);
int format_jpl_ephemeris_info( char *buff); /* pl_cache.cpp */
int get_jpl_ephemeris_info( int *de_version, double *jd_start, double *jd_end);
#define PLANET_POSN_VELOCITY_FLAG 0x8000
/* Requesting planet 3 gets you the Earth-Moon barycenter. Requesting
planet 10 gets the vector between Earth and Moon. Those are the values
stored in the JPL ephemerides, but it can be useful to say, "just gimme
the vector from the sun to the earth" or "from the sun to the moon". So
these values can be fed to planet_posn() in such cases. */
#define PLANET_POSN_EARTH 20
#define PLANET_POSN_MOON 21