Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
otf.h
Go to the documentation of this file.
1 #ifndef OTF_H
2 #define OTF_H
3 
4 #define OTFAUTO 0
5 #define OTFTIME 1
6 #define OTFRA 2
7 #define OTFDEC 3
8 #define OTFAZ 4
9 #define OTFEL 5
10 
11 #define NORMAL_MAP 1
12 #define INTERP 2
13 #define CHANNEL_MAP 3
14 
15 #define LOAD_PREVIEW 1
16 #define LOAD_STEP 2
17 #define LOAD_FAST 3
18 
19 #define OTFPLOTXB 0.09 /* was 0.11 */
20 #define OTFPLOTXE 0.995
21 #define OTFPLOTYB 0.18 /* was .18 */
22 #define OTFPLOTYE 0.995
23 
24 #ifndef USE_210x210_WORK_ARRAY
25 
26 #define WORK_ARRAY_X 210
27 #define WORK_ARRAY_X_CENT 100
28 #define WORK_ARRAY_X_M -100
29 #define WORK_ARRAY_X_P 100
30 
31 #define WORK_ARRAY_Y 210
32 #define WORK_ARRAY_Y_CENT 100
33 #define WORK_ARRAY_Y_M -100
34 #define WORK_ARRAY_Y_P 100
35 
36 #else
37 
38 #define WORK_ARRAY_X 1010
39 #define WORK_ARRAY_X_CENT 500
40 #define WORK_ARRAY_X_M -500
41 #define WORK_ARRAY_X_P 500
42 
43 #define WORK_ARRAY_Y 32
44 #define WORK_ARRAY_Y_CENT 14
45 #define WORK_ARRAY_Y_M -14
46 #define WORK_ARRAY_Y_P 14
47 
48 #endif
49 
50 
51 #define PLOT_INT_INTENSITY 0
52 #define PLOT_RMS 1
53 #define PLOT_TSYS 2
54 #define PLOT_TIME 3
55 
56 
57  /* struct sent to specdata to plot the current scan */
58 struct SPECDATA {
59  char magic[16];
60 
61  char datafile[256];
62  char gainsfile[256];
63 
64  int scanno;
65  int feed;
66 
67  int bchan;
68  int echan;
69 
70  int bline;
72 
75 
77  int arrayNum;
78 
79  int cols;
80  int rows;
81 
82  double nyquistRa;
83  double nyquistDec;
84 };
85 
86 
87 
88 struct SCAN_HEADERS {
89  int ver;
90  float scan;
91 
92  struct HEADER head;
93 
94  struct SCAN_HEADERS *next;
95 };
96 
97 
98 struct MAP_SCANS {
99  int ver;
100  float scan;
101 
102  struct MAP_SCANS *next;
103 };
104 
105 struct OTF_GRID {
106  int shade;
107  int oldshade;
108  int set;
109  int col;
110  int row;
111  int artificial; /* cell that's be synthizied from surounding data */
112  int bdirty; /* Data dirty, so compute baselines */
113  int ddirty; /* Data dirty, so compute new shade */
114  int version[8];
115 
116  float scanct;
117  float plotVal1;
118  float plotVal2;
119  float intInten;
120  float kms;
121  float rms;
122  float *chans;
123  float a;
124  float b;
125  float bscan;
126  float escan;
127  float time;
128 
129  float tsys;
130  float wt;
131 
132  char source[32];
133 
134  struct HEADER *head;
135 
136  struct OTF_GRID *next;
137 };
138 
139 
140 struct GRID_ACCUM {
141  int col;
142  int row;
143  int n;
144 
145  double *chans;
146  double wt;
147 };
148 
149 
150 struct OTF_STRUCT {
153  int cutoff;
154  int lockGrid;
156  int bins;
157  int plots;
159  int arrayNum;
163  int noPlot;
164  int newShade;
167  int col;
168  int row;
169  int cols;
170  int rows;
171  int noint;
173  int int_chans[2];
193 
198 
201 
202  int whichPlot; /* What to plot: Inten, tsys, rms, time, etc */
203 
204  int bdirty; /* One or more baselines needs calc by Baseline thread */
205  int ddirty; /* One or more integration values needs calc by intensity thread */
206 
207  int baselines[8];
208 
210 
211  float scaleFactor;
212  float gamma;
213  float IFNumber;
214  float nyquistRa;
215  float nyquistDec;
216  float valueMin;
217  float valueMax;
218  float *ondata;
219  float *offdata;
220  float *gainsdata;
221  float plotxb;
222  float plotyb;
223  float plotxe;
224  float plotye;
226 
227  float manMapRa;
228  float manMapDec;
229  float manMapWidth;
234  float freqres;
235  float restfreq;
236  float velocity;
237  float xsource;
238  float ysource;
239  float beamRa;
240  float beamDec;
241 
242  char peakStr[80];
243 
245  struct OTF_GRID **gridArray;
246  struct HEADER *head;
247  XImage *ximage;
248 };
249 
250 #ifdef DEFINE_OTF_STRUCT
251 struct OTF_STRUCT otf;
252 #else
253 extern struct OTF_STRUCT otf;
254 #endif
255 
256 #endif
float valueMax
Definition: otf.h:217
float plotxe
Definition: otf.h:223
int scanno
Definition: otf.h:64
int regionshow
Definition: otf.h:188
int singleChan
Definition: otf.h:158
float beamRa
Definition: otf.h:239
float scaleFactor
Definition: otf.h:211
float xsource
Definition: otf.h:237
float plotVal1
Definition: otf.h:117
int debugSpectra
Definition: otf.h:161
int armBeamLocation
Definition: otf.h:192
float beamDec
Definition: otf.h:240
float manMapDec
Definition: otf.h:228
int bline
Definition: otf.h:70
float wt
Definition: otf.h:130
float manNyquistRa
Definition: otf.h:231
Definition: otf.h:98
int colorChoice
Definition: otf.h:181
int cutoff
Definition: otf.h:153
int chanSelOTF
Definition: otf.h:183
float a
Definition: otf.h:123
int artificial
Definition: otf.h:111
float * gridArrayChans
Definition: otf.h:225
struct HEADER * head
Definition: otf.h:246
float scan
Definition: gridmap.c:94
Definition: header.h:13
int debugSpectra
Definition: otf.h:71
float b
Definition: otf.h:124
int numSpectra
Definition: otf.h:172
int cols
Definition: otf.h:79
int placeBeamSize
Definition: otf.h:187
int row
Definition: otf.h:110
char gainsfile[256]
Definition: otf.h:62
float intInten
Definition: otf.h:119
int valueMaxX
Definition: otf.h:196
int newShade
Definition: otf.h:164
struct MAP_SCANS * next
Definition: otf.h:102
double nyquistRa
Definition: otf.h:82
int noint
Definition: otf.h:171
int lastAction
Definition: otf.h:179
float plotxb
Definition: otf.h:221
float tsys
Definition: otf.h:129
float plotye
Definition: otf.h:224
int doTPprocess
Definition: otf.h:76
int lockGrid
Definition: otf.h:154
struct OTF_GRID * next
Definition: otf.h:136
int echan
Definition: otf.h:68
int int_chans[2]
Definition: otf.h:173
int whichPlot
Definition: otf.h:202
int baselines[8]
Definition: otf.h:207
int ddirty
Definition: otf.h:205
int allowVelShift
Definition: otf.h:191
float nyquistRa
Definition: otf.h:214
float chanCompress
Definition: otf.h:233
float rms
Definition: otf.h:121
char datafile[256]
Definition: otf.h:61
float manMapWidth
Definition: otf.h:229
int manConfig
Definition: otf.h:186
int rows
Definition: otf.h:80
int regionshowbold
Definition: otf.h:189
int oldshade
Definition: otf.h:107
Definition: otf.h:105
float * ondata
Definition: otf.h:218
int regionlabelshow
Definition: otf.h:190
float nyquistDec
Definition: otf.h:215
int numCellsUsed
Definition: otf.h:200
int valueMaxChanged
Definition: otf.h:176
int arrayNum
Definition: otf.h:77
int ddirty
Definition: otf.h:113
float manMapHeight
Definition: otf.h:230
int ver
Definition: otf.h:99
int lockScale
Definition: otf.h:174
int valueMinY
Definition: otf.h:195
float manNyquistDec
Definition: otf.h:232
int valueMaxY
Definition: otf.h:197
int gridBaseLine
Definition: otf.h:184
int singleOtfBin
Definition: otf.h:74
float * gainsdata
Definition: otf.h:220
Definition: otf.h:58
float * chans
Definition: otf.h:122
int row
Definition: otf.h:142
int valueMinX
Definition: otf.h:194
float velocity
Definition: otf.h:236
int bdirty
Definition: otf.h:204
double wt
Definition: otf.h:146
int shade
Definition: otf.h:106
int loadChoice
Definition: otf.h:178
float gamma
Definition: otf.h:212
double * chans
Definition: otf.h:145
long sizeofWorkArray
Definition: otf.h:209
char magic[16]
Definition: otf.h:59
double nyquistDec
Definition: otf.h:83
int arrayNum
Definition: otf.h:159
float * offdata
Definition: otf.h:219
int row
Definition: otf.h:168
int numCellsTotal
Definition: otf.h:199
float ysource
Definition: otf.h:238
int bchan
Definition: otf.h:67
float IFNumber
Definition: otf.h:213
int rows
Definition: otf.h:170
int n
Definition: otf.h:143
float manMapRa
Definition: otf.h:227
int cols
Definition: otf.h:169
char source[32]
Definition: otf.h:132
int doingMosaic
Definition: otf.h:182
int set
Definition: otf.h:108
int noColorBar
Definition: otf.h:180
int col
Definition: otf.h:109
float plotVal2
Definition: otf.h:118
int initialized
Definition: otf.h:151
int singleChan
Definition: otf.h:73
int fixBadChan
Definition: otf.h:155
int intenChanged
Definition: otf.h:177
int doContour
Definition: otf.h:175
int requestCol
Definition: otf.h:165
int requestRow
Definition: otf.h:166
char peakStr[80]
Definition: otf.h:242
struct OTF_STRUCT otf
Definition: specdata.c:100
int ignoreAllRepaints
Definition: otf.h:152
int col
Definition: otf.h:167
int feed
Definition: otf.h:65
float plotyb
Definition: otf.h:222
struct HEADER * head
Definition: otf.h:134
XImage * ximage
Definition: otf.h:247
float bscan
Definition: otf.h:125
int bins
Definition: otf.h:156
float restfreq
Definition: otf.h:235
struct MAP_SCANS * map_scans_head
Definition: otf.h:244
struct OTF_GRID ** gridArray
Definition: otf.h:245
float freqres
Definition: otf.h:234
int version[8]
Definition: otf.h:114
int reqSpecIndx
Definition: otf.h:162
float escan
Definition: otf.h:126
float time
Definition: otf.h:127
float scan
Definition: otf.h:100
int col
Definition: otf.h:141
float scanct
Definition: otf.h:116
float kms
Definition: otf.h:120
struct SCAN_HEADERS * next
Definition: gridmap.c:98
int singleOtfBin
Definition: otf.h:160
int windowSizeSet
Definition: otf.h:185
float valueMin
Definition: otf.h:216
int plots
Definition: otf.h:157
int noPlot
Definition: otf.h:163
int bdirty
Definition: otf.h:112