1 | |
---|
2 | set path "/sps/baoradio/AmasNancay/AST" |
---|
3 | |
---|
4 | set source $1 |
---|
5 | set ncycles $2 |
---|
6 | |
---|
7 | |
---|
8 | #set fcalib $3 |
---|
9 | #set f1420low $4 |
---|
10 | #set f1420high $5 |
---|
11 | |
---|
12 | set fcalib 1410 |
---|
13 | |
---|
14 | # Abell 85, 500 cycles |
---|
15 | if ( ${source} == "abell85" ) then |
---|
16 | set f1420low 1420.2 |
---|
17 | set f1420high 1420.6 |
---|
18 | set packVal "1 10 25 50 100" |
---|
19 | endif |
---|
20 | |
---|
21 | # Abell 1205, 600 cycles |
---|
22 | if ( ${source} == "abell1205" ) then |
---|
23 | set f1420low 1420.1 |
---|
24 | set f1420high 1420.6 |
---|
25 | set packVal "1 10 25 50 100 120" |
---|
26 | endif |
---|
27 | |
---|
28 | # Abell 2440, 210 cycles |
---|
29 | if ( ${source} == "abell2440" ) then |
---|
30 | set f1420low 1420.4 |
---|
31 | set f1420high 1420.7 |
---|
32 | set packVal "1 10 25 42" |
---|
33 | endif |
---|
34 | |
---|
35 | echo "f1420low=${f1420low}, f1420high=${f1420high}" |
---|
36 | echo "Packing values="${packVal} |
---|
37 | |
---|
38 | nbins1420 = floor((${f1420high}-${f1420low})/250*8192) |
---|
39 | echo $nbins1420 |
---|
40 | |
---|
41 | clearscript diffOnOff |
---|
42 | clearscript evolAtCalibFreq |
---|
43 | clearscript evolAt1420Freq |
---|
44 | clearscript evolAt1420SideFreq |
---|
45 | clearscript IntAt1420 |
---|
46 | clearscript sigmaRaw1420Side |
---|
47 | clearscript sigmaRaw1400a1420 |
---|
48 | clearscript evolAt1410a1415OffOn |
---|
49 | |
---|
50 | ############################################################################ |
---|
51 | defscript evolAtCalibFreq |
---|
52 | |
---|
53 | |
---|
54 | #Follow up of the intensity arround the Calib frequency in different calibration conditions |
---|
55 | # NO calibration |
---|
56 | # Calibration coeff. mean per Run |
---|
57 | # Calibration coeff. per cycles |
---|
58 | |
---|
59 | set fcalib $1 |
---|
60 | |
---|
61 | |
---|
62 | newwin 1 2 |
---|
63 | n/pl onoffevol.onoffRaw0%cycle ! ! "blue cpts notit nsta" |
---|
64 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
65 | n/pl onoffevol.onoffRaw1%cycle ! ! "red cpts notit nsta" |
---|
66 | setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Raw (a.u)" $axedefatt |
---|
67 | |
---|
68 | newwin 1 2 |
---|
69 | n/proj hRaw0 onoffevol.onoffRaw0 ! ! ! "blue cpts notit" |
---|
70 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
71 | n/proj hRaw1 onoffevol.onoffRaw1 ! ! ! "red cpts notit" |
---|
72 | settitle "I[${fcalib}MHz/6.25MHz] Raw (a.u)" |
---|
73 | |
---|
74 | |
---|
75 | |
---|
76 | newwin 1 2 |
---|
77 | n/pl onoffevol.onoffRun0%cycle ! ! "blue cpts notit nsta" |
---|
78 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
79 | n/pl onoffevol.onoffRun1%cycle ! ! "red cpts notit nsta" |
---|
80 | setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Run (a.u)" $axedefatt |
---|
81 | |
---|
82 | |
---|
83 | newwin 1 2 |
---|
84 | n/proj hRun0 onoffevol.onoffRun0 ! ! ! "blue cpts notit" |
---|
85 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
86 | n/proj hRun1 onoffevol.onoffRun1 ! ! ! "red cpts notit" |
---|
87 | settitle "I[${fcalib}MHz/6.25MHz] Run (a.u)" |
---|
88 | |
---|
89 | |
---|
90 | newwin 1 2 |
---|
91 | n/pl onoffevol.onoffCycle0%cycle ! ! "blue cpts notit nsta" |
---|
92 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
93 | n/pl onoffevol.onoffCycle1%cycle ! ! "red cpts notit nsta" |
---|
94 | setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Cycle (a.u)" $axedefatt |
---|
95 | |
---|
96 | newwin 1 2 |
---|
97 | n/proj hCycle0 onoffevol.onoffCycle0 ! ! ! "blue cpts notit" |
---|
98 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
99 | n/proj hCycle1 onoffevol.onoffCycle1 ! ! ! "red cpts notit" |
---|
100 | settitle "I[${fcalib}MHz/6.25MHz] Cycle (a.u)" |
---|
101 | |
---|
102 | |
---|
103 | endscript |
---|
104 | ########################################### |
---|
105 | defscript evolAt1420Freq |
---|
106 | |
---|
107 | |
---|
108 | #Follow up of the intensity arround the [1420,1421]MHz frequency in different calibration conditions |
---|
109 | # NO calibration |
---|
110 | # Calibration coeff. mean per Run |
---|
111 | # Calibration coeff. per cycles |
---|
112 | |
---|
113 | |
---|
114 | graphicatt "xylimits=0,${ncycles},-0.02,0.02" |
---|
115 | |
---|
116 | newwin 1 2 |
---|
117 | n/pl onoffevol.onoffRaw01420%cycle ! ! "blue cpts notit nsta" |
---|
118 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
119 | n/pl onoffevol.onoffRaw11420%cycle ! ! "red cpts notit nsta" |
---|
120 | setaxelabels "cycle" "I[${f1420low},${f1420high}]MHz Raw (a.u)" $axedefatt |
---|
121 | |
---|
122 | |
---|
123 | newwin 1 2 |
---|
124 | n/pl onoffevol.onoffRun01420%cycle ! ! "blue cpts notit nsta" |
---|
125 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
126 | n/pl onoffevol.onoffRun11420%cycle ! ! "red cpts notit nsta" |
---|
127 | setaxelabels "cycle" "I[${f1420low},${f1420high}]MHz Run (a.u)" $axedefatt |
---|
128 | |
---|
129 | |
---|
130 | newwin 1 2 |
---|
131 | n/pl onoffevol.onoffCycle01420%cycle ! ! "blue cpts notit nsta" |
---|
132 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
133 | n/pl onoffevol.onoffCycle11420%cycle ! ! "red cpts notit nsta" |
---|
134 | setaxelabels "cycle" "I[${f1420low},${f1420high}]MHz Cycle (a.u)" $axedefatt |
---|
135 | |
---|
136 | |
---|
137 | newh1d hSigmaRaw0 -0.01 0.01 25 |
---|
138 | newh1d hSigmaRaw1 -0.01 0.01 25 |
---|
139 | newh1d hSigmaRun0 -0.01 0.01 25 |
---|
140 | newh1d hSigmaRun1 -0.01 0.01 25 |
---|
141 | newh1d hSigmaCycl0 -0.01 0.01 25 |
---|
142 | newh1d hSigmaCycl1 -0.01 0.01 25 |
---|
143 | |
---|
144 | graphicatt "" |
---|
145 | |
---|
146 | newwin 1 1 |
---|
147 | n/proj hSigmaRaw0 onoffevol.onoffRaw01420 ! ! ! "blue cpts notit" |
---|
148 | n/proj hSigmaRaw1 onoffevol.onoffRaw11420 ! ! ! "same red cpts notit" |
---|
149 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
150 | setaxelabels "(a.u)" "I[${f1420low},${f1420high}]MHz Raw" $axedefatt |
---|
151 | |
---|
152 | newwin 1 1 |
---|
153 | n/proj hSigmaRun0 onoffevol.onoffRun01420 ! ! ! "blue cpts notit" |
---|
154 | n/proj hSigmaRun1 onoffevol.onoffRun11420 ! ! ! "same red cpts notit" |
---|
155 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
156 | setaxelabels "(a.u)" "I[${f1420low},${f1420high}]MHz Run" $axedefatt |
---|
157 | |
---|
158 | |
---|
159 | newwin 1 1 |
---|
160 | n/proj hSigmaCycl0 onoffevol.onoffCycle01420 ! ! ! "blue cpts notit" |
---|
161 | n/proj hSigmaCycl1 onoffevol.onoffCycle11420 ! ! ! "same red cpts notit" |
---|
162 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
163 | setaxelabels "(a.u)" "I[${f1420low},${f1420high}]MHz Cycle" $axedefatt |
---|
164 | |
---|
165 | |
---|
166 | endscript |
---|
167 | ################################################## |
---|
168 | defscript sigmaRaw1420Side |
---|
169 | |
---|
170 | c++compile rebining |
---|
171 | c++link rebining.so dorebin |
---|
172 | |
---|
173 | |
---|
174 | #col 13 = onoffRaw01420side Ch 0 |
---|
175 | #col 14 = onoffRaw11420side Ch 1 |
---|
176 | |
---|
177 | ntcol2var onoffevol 13 linCh0All |
---|
178 | line2vec vecCh0All $linCh0All |
---|
179 | |
---|
180 | ntcol2var onoffevol 14 linCh1All |
---|
181 | line2vec vecCh1All $linCh1All |
---|
182 | |
---|
183 | set sigmaCh0 "" |
---|
184 | set errsigCh0 "" |
---|
185 | set sigmaCh1 "" |
---|
186 | set errsigCh1 "" |
---|
187 | |
---|
188 | foreach ipack ( $packVal ) |
---|
189 | |
---|
190 | #Packing per ipack |
---|
191 | del invec |
---|
192 | del outvec |
---|
193 | cp vecCh0All invec |
---|
194 | call dorebin $ipack |
---|
195 | mean0 = ${outvec.sum}/${outvec.size} |
---|
196 | sigma0 = sqrt(${outvec.sumsq}/${outvec.size}-${mean0}*${mean0}) |
---|
197 | errsig0 = ${sigma0}/sqrt(2*${outvec.size}) |
---|
198 | set sigmaCh0 "${sigmaCh0} ${sigma0}" |
---|
199 | set errsigCh0 "${errsigCh0} ${errsig0}" |
---|
200 | # |
---|
201 | del invec |
---|
202 | del outvec |
---|
203 | cp vecCh1All invec |
---|
204 | call dorebin $ipack |
---|
205 | mean1 = ${outvec.sum}/${outvec.size} |
---|
206 | sigma1 = sqrt(${outvec.sumsq}/${outvec.size}-${mean1}*${mean1}) |
---|
207 | errsig1 = ${sigma1}/sqrt(2*${outvec.size}) |
---|
208 | set sigmaCh1 "${sigmaCh1} ${sigma1}" |
---|
209 | set errsigCh1 "${errsigCh1} ${errsig1}" |
---|
210 | end |
---|
211 | |
---|
212 | |
---|
213 | newnt nt0 x y ey |
---|
214 | newnt nt1 x y ey |
---|
215 | |
---|
216 | set x0 ( $packVal ) |
---|
217 | set y0 ( $sigmaCh0 ) |
---|
218 | set ey0 ( $errsigCh0 ) |
---|
219 | |
---|
220 | set x1 ( $packVal ) |
---|
221 | set y1 ( $sigmaCh1 ) |
---|
222 | set ey1 ( $errsigCh1 ) |
---|
223 | |
---|
224 | for i 0:$#x0 |
---|
225 | line2nt nt0 $x0[i] $y0[i] $ey0[i] |
---|
226 | line2nt nt1 $x1[i] $y1[i] $ey1[i] |
---|
227 | end |
---|
228 | |
---|
229 | |
---|
230 | newwin 1 1 |
---|
231 | plot2de nt0 x y 0 ey 1 "blue marker=fcircle,9 notit nsta" |
---|
232 | plot2de nt1 x y 0 ey 1 "same red marker=fcircle,9 notit nsta" |
---|
233 | n = ${#x0}-1 |
---|
234 | func $y0[0]/sqrt(x) $x0[0] $x0[n] 100 "same" |
---|
235 | settitle "Sigma [1418,1419]U[1422,1423]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt |
---|
236 | setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt |
---|
237 | |
---|
238 | |
---|
239 | |
---|
240 | endscript |
---|
241 | ################################################## |
---|
242 | defscript sigmaRaw1400a1420 |
---|
243 | |
---|
244 | c++compile rebining |
---|
245 | c++link rebining.so dorebin |
---|
246 | |
---|
247 | |
---|
248 | #col 19 = onoffRaw0f14001420 Ch 0 |
---|
249 | #col 20 = onoffRaw1f14001420 Ch 1 |
---|
250 | |
---|
251 | ntcol2var onoffevol 19 linCh0All |
---|
252 | line2vec vecCh0All $linCh0All |
---|
253 | |
---|
254 | ntcol2var onoffevol 20 linCh1All |
---|
255 | line2vec vecCh1All $linCh1All |
---|
256 | |
---|
257 | set sigmaCh0 "" |
---|
258 | set errsigCh0 "" |
---|
259 | set sigmaCh1 "" |
---|
260 | set errsigCh1 "" |
---|
261 | |
---|
262 | |
---|
263 | foreach ipack ( $packVal ) |
---|
264 | |
---|
265 | #Packing per ipack |
---|
266 | del invec |
---|
267 | del outvec |
---|
268 | cp vecCh0All invec |
---|
269 | call dorebin $ipack |
---|
270 | mean0 = ${outvec.sum}/${outvec.size} |
---|
271 | sigma0 = sqrt(${outvec.sumsq}/${outvec.size}-${mean0}*${mean0}) |
---|
272 | errsig0 = ${sigma0}/sqrt(2*${outvec.size}) |
---|
273 | set sigmaCh0 "${sigmaCh0} ${sigma0}" |
---|
274 | set errsigCh0 "${errsigCh0} ${errsig0}" |
---|
275 | # |
---|
276 | del invec |
---|
277 | del outvec |
---|
278 | cp vecCh1All invec |
---|
279 | call dorebin $ipack |
---|
280 | mean1 = ${outvec.sum}/${outvec.size} |
---|
281 | sigma1 = sqrt(${outvec.sumsq}/${outvec.size}-${mean1}*${mean1}) |
---|
282 | errsig1 = ${sigma1}/sqrt(2*${outvec.size}) |
---|
283 | set sigmaCh1 "${sigmaCh1} ${sigma1}" |
---|
284 | set errsigCh1 "${errsigCh1} ${errsig1}" |
---|
285 | end |
---|
286 | |
---|
287 | |
---|
288 | newnt nt0 x y ey |
---|
289 | newnt nt1 x y ey |
---|
290 | |
---|
291 | set x0 ( $packVal ) |
---|
292 | set y0 ( $sigmaCh0 ) |
---|
293 | set ey0 ( $errsigCh0 ) |
---|
294 | |
---|
295 | set x1 ( $packVal ) |
---|
296 | set y1 ( $sigmaCh1 ) |
---|
297 | set ey1 ( $errsigCh1 ) |
---|
298 | |
---|
299 | for i 0:$#x0 |
---|
300 | line2nt nt0 $x0[i] $y0[i] $ey0[i] |
---|
301 | line2nt nt1 $x1[i] $y1[i] $ey1[i] |
---|
302 | end |
---|
303 | |
---|
304 | |
---|
305 | newwin 1 1 |
---|
306 | plot2de nt0 x y 0 ey 1 "blue marker=fcircle,9 notit nsta" |
---|
307 | plot2de nt1 x y 0 ey 1 "same red marker=fcircle,9 notit nsta" |
---|
308 | n = ${#x0}-1 |
---|
309 | func $y0[0]/sqrt(x) $x0[0] $x0[n] 100 "same" |
---|
310 | settitle "Sigma [1400,1420]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt |
---|
311 | setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt |
---|
312 | |
---|
313 | |
---|
314 | |
---|
315 | endscript |
---|
316 | ########################################### |
---|
317 | defscript evolAt1410a1415OffOn |
---|
318 | |
---|
319 | graphicatt "xylimits=0,${ncycles},0.99,1.02" |
---|
320 | |
---|
321 | newwin 1 1 |
---|
322 | n/pl onoffevol.offRaw0f14101415%cycle ! ! "blue cpts notit nsta" |
---|
323 | n/pl onoffevol.offRaw1f14101415%cycle ! ! "same red cpts notit nsta" |
---|
324 | n/pl onoffevol.onRaw0f14101415%cycle ! ! "same cyan cpts notit nsta" |
---|
325 | n/pl onoffevol.onRaw1f14101415%cycle ! ! "same orange cpts notit nsta" |
---|
326 | settitle "Raw (OFF,ON)/OFF ${source} Ch 0 (blue/cyan) Ch 1 (red/orange) ${ncycles}cycles " ' ' $defatt |
---|
327 | setaxelabels "cycle" "I[1410,1415]MHz Raw (a.u)" $axedefatt |
---|
328 | |
---|
329 | graphicatt "xylimits=0,${ncycles},-0.005,0.005" |
---|
330 | newwin 1 1 |
---|
331 | n/pl onoffevol.(onRaw0f14101415-offRaw0f14101415)%cycle ! ! "blue cpts notit nsta" |
---|
332 | n/pl onoffevol.(onRaw1f14101415-offRaw1f14101415)%cycle ! ! "same red cpts notit nsta" |
---|
333 | settitle "Raw (OFF-ON)/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
334 | setaxelabels "cycle" "DI [1410,1415]MHz Raw (a.u)" $axedefatt |
---|
335 | |
---|
336 | |
---|
337 | endscript |
---|
338 | ########################################### |
---|
339 | defscript evolAt1420SideFreq |
---|
340 | |
---|
341 | |
---|
342 | #Follow up of the intensity arround the [${f1420low},${f1420high}]MHz frequency in different calibration conditions |
---|
343 | # NO calibration |
---|
344 | # Calibration coeff. mean per Run |
---|
345 | # Calibration coeff. per cycles |
---|
346 | |
---|
347 | |
---|
348 | graphicatt "xylimits=0,${ncycles},-0.01,0.01" |
---|
349 | |
---|
350 | newwin 1 2 |
---|
351 | n/pl onoffevol.onoffRaw01420side%cycle ! ! "blue cpts notit nsta" |
---|
352 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
353 | n/pl onoffevol.onoffRaw11420side%cycle ! ! "red cpts notit nsta" |
---|
354 | setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Raw (a.u)" $axedefatt |
---|
355 | |
---|
356 | |
---|
357 | newwin 1 2 |
---|
358 | n/pl onoffevol.onoffRun01420side%cycle ! ! "blue cpts notit nsta" |
---|
359 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
360 | n/pl onoffevol.onoffRun11420side%cycle ! ! "red cpts notit nsta" |
---|
361 | setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Run (a.u)" $axedefatt |
---|
362 | |
---|
363 | |
---|
364 | newwin 1 2 |
---|
365 | n/pl onoffevol.onoffCycle01420side%cycle ! ! "blue cpts notit nsta" |
---|
366 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
367 | n/pl onoffevol.onoffCycle11420side%cycle ! ! "red cpts notit nsta" |
---|
368 | setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Cycle (a.u)" $axedefatt |
---|
369 | |
---|
370 | |
---|
371 | newh1d hSigmaSideRaw0 -0.01 0.01 25 |
---|
372 | newh1d hSigmaSideRaw1 -0.01 0.01 25 |
---|
373 | newh1d hSigmaSideRun0 -0.01 0.01 25 |
---|
374 | newh1d hSigmaSideRun1 -0.01 0.01 25 |
---|
375 | newh1d hSigmaSideCycl0 -0.01 0.01 25 |
---|
376 | newh1d hSigmaSideCycl1 -0.01 0.01 25 |
---|
377 | |
---|
378 | graphicatt "" |
---|
379 | |
---|
380 | newwin 1 1 |
---|
381 | n/proj hSigmaSideRaw0 onoffevol.onoffRaw01420side ! ! ! "blue cpts notit" |
---|
382 | n/proj hSigmaSideRaw1 onoffevol.onoffRaw11420side ! ! ! "same red cpts notit" |
---|
383 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
384 | setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Raw" $axedefatt |
---|
385 | |
---|
386 | newwin 1 1 |
---|
387 | n/proj hSigmaSideRun0 onoffevol.onoffRun01420side ! ! ! "blue cpts notit" |
---|
388 | n/proj hSigmaSideRun1 onoffevol.onoffRun11420side ! ! ! "same red cpts notit" |
---|
389 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
390 | setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Run" $axedefatt |
---|
391 | |
---|
392 | |
---|
393 | newwin 1 1 |
---|
394 | n/proj hSigmaSideCycl0 onoffevol.onoffCycle01420side ! ! ! "blue cpts notit" |
---|
395 | n/proj hSigmaSideCycl1 onoffevol.onoffCycle11420side ! ! ! "same red cpts notit" |
---|
396 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
397 | setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Cycle" $axedefatt |
---|
398 | |
---|
399 | |
---|
400 | endscript |
---|
401 | |
---|
402 | ########################################### |
---|
403 | defscript IntAt1420 |
---|
404 | |
---|
405 | |
---|
406 | #Follow up of the intensity arround the [${f1420low},${f1420high}]MHz |
---|
407 | #frequency in different calibration conditions with baseline removed |
---|
408 | # NO calibration |
---|
409 | # Calibration coeff. mean per Run |
---|
410 | # Calibration coeff. per cycles |
---|
411 | |
---|
412 | |
---|
413 | graphicatt "xylimits=0,${ncycles},-0.1,0.1" |
---|
414 | |
---|
415 | newwin 1 2 |
---|
416 | n/pl onoffevol.${nbins1420}*(onoffRaw01420-onoffRaw01420side)%cycle ! ! "blue cpts notit nsta" |
---|
417 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
418 | n/pl onoffevol.${nbins1420}*(onoffRaw11420-onoffRaw11420side)%cycle ! ! "red cpts notit nsta" |
---|
419 | setaxelabels "cycle" "I 1420MHz Raw (a.u)" $axedefatt |
---|
420 | |
---|
421 | |
---|
422 | newwin 1 2 |
---|
423 | n/pl onoffevol.${nbins1420}*(onoffRun01420-onoffRun01420side)%cycle ! ! "blue cpts notit nsta" |
---|
424 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
425 | n/pl onoffevol.${nbins1420}*(onoffRun11420-onoffRun11420side)%cycle ! ! "red cpts notit nsta" |
---|
426 | setaxelabels "cycle" "I 1420MHz Run (a.u)" $axedefatt |
---|
427 | |
---|
428 | |
---|
429 | newwin 1 2 |
---|
430 | n/pl onoffevol.${nbins1420}*(onoffCycle01420-onoffCycle01420side)%cycle ! ! "blue cpts notit nsta" |
---|
431 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
432 | n/pl onoffevol.${nbins1420}*(onoffCycle11420-onoffCycle11420side)%cycle ! ! "red cpts notit nsta" |
---|
433 | setaxelabels "cycle" "I 1420MHz Cycle (a.u)" $axedefatt |
---|
434 | |
---|
435 | |
---|
436 | newh1d h1420IntRaw0 -0.1 0.1 25 |
---|
437 | newh1d h1420IntRaw1 -0.1 0.1 25 |
---|
438 | newh1d h1420IntRun0 -0.1 0.1 25 |
---|
439 | newh1d h1420IntRun1 -0.1 0.1 25 |
---|
440 | newh1d h1420IntCycl0 -0.1 0.1 25 |
---|
441 | newh1d h1420IntCycl1 -0.1 0.1 25 |
---|
442 | |
---|
443 | graphicatt "" |
---|
444 | |
---|
445 | newwin 1 1 |
---|
446 | n/proj h1420IntRaw0 onoffevol.${nbins1420}*(onoffRaw01420-onoffRaw01420side) ! ! ! "blue cpts notit" |
---|
447 | n/proj h1420IntRaw1 onoffevol.${nbins1420}*(onoffRaw11420-onoffRaw11420side) ! ! ! "same red cpts notit" |
---|
448 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
449 | setaxelabels "(a.u)" "I 1420MHz Raw" $axedefatt |
---|
450 | |
---|
451 | newwin 1 1 |
---|
452 | n/proj h1420IntRun0 onoffevol.${nbins1420}*(onoffRun01420-onoffRun01420side) ! ! ! "blue cpts notit" |
---|
453 | n/proj h1420IntRun1 onoffevol.${nbins1420}*(onoffRun11420-onoffRun11420side) ! ! ! "same red cpts notit" |
---|
454 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
455 | setaxelabels "(a.u)" "I 1420MHz Run" $axedefatt |
---|
456 | |
---|
457 | |
---|
458 | |
---|
459 | newwin 1 1 |
---|
460 | n/proj h1420IntCycl0 onoffevol.${nbins1420}*(onoffCycle01420-onoffCycle01420side) ! ! ! "blue cpts notit" |
---|
461 | n/proj h1420IntCycl1 onoffevol.${nbins1420}*(onoffCycle11420-onoffCycle11420side) ! ! ! "same red cpts notit" |
---|
462 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
463 | setaxelabels "(a.u)" "I 1420MHz Cycle" $axedefatt |
---|
464 | |
---|
465 | |
---|
466 | |
---|
467 | endscript |
---|
468 | ################################################## |
---|
469 | defscript diffOnOff |
---|
470 | |
---|
471 | # |
---|
472 | #Display the ON-OFF over the whole freq. range in diffrent Calib. conditions |
---|
473 | # NO calibration |
---|
474 | # Calibration coeff. mean per Run |
---|
475 | # Calibration coeff. per cycles |
---|
476 | # |
---|
477 | |
---|
478 | graphicatt "" |
---|
479 | del sonovoff0 sonovoff1 |
---|
480 | objaoper meanOnovOffNoCalib row 0 sonovoff0 |
---|
481 | objaoper meanOnovOffNoCalib row 1 sonovoff1 |
---|
482 | del soffovoff0 soffovoff1 |
---|
483 | objaoper meanOffovOffNoCalib row 0 soffovoff0 |
---|
484 | objaoper meanOffovOffNoCalib row 1 soffovoff1 |
---|
485 | newwin 1 2 |
---|
486 | plot2d sonovoff0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta" |
---|
487 | plot2d sonovoff1 (n/8192)*250+1250 val n>0 "same red cpts notit nsta" |
---|
488 | settitle "Raw ON/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
489 | setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt |
---|
490 | plot2d soffovoff0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta" |
---|
491 | plot2d soffovoff1 (n/8192)*250+1250 val n>0 "same red cpts notit nsta" |
---|
492 | settitle "Raw OFF/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
493 | setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt |
---|
494 | |
---|
495 | |
---|
496 | graphicatt "xylimits=1250,1500,-0.01,0.01" |
---|
497 | del sonoffovoff0 sonoffovoff1 |
---|
498 | objaoper meanOvOffNoCalib row 0 sonoffovoff0 |
---|
499 | objaoper meanOvOffNoCalib row 1 sonoffovoff1 |
---|
500 | newwin 1 1 |
---|
501 | plot2d sonoffovoff0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta" |
---|
502 | plot2d sonoffovoff1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta" |
---|
503 | settitle "Raw (ON-OFF)/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
504 | setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt |
---|
505 | |
---|
506 | graphicatt "xylimits=1250,1500,-0.01,0.01" |
---|
507 | del snocal0 snocal1 |
---|
508 | objaoper meanNoCalib row 0 snocal0 |
---|
509 | objaoper meanNoCalib row 1 snocal1 |
---|
510 | newwin 1 1 |
---|
511 | plot2d snocal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta" |
---|
512 | plot2d snocal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta" |
---|
513 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
514 | setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt |
---|
515 | |
---|
516 | #del sruncal0 sruncal1 |
---|
517 | #objaoper meanPerRunCalib row 0 sruncal0 |
---|
518 | #objaoper meanPerRunCalib row 1 sruncal1 |
---|
519 | #newwin 1 1 |
---|
520 | #plot2d sruncal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta" |
---|
521 | #plot2d sruncal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta" |
---|
522 | #settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
523 | #setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt |
---|
524 | |
---|
525 | #newwin 1 1 |
---|
526 | #del scyclecal0 scyclecal1 |
---|
527 | #objaoper meanPerCycleCalib row 0 scyclecal0 |
---|
528 | #objaoper meanPerCycleCalib row 1 scyclecal1 |
---|
529 | #plot2d scyclecal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta" |
---|
530 | #plot2d scyclecal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta" |
---|
531 | #settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
532 | #setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt |
---|
533 | |
---|
534 | |
---|
535 | endscript |
---|
536 | |
---|
537 | |
---|
538 | |
---|
539 | |
---|
540 | #Main |
---|
541 | #use minuscule for source label |
---|
542 | |
---|
543 | openppf ${path}/onoffsurvey_${source}-${ncycles}Cycles.ppf |
---|
544 | print onoffevol |
---|
545 | |
---|
546 | #openppf ${path}/rawOnOffDiff_${source}-${ncycles}Cycles.ppf |
---|
547 | #ls |
---|
548 | |
---|
549 | set defatt "font=helvetica,bold,20 fixedfonsize" |
---|
550 | set axedefatt "font=helvetica,bold,30 fixedfonsize grid" |
---|
551 | |
---|
552 | set defatt "" |
---|
553 | set axedefatt "grid" |
---|
554 | |
---|
555 | graphicatt "" |
---|
556 | setaxesatt "$axedefatt" |
---|
557 | |
---|
558 | |
---|
559 | #diffOnOff |
---|
560 | #evolAt1420Freq |
---|
561 | #evolAt1420SideFreq |
---|
562 | #IntAt1420 |
---|
563 | #sigmaRaw1420Side |
---|
564 | #sigmaRaw1400a1420 |
---|
565 | #evolAt1400a1420OffOn |
---|