Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
planets.h
Go to the documentation of this file.
1 
2 #ifndef EPHEM_H
3 #define EPHEM_H
4 
5 #define MERCURY 0
6 #define VENUS 1
7 #define MARS 2
8 #define JUPITER 3
9 #define SATURN 4
10 #define URANUS 5
11 #define NEPTUNE 6
12 #define MOON 7
13 #define MAX_PLANETS 8
14 
15 #define H 6.626e-34 /* Planck's constant */
16 #define K 1.381e-23 /* Boltzmann's constant */
17 #define C 0.299792458 /* speed of light (m/ns) */
18 #define LN2 0.693147181 /* ln(2.0) */
19 #define CMB 2.725 /* Cosmic Microwave Bkgd */
20 #define R0 1.524 /* Mars mean heliocentric distance */
21 #define T_R0 206.8 /* Mars temp at R0 */
22 #define P 29.530589 /* Period of Moon */
23 
24 
25 #define MAX_VENUS_ENTRIES 170
26 #define MAX_MARS_ENTRIES 16
27 #define MAX_JUPITER_ENTRIES 4750
28 #define MAX_URANUS_ENTRIES 270
29 #define MAX_NEPTUNE_ENTRIES 800
30 #define MAX_VESTA_ENTRIES 64
31 
32 struct TBRIGHT {
33  float freq;
34  float tb;
35 };
36 
37 
38 struct EPH_TIME {
39  int year;
40  int mon;
41  int day;
42  int hour;
43  int min;
44  int pad;
45 };
46 
47 
48 struct EPH_STATE {
49  double f_sky; // sky frequency (GHz)
50  double rej; // rejection (dB)
51  double T_ant; // antenna temperature TA* (K)
52  double ta_s; // antenna temperature std dev (+/-)
53  double eta_mb; // main-beam efficiency
54  double err; // main-beam efficiency uncertainty
55  double lambda;
56  double theta_mb; // Telescope main beam FWHM
57 };
58 
59 
60 
61 struct EPH_OBJECT {
62  char name[80];
63  char dbase[32]; /* Database source */
64  double ra; /* Right Accension */
65  double dec; /* Declination */
66  double illum; /* % of illumination as seen from Earth */
67  double dmajor; /* Arcsec of diameter */
68  double dminor; /* Arcsec of diameter */
69  double sdist; /* AU from Sun */
70  double rdot; /* ??? */
71  double dist; /* Object distance from Earth */
72  double vel; /* Object Velocity reletive to Earth */
73  double sangle; /* Angle between Sun and Object */
74  double tsrc; // Source temperature (K)
75  double trj; // planet diameter (arcsec)
76  double flux; // planet flux
77  double flux2; // planet flux, different method
78  double tmb; // Temperature in the main beam
79  double csize; // Planet convoled size with beam
80  double frac; // Fractional time between lines of Ephem tables
81 };
82 
83 
84 struct NEW_EPHEM {
85  int planet;
86  struct EPH_STATE state;
87  struct EPH_TIME time;
89 };
90 
91 
92 #endif
double rdot
Definition: planets.h:70
double tmb
Definition: planets.h:78
double dminor
Definition: planets.h:68
#define MAX_PLANETS
Definition: planets.h:13
int year
Definition: planets.h:39
double dist
Definition: planets.h:71
double f_sky
Definition: planets.h:49
int mon
Definition: planets.h:40
int day
Definition: planets.h:41
double tsrc
Definition: planets.h:74
struct EPH_OBJECT planets[MAX_PLANETS]
Definition: planets.h:88
double illum
Definition: planets.h:66
double sdist
Definition: planets.h:69
double csize
Definition: planets.h:79
float freq
Definition: planets.h:33
char dbase[32]
Definition: planets.h:63
double flux2
Definition: planets.h:77
double rej
Definition: planets.h:50
double trj
Definition: planets.h:75
double eta_mb
Definition: planets.h:53
double theta_mb
Definition: planets.h:56
double dec
Definition: planets.h:65
double ta_s
Definition: planets.h:52
double frac
Definition: planets.h:80
double err
Definition: planets.h:54
double vel
Definition: planets.h:72
int hour
Definition: planets.h:42
char name[80]
Definition: planets.h:62
int planet
Definition: planets.h:85
float tb
Definition: planets.h:34
double lambda
Definition: planets.h:55
int pad
Definition: planets.h:44
struct EPH_STATE state
Definition: planets.h:86
double ra
Definition: planets.h:64
struct EPH_TIME time
Definition: planets.h:87
double dmajor
Definition: planets.h:67
int min
Definition: planets.h:43
double T_ant
Definition: planets.h:51
double sangle
Definition: planets.h:73
double flux
Definition: planets.h:76