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

Last change on this file since 611 was 611, checked in by torrento, 13 years ago

Add pic analysis files and emptydir function for proc_specmfib

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