source: BAORadio/AmasNancay/trunk/etude_mergeAna.pic @ 628

Last change on this file since 628 was 628, checked in by torrento, 12 years ago

Minor changes (hist limits, packVal for A1205, A2440)

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