File: pl_cache.h

package info (click to toggle)
pluto-find-orb 0.0~git20180227-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,668 kB
  • sloc: cpp: 30,743; makefile: 263
file content (36 lines) | stat: -rw-r--r-- 1,605 bytes parent folder | download
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