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

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

suivi du OFF et ON /OFF filtre (jec)

File size: 16.6 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 evolAt1400a1420OffOn
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 evolAt1400a1420OffOn
301
302graphicatt "xylimits=0,500,0.99,1.02"
303
304newwin 1 1
305n/pl onoffevol.offRaw0f14001420%cycle ! ! "blue cpts notit nsta"
306n/pl onoffevol.offRaw1f14001420%cycle ! ! "same red cpts notit nsta"
307n/pl onoffevol.onRaw0f14001420%cycle ! ! "same cyan cpts notit nsta"
308n/pl onoffevol.onRaw1f14001420%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[1400,1420]MHz Raw (a.u)" $axedefatt
311       
312endscript
313###########################################
314defscript evolAt1420SideFreq
315
316
317#Follow up of the intensity arround the [${f1420low},${f1420high}]MHz frequency in different calibration conditions
318# NO calibration
319# Calibration coeff. mean per Run
320# Calibration coeff. per cycles
321
322
323graphicatt "xylimits=0,500,-0.01,0.01"
324
325newwin 1 2
326n/pl onoffevol.onoffRaw01420side%cycle ! ! "blue cpts notit nsta"
327settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
328n/pl onoffevol.onoffRaw11420side%cycle ! ! "red cpts notit nsta"
329setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Raw (a.u)" $axedefatt
330
331
332newwin 1 2
333n/pl onoffevol.onoffRun01420side%cycle ! ! "blue cpts notit nsta"
334settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
335n/pl onoffevol.onoffRun11420side%cycle ! ! "red cpts notit nsta"
336setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Run (a.u)" $axedefatt
337
338
339newwin 1 2
340n/pl onoffevol.onoffCycle01420side%cycle ! ! "blue cpts notit nsta"
341settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
342n/pl onoffevol.onoffCycle11420side%cycle ! ! "red cpts notit nsta"
343setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Cycle (a.u)" $axedefatt
344
345
346newh1d hSigmaSideRaw0 -0.01 0.01 25
347newh1d hSigmaSideRaw1 -0.01 0.01 25
348newh1d hSigmaSideRun0 -0.01 0.01 25
349newh1d hSigmaSideRun1 -0.01 0.01 25
350newh1d hSigmaSideCycl0 -0.01 0.01 25
351newh1d hSigmaSideCycl1 -0.01 0.01 25
352
353graphicatt ""
354
355newwin 1 1
356n/proj hSigmaSideRaw0 onoffevol.onoffRaw01420side ! ! ! "blue cpts notit"
357n/proj hSigmaSideRaw1 onoffevol.onoffRaw11420side ! ! ! "same red cpts notit"
358settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
359setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Raw" $axedefatt
360
361newwin 1 1
362n/proj hSigmaSideRun0 onoffevol.onoffRun01420side ! ! ! "blue cpts notit"
363n/proj hSigmaSideRun1 onoffevol.onoffRun11420side ! ! ! "same red cpts notit"
364settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
365setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Run" $axedefatt
366
367
368newwin 1 1
369n/proj hSigmaSideCycl0 onoffevol.onoffCycle01420side ! ! ! "blue cpts notit"
370n/proj hSigmaSideCycl1 onoffevol.onoffCycle11420side ! ! ! "same red cpts notit"
371settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
372setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Cycle" $axedefatt
373
374
375endscript
376
377###########################################
378defscript IntAt1420
379
380
381#Follow up of the intensity arround the [${f1420low},${f1420high}]MHz
382#frequency in different calibration conditions with baseline removed
383# NO calibration
384# Calibration coeff. mean per Run
385# Calibration coeff. per cycles
386
387
388graphicatt "xylimits=0,500,-0.1,0.1"
389
390newwin 1 2
391n/pl onoffevol.${nbins1420}*(onoffRaw01420-onoffRaw01420side)%cycle ! ! "blue cpts notit nsta"
392settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
393n/pl onoffevol.${nbins1420}*(onoffRaw11420-onoffRaw11420side)%cycle ! ! "red cpts notit nsta"
394setaxelabels "cycle" "I 1420MHz Raw (a.u)" $axedefatt
395
396
397newwin 1 2
398n/pl onoffevol.${nbins1420}*(onoffRun01420-onoffRun01420side)%cycle ! ! "blue cpts notit nsta"
399settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
400n/pl onoffevol.${nbins1420}*(onoffRun11420-onoffRun11420side)%cycle ! ! "red cpts notit nsta"
401setaxelabels "cycle" "I 1420MHz Run (a.u)" $axedefatt
402
403
404newwin 1 2
405n/pl onoffevol.${nbins1420}*(onoffCycle01420-onoffCycle01420side)%cycle ! ! "blue cpts notit nsta"
406settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
407n/pl onoffevol.${nbins1420}*(onoffCycle11420-onoffCycle11420side)%cycle ! ! "red cpts notit nsta"
408setaxelabels "cycle" "I 1420MHz Cycle (a.u)" $axedefatt
409
410
411newh1d h1420IntRaw0 -0.1 0.1 25
412newh1d h1420IntRaw1 -0.1 0.1 25
413newh1d h1420IntRun0 -0.1 0.1 25
414newh1d h1420IntRun1 -0.1 0.1 25
415newh1d h1420IntCycl0 -0.1 0.1 25
416newh1d h1420IntCycl1 -0.1 0.1 25
417
418graphicatt ""
419
420newwin 1 1
421n/proj h1420IntRaw0 onoffevol.${nbins1420}*(onoffRaw01420-onoffRaw01420side) ! ! ! "blue cpts notit"
422n/proj h1420IntRaw1 onoffevol.${nbins1420}*(onoffRaw11420-onoffRaw11420side) ! ! ! "same red cpts notit"
423settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
424setaxelabels "(a.u)" "I 1420MHz Raw" $axedefatt
425
426newwin 1 1
427n/proj h1420IntRun0 onoffevol.${nbins1420}*(onoffRun01420-onoffRun01420side) ! ! ! "blue cpts notit"
428n/proj h1420IntRun1 onoffevol.${nbins1420}*(onoffRun11420-onoffRun11420side) ! ! ! "same red cpts notit"
429settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
430setaxelabels "(a.u)" "I 1420MHz Run" $axedefatt
431
432
433
434newwin 1 1
435n/proj h1420IntCycl0 onoffevol.${nbins1420}*(onoffCycle01420-onoffCycle01420side) ! ! ! "blue cpts notit"
436n/proj h1420IntCycl1 onoffevol.${nbins1420}*(onoffCycle11420-onoffCycle11420side) ! ! ! "same red cpts notit"
437settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
438setaxelabels "(a.u)" "I 1420MHz Cycle" $axedefatt
439
440
441
442endscript
443##################################################
444defscript diffOnOff
445
446#
447#Display the ON-OFF over the whole freq. range in diffrent Calib. conditions
448# NO calibration
449# Calibration coeff. mean per Run
450# Calibration coeff. per cycles
451#
452
453graphicatt ""
454del sonovoff0 sonovoff1
455objaoper meanOnovOffNoCalib row 0 sonovoff0
456objaoper meanOnovOffNoCalib row 1 sonovoff1
457del soffovoff0 soffovoff1
458objaoper meanOffovOffNoCalib row 0 soffovoff0
459objaoper meanOffovOffNoCalib row 1 soffovoff1
460newwin 1 2
461plot2d sonovoff0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
462plot2d sonovoff1 (n/8192)*250+1250 val n>0 "same red cpts notit nsta"
463settitle "Raw ON/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
464setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
465plot2d soffovoff0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
466plot2d soffovoff1 (n/8192)*250+1250 val n>0 "same red cpts notit nsta"
467settitle "Raw OFF/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
468setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
469
470
471graphicatt "xylimits=1250,1500,-0.01,0.01"
472del sonoffovoff0 sonoffovoff1
473objaoper meanOvOffNoCalib row 0 sonoffovoff0
474objaoper meanOvOffNoCalib row 1 sonoffovoff1
475newwin 1 1
476plot2d sonoffovoff0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
477plot2d sonoffovoff1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
478settitle "Raw (ON-OFF)/OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
479setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
480
481
482
483graphicatt "xylimits=1250,1500,-0.01,0.01"
484del snocal0 snocal1
485objaoper meanNoCalib row 0 snocal0
486objaoper meanNoCalib row 1 snocal1
487newwin 1 1
488plot2d snocal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
489plot2d snocal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
490settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
491setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
492
493del sruncal0 sruncal1
494objaoper meanPerRunCalib row 0 sruncal0
495objaoper meanPerRunCalib row 1 sruncal1
496newwin 1 1
497plot2d sruncal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
498plot2d sruncal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
499settitle "ON-OFF Calib Run  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
500setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
501
502newwin 1 1
503del scyclecal0 scyclecal1
504objaoper meanPerCycleCalib row 0 scyclecal0
505objaoper meanPerCycleCalib row 1 scyclecal1
506plot2d scyclecal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
507plot2d scyclecal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
508settitle "ON-OFF Calib Cycle  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
509setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
510
511
512endscript
513
514
515
516
517#Main
518#use minuscule for source label
519
520
521
522
523openppf onoffsurvey_${source}-${ncycles}Cycles.ppf
524print onoffevol
525
526set defatt "font=helvetica,bold,20 fixedfonsize"
527set axedefatt  "font=helvetica,bold,30 fixedfonsize grid"
528
529set defatt ""
530set axedefatt  "grid"
531
532graphicatt ""
533setaxesatt "$axedefatt"
534
535
536#diffOnOff
537#evolAt1420Freq
538#evolAt1420SideFreq
539#IntAt1420
Note: See TracBrowser for help on using the repository browser.