Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
defines.h
Go to the documentation of this file.
1 #ifndef DEFINES_H
2 
3 #define DEFINES_H
4 
5 #define MG_DIAMETER (10.00)
6 #define MG_SUB_DIA (0.686)
7 #define MG_SURFACE_RMS (25.00)
8 #define MG_BLOCKAGE (0.968)
9 #define MG_TAPER (12.00)
10 #define MG_JANSKY_FACTOR (43.73)
11 #define MG_J_FACTOR (35.16)
12 
13 #define KP_DIAMETER (12.00)
14 #define KP_SUB_DIA (0.750)
15 #define KP_SURFACE_RMS (55.00) /* was 65 */ /* As per Nick - 2016/01/06 */
16 #define KP_BLOCKAGE (0.970)
17 #define KP_TAPER (12.00) /* 10.4, 10.0 Measured Jan-05-2016; twf/glauria */
18 #define KP_JANSKY_FACTOR (30.72)
19 #define KP_J_FACTOR (24.42)
20 
21 #define SWITCHED 1
22 #define AVERAGE 2
23 #define DATASPREAD 0.000001
24 
25 #ifndef CTR
26 #define CTR 0.017453292
27 #endif
28 
29 #define GNUPLOT 1
30 #define PSPLOT 2
31 
32 #define CONTMAP 64
33 
34 #define MAX_IMAGES 10
35 #define MAX_ENV 16
36 #define MAX_TRACES 16
37 #define MAX_SCANS 16384
38 #define MAX_CHANS (16384*2)
39 #define MAX_IGNORED 256
40 #define MAX_TOKENS 256
41 #define MAX_BEAMS 4
42 #define MAX_BASELINES 64
43 #define MAX_BAD_CHANS 512
44 #define MAX_SPEC_FOCUS 16 /* Maximum number of focus position for spec focus */
45 
46 #define LINEAR_BASELINE_SMOOTHING 0
47 #define POLY_BASELINE_SMOOTHING 1
48 
49 #define CALMODE_NONE 0
50 #define CALMODE_CALSCALE 1
51 #define CALMODE_BEAMEFF 2
52 #define CALMODE_TELE_EFF 3
53 
54 #define INTEGER 1
55 #define FLOAT 2
56 #define DOUBLE 3
57 #define CHARSTAR 4
58 
59 #define CHECK_SOURCE (1<<0)
60 #define CHECK_SCANS (1<<1)
61 #define CHECK_DATE (1<<2)
62 #define CHECK_BKEND (1<<3)
63 #define CHECK_FREQ (1<<4)
64 #define CHECK_ALL (CHECK_SOURCE | CHECK_SCANS | CHECK_DATE | CHECK_BKEND | CHECK_FREQ)
65 
66 #define VERBOSE_PARSE 1
67 #define VERBOSE_CALIBRATE 2
68 #define VERBOSE_CRITIRIA 4
69 #define VERBOSE_COMM 8
70 #define VERBOSE_FBOFFSET 16
71 #define VERBOSE_BASELINES 32
72 #define VERBOSE_STATS 64
73 #define VERBOSE_RECURSIVE 128
74 #define VERBOSE_BATCH 256
75 #define VERBOSE_ALIAS 512
76 #define VERBOSE_FILEOPS 1024
77 #define VERBOSE_GRIDMAP 2048
78 #define VERBOSE_FLAGS 4096
79 #define VERBOSE_ATM 8192
80 
81 #define VERBOSE_ALL (VERBOSE_PARSE | VERBOSE_CALIBRATE | VERBOSE_CRITIRIA | VERBOSE_COMM | VERBOSE_FBOFFSET | VERBOSE_BASELINES | VERBOSE_STATS | VERBOSE_RECURSIVE | VERBOSE_BATCH | VERBOSE_ALIAS | VERBOSE_FILEOPS | VERBOSE_GRIDMAP | VERBOSE_FLAGS | VERBOSE_ATM)
82 
83 /* Program can be in one of three modes */
84 #define MODE_NOT_SET 0
85 #define MODE_ALL 0
86 #define MODE_CONT 1
87 #define MODE_SPEC 2
88 #define MODE_OTF 3
89 
90 #define MODE_FLUX 4 /* MODE's from here on are to flag the xgraphic program */
91 #define MODE_FLUX_HISTORY 5 /* on what's coming in the image struct */
92 #define MODE_XCOR 6 /* Cross Correlation mode */
93 
94 /* X-Axis can be plotted in one of the following */
95 #define XMODE_FREQ 0
96 #define XMODE_VEL 1
97 #define XMODE_CHAN 2
98 
99 /* Plotting styles */
100 #define PLOT_STYLE_HISTO 0
101 #define PLOT_STYLE_LINES 1
102 #define PLOT_STYLE_POINTS 2
103 #define PLOT_STYLE_LINEPTS 3
104 
105 /* Y-Axis Scale */
106 #define Y_AUTO_SCALE 0
107 #define Y_FIXED_SCALE 1
108 
109 /* Y-Axis Plotting Mode */
110 #define LINEAR_PLOT 0
111 #define LOG_PLOT 1
112 
113 /* Plotting Grid Mode */
114 #define GRID_MODE_NONE 0
115 #define GRID_MODE_X_ONLY 1
116 #define GRID_MODE_Y_ONLY 2
117 #define GRID_MODE_FULL 3
118 
119 #define MAX_FILTER_SEGS 64
120 
121 #define BKMATCH_FEED 0
122 #define BKMATCH_RESOLUTION 1
123 #define BKMATCH_NAME 2
124 #define BKMATCH_NAMERES 3
125 
126 #define SPEED_OF_LIGHT (299792458.0)
127 #define SPEED_OF_LIGHT_COAX ((1.0 / sqrt(2.2)) * SPEED_OF_LIGHT)
128 
129 #define SITE_NONE 0
130 #define SITE_KITT_PEAK 1
131 #define SITE_MT_GRAHAM 2
132 #define SITE_TUCSON 3
133 
134 #define SEND_PLAIN 1
135 #define SEND_SPTIP 2
136 
137 #define OFFS 0
138 #define ONS 1
139 
140 #define DATA_FILE 0
141 #define GAINS_FILE 1
142 
143 #define MAX_STACK 2048
144 
145 #define READ_HISTORY 1
146 #define WRITE_HISTORY 2
147 
148 #define MAX_SOURCE_LIST 1024
149 
150 #define MAX_PARSE_STACK 16
151 
152 #define READ_REVERSE 0
153 #define READ_FORWARD 1
154 
155 /* which plot was last */
156 #define LAST_PLOT_SPEC_ACCUM 1
157 #define LAST_PLOT_SPEC_FFT 2
158 #define LAST_PLOT_SPEC_HISTO 3
159 
160 #define LAST_PLOT_CONT_ACCUM 4
161 #define LAST_PLOT_CONT_PLAIN 5
162 #define LAST_PLOT_CONT_SPTIP 6
163 #define LAST_PLOT_CONT_OBJECT 7
164 
165 #define LAST_PLOT_FLUX_INFO 8
166 #define LAST_PLOT_FLUX_HISTORY 9
167 
168 #define LAST_PLOT_OTF_CUT 10
169 
170 #define BOGUS_TSYS_VALUE (10000.0)
171 #define BOGUS_TCAL_VALUE (2000.0)
172 
173 #endif
174