-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal_params_2.m
135 lines (126 loc) · 4.15 KB
/
global_params_2.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
% Specifies common-to-all parameters
% data_set selects a data set to analyze
% 1 => May 20, 2017, OTF Scan, Quant gain = 10
% 2 => May 21, 2017, OTF Scan, Quant gain = 10
% 3 => May 21, 2017, OTF Scan, Quant gain = 10
% 4 => May 21, 2017, OTF Scan, Quant gain = 10
% 5 => May 21, 2017, OTF Scan, Quant gain = 20
% 6 => May 21, 2017, OTF Scan, Quant gain = 10
% 7 => May 21, 2017, OTF Scan, Quant gain = 10
% 8 => May 21, 2017, OTF Scan, Quant gain = 20
% 9 => May 21, 2017, OTF Scan, Quant gain = 40
data_set = 1;
% Specify if output files should be overwritten
overwrite = 1;
% Specify bank ID (only single-bank scripts use this)
bank = 'D';
% Create FITS file names
switch data_set
case 1
projID = 'TGBT16A_508_01';
lustre_dir = '/lustre/gbtdata';
sub_dir = 'TMP/BF';
stamp = '2017_05_20_01:39:52';
off_stamp = '2017_05_20_01:46:47';
Thot = 290;
Tcold = 7.5;
% meta_projID = 'TGBT16A_508_02';
% meta_stamp = '2016_07_25_04:32:33';
% meta_off_projID = 'TGBT16A_508_02';
% meta_off_stamp = '2016_07_25_04:32:33';
% flux_density = 14.90; % 3C286 @ 1465 MHz
% x_idx = [1:19];
% y_idx = [21:39];
% badX = [];
% badY = [2,9,12,17];
% idxs = [13:105, 209:1263];
% off_idxs = [5130:5140];
% center_freq = 1445.565e6;
% dmjd_delay = 10.8/(24*3600);
% dmjd_delay_off = dmjd_delay;
% az_vals = [-0.08496, 0.09283, -0.1496, 0.003936, 0.1494, -0.09304, 0.09283];
% el_vals = [ 0.1639, 0.1639, 0.002164, 0.002164, 0.002164, -0.1014, -0.1014];
% use_radec = 0;
case 2
projID = 'TGBT16A_508_01';
lustre_dir = '/lustre/gbtdata';
sub_dir = 'TMP/BF';
stamp = '2017_05_21_03:06:05';
off_stamp = '2017_05_21_03:10:22';
Thot = 290;
Tcold = 7.5;
case 3
projID = 'TGBT16A_508_01';
lustre_dir = '/lustre/gbtdata';
sub_dir = 'TMP/BF';
stamp = '2017_05_21_03:16:27';
off_stamp = '2017_05_21_03:12:45';
Thot = 290;
Tcold = 7.5;
case 4
projID = 'TGBT16A_508_01';
lustre_dir = '/lustre/gbtdata';
sub_dir = 'TMP/BF';
stamp = '2017_05_21_03:19:47';
off_stamp = '2017_05_21_03:24:53';
Thot = 290;
Tcold = 7.5;
case 5
projID = 'TGBT16A_508_01';
lustre_dir = '/lustre/gbtdata';
sub_dir = 'TMP/BF';
stamp = '2017_05_21_03:32:31';
off_stamp = '2017_05_21_03:28:16';
Thot = 290;
Tcold = 7.5;
case 6
projID = 'TGBT16A_508_01';
lustre_dir = '/lustre/gbtdata';
sub_dir = 'TMP/BF';
stamp = '2017_05_22_01:02:42';
off_stamp = '2017_05_22_01:06:18';
Thot = 290;
Tcold = 7.5;
case 7
projID = 'TGBT16A_508_01';
lustre_dir = '/lustre/gbtdata';
sub_dir = 'TMP/BF';
stamp = '2017_05_22_01:09:49';
off_stamp = '2017_05_22_01:13:27';
Thot = 290;
Tcold = 7.5;
case 8
projID = 'TGBT16A_508_01';
lustre_dir = '/lustre/gbtdata';
sub_dir = 'TMP/BF';
stamp = '2017_05_22_01:40:27';
off_stamp = '2017_05_22_01:36:57';
Thot = 290;
Tcold = 7.5;
case 9
projID = 'TGBT16A_508_01';
lustre_dir = '/lustre/gbtdata';
sub_dir = 'TMP/BF';
stamp = '2017_05_22_01:43:10';
off_stamp = '2017_05_22_01:46:57';
Thot = 290;
Tcold = 7.5;
end
meta_dir = '/home/gbtdata';
ant_sub_dir = 'Antenna';
dir = sprintf('%s/%s/%s', lustre_dir, projID, sub_dir);
% ant_dir = sprintf('%s/%s/%s', meta_dir, meta_projID, ant_sub_dir);
% ant_off_dir = sprintf('%s/%s/%s', meta_dir, meta_off_projID, ant_sub_dir);
% ant_fits_file = sprintf('%s/%s.fits', ant_dir, meta_stamp);
% ant_off_fits_file = sprintf('%s/%s.fits', ant_dir, meta_off_stamp);
% % Specify which antenna elements will be used in beamformer and sensitivity
% % measurements (data_set dependent)
% all_idx = 1:40;
% goodX = all_idx(x_idx);
% goodX(badX) = [];
% goodY = all_idx(y_idx);
% goodY(badY) = [];
% % Select y-pol for now
% idx = goodY;
% Boltzmann's Constant
kb = 1.38e-23;