Linuxpops
3.01.04
Spectral Anaysis Package for Single Dish Data
Main Page
Related Pages
Classes
Files
File List
File Members
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
;
71
int
debugSpectra
;
72
73
int
singleChan
;
74
int
singleOtfBin
;
75
76
int
doTPprocess
;
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
{
151
int
initialized
;
152
int
ignoreAllRepaints
;
153
int
cutoff
;
154
int
lockGrid
;
155
int
fixBadChan
;
156
int
bins
;
157
int
plots
;
158
int
singleChan
;
159
int
arrayNum
;
160
int
singleOtfBin
;
161
int
debugSpectra
;
162
int
reqSpecIndx
;
163
int
noPlot
;
164
int
newShade
;
165
int
requestCol
;
166
int
requestRow
;
167
int
col
;
168
int
row
;
169
int
cols
;
170
int
rows
;
171
int
noint
;
172
int
numSpectra
;
173
int
int_chans
[2];
174
int
lockScale
;
175
int
doContour
;
176
int
valueMaxChanged
;
177
int
intenChanged
;
178
int
loadChoice
;
179
int
lastAction
;
180
int
noColorBar
;
181
int
colorChoice
;
182
int
doingMosaic
;
183
int
chanSelOTF
;
184
int
gridBaseLine
;
185
int
windowSizeSet
;
186
int
manConfig
;
187
int
placeBeamSize
;
188
int
regionshow
;
189
int
regionshowbold
;
190
int
regionlabelshow
;
191
int
allowVelShift
;
192
int
armBeamLocation
;
193
194
int
valueMinX
;
195
int
valueMinY
;
196
int
valueMaxX
;
197
int
valueMaxY
;
198
199
int
numCellsTotal
;
200
int
numCellsUsed
;
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
209
long
sizeofWorkArray
;
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
;
225
float
*
gridArrayChans
;
226
227
float
manMapRa
;
228
float
manMapDec
;
229
float
manMapWidth
;
230
float
manMapHeight
;
231
float
manNyquistRa
;
232
float
manNyquistDec
;
233
float
chanCompress
;
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
244
struct
MAP_SCANS
*
map_scans_head
;
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
OTF_STRUCT::valueMax
float valueMax
Definition:
otf.h:217
OTF_STRUCT::plotxe
float plotxe
Definition:
otf.h:223
SPECDATA::scanno
int scanno
Definition:
otf.h:64
OTF_STRUCT::regionshow
int regionshow
Definition:
otf.h:188
OTF_STRUCT::singleChan
int singleChan
Definition:
otf.h:158
OTF_STRUCT::beamRa
float beamRa
Definition:
otf.h:239
OTF_STRUCT::scaleFactor
float scaleFactor
Definition:
otf.h:211
OTF_STRUCT::xsource
float xsource
Definition:
otf.h:237
OTF_GRID::plotVal1
float plotVal1
Definition:
otf.h:117
OTF_STRUCT::debugSpectra
int debugSpectra
Definition:
otf.h:161
OTF_STRUCT::armBeamLocation
int armBeamLocation
Definition:
otf.h:192
OTF_STRUCT::beamDec
float beamDec
Definition:
otf.h:240
OTF_STRUCT::manMapDec
float manMapDec
Definition:
otf.h:228
SPECDATA::bline
int bline
Definition:
otf.h:70
OTF_GRID::wt
float wt
Definition:
otf.h:130
OTF_STRUCT::manNyquistRa
float manNyquistRa
Definition:
otf.h:231
MAP_SCANS
Definition:
otf.h:98
OTF_STRUCT::colorChoice
int colorChoice
Definition:
otf.h:181
OTF_STRUCT::cutoff
int cutoff
Definition:
otf.h:153
OTF_STRUCT::chanSelOTF
int chanSelOTF
Definition:
otf.h:183
OTF_GRID::a
float a
Definition:
otf.h:123
OTF_GRID::artificial
int artificial
Definition:
otf.h:111
OTF_STRUCT::gridArrayChans
float * gridArrayChans
Definition:
otf.h:225
OTF_STRUCT::head
struct HEADER * head
Definition:
otf.h:246
SCAN_HEADERS::scan
float scan
Definition:
gridmap.c:94
HEADER
Definition:
header.h:13
SPECDATA::debugSpectra
int debugSpectra
Definition:
otf.h:71
OTF_GRID::b
float b
Definition:
otf.h:124
OTF_STRUCT::numSpectra
int numSpectra
Definition:
otf.h:172
SPECDATA::cols
int cols
Definition:
otf.h:79
OTF_STRUCT::placeBeamSize
int placeBeamSize
Definition:
otf.h:187
OTF_GRID::row
int row
Definition:
otf.h:110
SPECDATA::gainsfile
char gainsfile[256]
Definition:
otf.h:62
OTF_GRID::intInten
float intInten
Definition:
otf.h:119
OTF_STRUCT::valueMaxX
int valueMaxX
Definition:
otf.h:196
OTF_STRUCT::newShade
int newShade
Definition:
otf.h:164
MAP_SCANS::next
struct MAP_SCANS * next
Definition:
otf.h:102
SPECDATA::nyquistRa
double nyquistRa
Definition:
otf.h:82
OTF_STRUCT::noint
int noint
Definition:
otf.h:171
OTF_STRUCT::lastAction
int lastAction
Definition:
otf.h:179
OTF_STRUCT::plotxb
float plotxb
Definition:
otf.h:221
OTF_GRID::tsys
float tsys
Definition:
otf.h:129
OTF_STRUCT::plotye
float plotye
Definition:
otf.h:224
SPECDATA::doTPprocess
int doTPprocess
Definition:
otf.h:76
OTF_STRUCT::lockGrid
int lockGrid
Definition:
otf.h:154
OTF_GRID::next
struct OTF_GRID * next
Definition:
otf.h:136
SPECDATA::echan
int echan
Definition:
otf.h:68
OTF_STRUCT::int_chans
int int_chans[2]
Definition:
otf.h:173
OTF_STRUCT::whichPlot
int whichPlot
Definition:
otf.h:202
OTF_STRUCT::baselines
int baselines[8]
Definition:
otf.h:207
OTF_STRUCT::ddirty
int ddirty
Definition:
otf.h:205
OTF_STRUCT::allowVelShift
int allowVelShift
Definition:
otf.h:191
OTF_STRUCT::nyquistRa
float nyquistRa
Definition:
otf.h:214
OTF_STRUCT::chanCompress
float chanCompress
Definition:
otf.h:233
OTF_GRID::rms
float rms
Definition:
otf.h:121
SPECDATA::datafile
char datafile[256]
Definition:
otf.h:61
OTF_STRUCT::manMapWidth
float manMapWidth
Definition:
otf.h:229
OTF_STRUCT::manConfig
int manConfig
Definition:
otf.h:186
SPECDATA::rows
int rows
Definition:
otf.h:80
OTF_STRUCT::regionshowbold
int regionshowbold
Definition:
otf.h:189
OTF_GRID::oldshade
int oldshade
Definition:
otf.h:107
OTF_GRID
Definition:
otf.h:105
OTF_STRUCT::ondata
float * ondata
Definition:
otf.h:218
OTF_STRUCT::regionlabelshow
int regionlabelshow
Definition:
otf.h:190
OTF_STRUCT::nyquistDec
float nyquistDec
Definition:
otf.h:215
OTF_STRUCT::numCellsUsed
int numCellsUsed
Definition:
otf.h:200
SCAN_HEADERS::ver
int ver
Definition:
gridmap.c:93
OTF_STRUCT::valueMaxChanged
int valueMaxChanged
Definition:
otf.h:176
SPECDATA::arrayNum
int arrayNum
Definition:
otf.h:77
OTF_GRID::ddirty
int ddirty
Definition:
otf.h:113
SCAN_HEADERS
Definition:
gridmap.c:92
OTF_STRUCT::manMapHeight
float manMapHeight
Definition:
otf.h:230
MAP_SCANS::ver
int ver
Definition:
otf.h:99
OTF_STRUCT::lockScale
int lockScale
Definition:
otf.h:174
OTF_STRUCT::valueMinY
int valueMinY
Definition:
otf.h:195
OTF_STRUCT::manNyquistDec
float manNyquistDec
Definition:
otf.h:232
OTF_STRUCT::valueMaxY
int valueMaxY
Definition:
otf.h:197
OTF_STRUCT::gridBaseLine
int gridBaseLine
Definition:
otf.h:184
SPECDATA::singleOtfBin
int singleOtfBin
Definition:
otf.h:74
OTF_STRUCT::gainsdata
float * gainsdata
Definition:
otf.h:220
SPECDATA
Definition:
otf.h:58
OTF_GRID::chans
float * chans
Definition:
otf.h:122
GRID_ACCUM::row
int row
Definition:
otf.h:142
OTF_STRUCT::valueMinX
int valueMinX
Definition:
otf.h:194
OTF_STRUCT::velocity
float velocity
Definition:
otf.h:236
OTF_STRUCT::bdirty
int bdirty
Definition:
otf.h:204
GRID_ACCUM::wt
double wt
Definition:
otf.h:146
OTF_GRID::shade
int shade
Definition:
otf.h:106
OTF_STRUCT::loadChoice
int loadChoice
Definition:
otf.h:178
OTF_STRUCT::gamma
float gamma
Definition:
otf.h:212
GRID_ACCUM::chans
double * chans
Definition:
otf.h:145
OTF_STRUCT::sizeofWorkArray
long sizeofWorkArray
Definition:
otf.h:209
SPECDATA::magic
char magic[16]
Definition:
otf.h:59
SPECDATA::nyquistDec
double nyquistDec
Definition:
otf.h:83
OTF_STRUCT::arrayNum
int arrayNum
Definition:
otf.h:159
OTF_STRUCT::offdata
float * offdata
Definition:
otf.h:219
OTF_STRUCT::row
int row
Definition:
otf.h:168
OTF_STRUCT
Definition:
otf.h:150
OTF_STRUCT::numCellsTotal
int numCellsTotal
Definition:
otf.h:199
OTF_STRUCT::ysource
float ysource
Definition:
otf.h:238
SPECDATA::bchan
int bchan
Definition:
otf.h:67
OTF_STRUCT::IFNumber
float IFNumber
Definition:
otf.h:213
OTF_STRUCT::rows
int rows
Definition:
otf.h:170
GRID_ACCUM::n
int n
Definition:
otf.h:143
OTF_STRUCT::manMapRa
float manMapRa
Definition:
otf.h:227
OTF_STRUCT::cols
int cols
Definition:
otf.h:169
OTF_GRID::source
char source[32]
Definition:
otf.h:132
OTF_STRUCT::doingMosaic
int doingMosaic
Definition:
otf.h:182
OTF_GRID::set
int set
Definition:
otf.h:108
OTF_STRUCT::noColorBar
int noColorBar
Definition:
otf.h:180
OTF_GRID::col
int col
Definition:
otf.h:109
OTF_GRID::plotVal2
float plotVal2
Definition:
otf.h:118
OTF_STRUCT::initialized
int initialized
Definition:
otf.h:151
SPECDATA::singleChan
int singleChan
Definition:
otf.h:73
OTF_STRUCT::fixBadChan
int fixBadChan
Definition:
otf.h:155
OTF_STRUCT::intenChanged
int intenChanged
Definition:
otf.h:177
OTF_STRUCT::doContour
int doContour
Definition:
otf.h:175
OTF_STRUCT::requestCol
int requestCol
Definition:
otf.h:165
OTF_STRUCT::requestRow
int requestRow
Definition:
otf.h:166
OTF_STRUCT::peakStr
char peakStr[80]
Definition:
otf.h:242
otf
struct OTF_STRUCT otf
Definition:
specdata.c:100
OTF_STRUCT::ignoreAllRepaints
int ignoreAllRepaints
Definition:
otf.h:152
OTF_STRUCT::col
int col
Definition:
otf.h:167
SPECDATA::feed
int feed
Definition:
otf.h:65
OTF_STRUCT::plotyb
float plotyb
Definition:
otf.h:222
OTF_GRID::head
struct HEADER * head
Definition:
otf.h:134
OTF_STRUCT::ximage
XImage * ximage
Definition:
otf.h:247
OTF_GRID::bscan
float bscan
Definition:
otf.h:125
OTF_STRUCT::bins
int bins
Definition:
otf.h:156
OTF_STRUCT::restfreq
float restfreq
Definition:
otf.h:235
OTF_STRUCT::map_scans_head
struct MAP_SCANS * map_scans_head
Definition:
otf.h:244
OTF_STRUCT::gridArray
struct OTF_GRID ** gridArray
Definition:
otf.h:245
OTF_STRUCT::freqres
float freqres
Definition:
otf.h:234
OTF_GRID::version
int version[8]
Definition:
otf.h:114
OTF_STRUCT::reqSpecIndx
int reqSpecIndx
Definition:
otf.h:162
GRID_ACCUM
Definition:
otf.h:140
OTF_GRID::escan
float escan
Definition:
otf.h:126
OTF_GRID::time
float time
Definition:
otf.h:127
MAP_SCANS::scan
float scan
Definition:
otf.h:100
GRID_ACCUM::col
int col
Definition:
otf.h:141
OTF_GRID::scanct
float scanct
Definition:
otf.h:116
OTF_GRID::kms
float kms
Definition:
otf.h:120
SCAN_HEADERS::next
struct SCAN_HEADERS * next
Definition:
gridmap.c:98
OTF_STRUCT::singleOtfBin
int singleOtfBin
Definition:
otf.h:160
OTF_STRUCT::windowSizeSet
int windowSizeSet
Definition:
otf.h:185
OTF_STRUCT::valueMin
float valueMin
Definition:
otf.h:216
OTF_STRUCT::plots
int plots
Definition:
otf.h:157
OTF_STRUCT::noPlot
int noPlot
Definition:
otf.h:163
OTF_GRID::bdirty
int bdirty
Definition:
otf.h:112
include
otf.h
Generated on Mon Feb 21 2022 20:37:01 for Linuxpops by
1.8.5