OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
jplint.h
Go to the documentation of this file.
1 
2 
3 #ifndef _JPLINT_
4  #define _JPLINT_
5 
6 /* structure JPLEphemType: contains JPL Planetary Ephemeris data for
7  major bodies in space
8 
9  tjdStart: Start time of ephemeris data in tjd format
10 
11  tjdEnd: End time of ephemeris data in tjd format
12 
13  span: Span of each record
14 
15  au: Astronomical unit
16 
17  emrat: Earth Moon ratio
18 
19  ipt: Start index, # of coeffs, # of sets for each body type
20 
21  coeffs: Ephemeris data
22 */
23 #define MAX_COEFFS 460
24 
25 typedef struct JPLEphemType
26 {
27  double tjdStart;
28  double tjdEnd;
29  double span;
30  double au;
31  double emrat;
32  int ipt[13][3];
33  char pad[4];
34  double coeffs[MAX_COEFFS][826];
35 }JPL_EPHEM_TYPE;
36 
37 
38 /* structure JPLIntUtilType: contains fields formerly placed in 'COMMON'
39  section of JPL Fortran code
40 
41  pvsun: Array containing barycentric position and velocity of the sun
42 
43  list: Array specifying what interpolation is wanted for each body
44 
45  saveBary: Variable saving value of bary field
46 
47  bary: Defines output center. Default is 'False'
48  True(1): Center is solar-system barycenter
49  False(0): Center is sun
50 
51  km: Defines physical units of the output. Default is 'False'
52  True(1): KM and KM/sec
53  False(0): AU and AU/day
54 
55 
56 */
57 
58 typedef struct JPLIntUtilType
59 {
60  double pvsun[6];
61  int list[12];
62  int saveBary;
63  int bary;
64  int km;
65 }JPLINT_UTIL_TYPE;
66 
67 
68 
69 /* Function prototypes
70 */
71 
72  void jplint(double tjdTDB, int target, int center,
73  double *outPosVel, int *error);
74 
75  int state(double tjdTDB, JPLIntUtilType *util, double posvel[13][6],
76  double *pnut);
77 
78  void interp(double *ephemPtr, int startLoc, double *inTime, int numCoefs,
79  int numCom, int numSets, int velFlag, double *posvel);
80 
81  int setJPLPtr(JPLEphemType *inPtr);
82 
83 #endif
84 
void interp(double *ephemPtr, int startLoc, double *inTime, int numCoefs, int numCom, int numSets, int velFlag, double *posvel)
double coeffs[MAX_COEFFS][826]
Definition: jplint.h:34
int ipt[13][3]
Definition: jplint.h:32
double tjdEnd
Definition: jplint.h:28
double emrat
Definition: jplint.h:31
#define MAX_COEFFS
Definition: jplint.h:23
char pad[4]
Definition: jplint.h:33
a context in which it is NOT documented to do so subscript error
Definition: HISTORY.txt:53
int state(double tjdTDB, JPLIntUtilType *util, double posvel[13][6], double *pnut)
double tjdStart
Definition: jplint.h:27
double pvsun[6]
Definition: jplint.h:60
void jplint(double tjdTDB, int target, int center, double *outPosVel, int *error)
double span
Definition: jplint.h:29
int saveBary
Definition: jplint.h:62
def center
Definition: sort_gring.py:68
int list[12]
Definition: jplint.h:61
int setJPLPtr(JPLEphemType *inPtr)
double au
Definition: jplint.h:30