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

Last change on this file since 607 was 607, checked in by campagne, 13 years ago

improve ON et OFF sur OFF filtre (jec)

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