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

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

Add clearscript evolAtCalibFreq

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 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
61
62newwin 1 2
63n/pl onoffevol.onoffRaw0%cycle ! ! "blue cpts notit nsta"
64settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
65n/pl onoffevol.onoffRaw1%cycle ! ! "red cpts notit nsta"
66setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Raw (a.u)" $axedefatt
67
68newwin 1 2
69n/proj hRaw0 onoffevol.onoffRaw0 ! ! ! "blue cpts notit"
70settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
71n/proj hRaw1 onoffevol.onoffRaw1 ! ! ! "red cpts notit"
72settitle "I[${fcalib}MHz/6.25MHz] Raw (a.u)"
73
74
75       
76newwin 1 2
77n/pl onoffevol.onoffRun0%cycle ! ! "blue cpts notit nsta"
78settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
79n/pl onoffevol.onoffRun1%cycle ! ! "red cpts notit nsta"
80setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Run (a.u)" $axedefatt
81
82
83newwin 1 2
84n/proj hRun0 onoffevol.onoffRun0 ! ! ! "blue cpts notit"
85settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
86n/proj hRun1 onoffevol.onoffRun1 ! ! ! "red cpts notit"
87settitle "I[${fcalib}MHz/6.25MHz] Run (a.u)"
88
89
90newwin 1 2
91n/pl onoffevol.onoffCycle0%cycle ! ! "blue cpts notit nsta"
92settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
93n/pl onoffevol.onoffCycle1%cycle ! ! "red cpts notit nsta"
94setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Cycle (a.u)" $axedefatt
95
96newwin 1 2
97n/proj hCycle0 onoffevol.onoffCycle0 ! ! ! "blue cpts notit"
98settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
99n/proj hCycle1 onoffevol.onoffCycle1 ! ! ! "red cpts notit"
100settitle "I[${fcalib}MHz/6.25MHz] Cycle (a.u)"
101
102
103endscript
104###########################################
105defscript 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
114graphicatt "xylimits=0,${ncycles},-0.02,0.02"
115
116newwin 1 2
117n/pl onoffevol.onoffRaw01420%cycle ! ! "blue cpts notit nsta"
118settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
119n/pl onoffevol.onoffRaw11420%cycle ! ! "red cpts notit nsta"
120setaxelabels "cycle" "I[${f1420low},${f1420high}]MHz Raw (a.u)" $axedefatt
121
122
123newwin 1 2
124n/pl onoffevol.onoffRun01420%cycle ! ! "blue cpts notit nsta"
125settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
126n/pl onoffevol.onoffRun11420%cycle ! ! "red cpts notit nsta"
127setaxelabels "cycle" "I[${f1420low},${f1420high}]MHz Run (a.u)" $axedefatt
128
129
130newwin 1 2
131n/pl onoffevol.onoffCycle01420%cycle ! ! "blue cpts notit nsta"
132settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
133n/pl onoffevol.onoffCycle11420%cycle ! ! "red cpts notit nsta"
134setaxelabels "cycle" "I[${f1420low},${f1420high}]MHz Cycle (a.u)" $axedefatt
135
136
137newh1d hSigmaRaw0 -0.01 0.01 25
138newh1d hSigmaRaw1 -0.01 0.01 25
139newh1d hSigmaRun0 -0.01 0.01 25
140newh1d hSigmaRun1 -0.01 0.01 25
141newh1d hSigmaCycl0 -0.01 0.01 25
142newh1d hSigmaCycl1 -0.01 0.01 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
238
239
240endscript
241##################################################
242defscript sigmaRaw1400a1420
243
244c++compile rebining
245c++link rebining.so dorebin
246
247
248#col 19 = onoffRaw0f14001420   Ch 0
249#col 20 = onoffRaw1f14001420  Ch 1
250
251ntcol2var onoffevol 19 linCh0All
252line2vec vecCh0All $linCh0All
253
254ntcol2var onoffevol 20 linCh1All
255line2vec vecCh1All $linCh1All
256
257set sigmaCh0 ""
258set errsigCh0 ""
259set sigmaCh1 ""
260set errsigCh1 ""
261
262
263foreach 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}"
285end
286
287
288newnt nt0 x y ey
289newnt nt1 x y ey
290
291set x0 ( $packVal )
292set y0 ( $sigmaCh0 )
293set ey0 ( $errsigCh0 )
294
295set x1 ( $packVal )
296set y1 ( $sigmaCh1 )
297set ey1 ( $errsigCh1 )
298       
299for i 0:$#x0
300 line2nt nt0 $x0[i] $y0[i] $ey0[i]
301 line2nt nt1 $x1[i] $y1[i] $ey1[i]
302end
303
304
305newwin 1 1
306plot2de nt0 x y 0 ey 1 "blue marker=fcircle,9 notit nsta"     
307plot2de nt1 x y 0 ey 1 "same red  marker=fcircle,9 notit nsta"
308n = ${#x0}-1
309func $y0[0]/sqrt(x) $x0[0] $x0[n]  100 "same"
310settitle "Sigma [1400,1420]MHz ${source} Ch 0 (blue) Ch 1 (red)" ' ' $defatt
311setaxelabels "num of cycles" "Sigma (a.u)" $axedefatt
312
313
314
315endscript
316###########################################
317defscript evolAt1410a1415OffOn
318
319graphicatt "xylimits=0,${ncycles},0.99,1.02"
320
321newwin 1 1
322n/pl onoffevol.offRaw0f14101415%cycle ! ! "blue cpts notit nsta"
323n/pl onoffevol.offRaw1f14101415%cycle ! ! "same red cpts notit nsta"
324n/pl onoffevol.onRaw0f14101415%cycle ! ! "same cyan cpts notit nsta"
325n/pl onoffevol.onRaw1f14101415%cycle ! ! "same orange cpts notit nsta"
326settitle "Raw (OFF,ON)/OFF  ${source} Ch 0 (blue/cyan) Ch 1 (red/orange) ${ncycles}cycles " ' ' $defatt
327setaxelabels "cycle" "I[1410,1415]MHz Raw (a.u)" $axedefatt
328       
329graphicatt "xylimits=0,${ncycles},-0.005,0.005"
330newwin 1 1
331n/pl onoffevol.(onRaw0f14101415-offRaw0f14101415)%cycle ! ! "blue cpts notit nsta"
332n/pl onoffevol.(onRaw1f14101415-offRaw1f14101415)%cycle ! ! "same red cpts notit nsta"
333settitle "Raw (OFF-ON)/OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
334setaxelabels "cycle" "DI [1410,1415]MHz Raw (a.u)" $axedefatt
335
336
337endscript
338###########################################
339defscript 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
348graphicatt "xylimits=0,${ncycles},-0.01,0.01"
349
350newwin 1 2
351n/pl onoffevol.onoffRaw01420side%cycle ! ! "blue cpts notit nsta"
352settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
353n/pl onoffevol.onoffRaw11420side%cycle ! ! "red cpts notit nsta"
354setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Raw (a.u)" $axedefatt
355
356
357newwin 1 2
358n/pl onoffevol.onoffRun01420side%cycle ! ! "blue cpts notit nsta"
359settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
360n/pl onoffevol.onoffRun11420side%cycle ! ! "red cpts notit nsta"
361setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Run (a.u)" $axedefatt
362
363
364newwin 1 2
365n/pl onoffevol.onoffCycle01420side%cycle ! ! "blue cpts notit nsta"
366settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
367n/pl onoffevol.onoffCycle11420side%cycle ! ! "red cpts notit nsta"
368setaxelabels "cycle" "I[1418,1419]U[1422,1423]MHz Cycle (a.u)" $axedefatt
369
370
371newh1d hSigmaSideRaw0 -0.01 0.01 25
372newh1d hSigmaSideRaw1 -0.01 0.01 25
373newh1d hSigmaSideRun0 -0.01 0.01 25
374newh1d hSigmaSideRun1 -0.01 0.01 25
375newh1d hSigmaSideCycl0 -0.01 0.01 25
376newh1d hSigmaSideCycl1 -0.01 0.01 25
377
378graphicatt ""
379
380newwin 1 1
381n/proj hSigmaSideRaw0 onoffevol.onoffRaw01420side ! ! ! "blue cpts notit"
382n/proj hSigmaSideRaw1 onoffevol.onoffRaw11420side ! ! ! "same red cpts notit"
383settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
384setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Raw" $axedefatt
385
386newwin 1 1
387n/proj hSigmaSideRun0 onoffevol.onoffRun01420side ! ! ! "blue cpts notit"
388n/proj hSigmaSideRun1 onoffevol.onoffRun11420side ! ! ! "same red cpts notit"
389settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
390setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Run" $axedefatt
391
392
393newwin 1 1
394n/proj hSigmaSideCycl0 onoffevol.onoffCycle01420side ! ! ! "blue cpts notit"
395n/proj hSigmaSideCycl1 onoffevol.onoffCycle11420side ! ! ! "same red cpts notit"
396settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
397setaxelabels "(a.u)" "I[1418,1419]U[1422,1423]MHz Cycle" $axedefatt
398
399
400endscript
401
402###########################################
403defscript 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
413graphicatt "xylimits=0,${ncycles},-0.1,0.1"
414
415newwin 1 2
416n/pl onoffevol.${nbins1420}*(onoffRaw01420-onoffRaw01420side)%cycle ! ! "blue cpts notit nsta"
417settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
418n/pl onoffevol.${nbins1420}*(onoffRaw11420-onoffRaw11420side)%cycle ! ! "red cpts notit nsta"
419setaxelabels "cycle" "I 1420MHz Raw (a.u)" $axedefatt
420
421
422newwin 1 2
423n/pl onoffevol.${nbins1420}*(onoffRun01420-onoffRun01420side)%cycle ! ! "blue cpts notit nsta"
424settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
425n/pl onoffevol.${nbins1420}*(onoffRun11420-onoffRun11420side)%cycle ! ! "red cpts notit nsta"
426setaxelabels "cycle" "I 1420MHz Run (a.u)" $axedefatt
427
428
429newwin 1 2
430n/pl onoffevol.${nbins1420}*(onoffCycle01420-onoffCycle01420side)%cycle ! ! "blue cpts notit nsta"
431settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
432n/pl onoffevol.${nbins1420}*(onoffCycle11420-onoffCycle11420side)%cycle ! ! "red cpts notit nsta"
433setaxelabels "cycle" "I 1420MHz Cycle (a.u)" $axedefatt
434
435
436newh1d h1420IntRaw0 -0.1 0.1 25
437newh1d h1420IntRaw1 -0.1 0.1 25
438newh1d h1420IntRun0 -0.1 0.1 25
439newh1d h1420IntRun1 -0.1 0.1 25
440newh1d h1420IntCycl0 -0.1 0.1 25
441newh1d h1420IntCycl1 -0.1 0.1 25
442
443graphicatt ""
444
445newwin 1 1
446n/proj h1420IntRaw0 onoffevol.${nbins1420}*(onoffRaw01420-onoffRaw01420side) ! ! ! "blue cpts notit"
447n/proj h1420IntRaw1 onoffevol.${nbins1420}*(onoffRaw11420-onoffRaw11420side) ! ! ! "same red cpts notit"
448settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt
449setaxelabels "(a.u)" "I 1420MHz Raw" $axedefatt
450
451newwin 1 1
452n/proj h1420IntRun0 onoffevol.${nbins1420}*(onoffRun01420-onoffRun01420side) ! ! ! "blue cpts notit"
453n/proj h1420IntRun1 onoffevol.${nbins1420}*(onoffRun11420-onoffRun11420side) ! ! ! "same red cpts notit"
454settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
455setaxelabels "(a.u)" "I 1420MHz Run" $axedefatt
456
457
458
459newwin 1 1
460n/proj h1420IntCycl0 onoffevol.${nbins1420}*(onoffCycle01420-onoffCycle01420side) ! ! ! "blue cpts notit"
461n/proj h1420IntCycl1 onoffevol.${nbins1420}*(onoffCycle11420-onoffCycle11420side) ! ! ! "same red cpts notit"
462settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
463setaxelabels "(a.u)" "I 1420MHz Cycle" $axedefatt
464
465
466
467endscript
468##################################################
469defscript 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
478graphicatt ""
479del sonovoff0 sonovoff1
480objaoper meanOnovOffNoCalib row 0 sonovoff0
481objaoper meanOnovOffNoCalib row 1 sonovoff1
482del soffovoff0 soffovoff1
483objaoper meanOffovOffNoCalib row 0 soffovoff0
484objaoper meanOffovOffNoCalib row 1 soffovoff1
485newwin 1 2
486plot2d sonovoff0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
487plot2d sonovoff1 (n/8192)*250+1250 val n>0 "same red cpts notit nsta"
488settitle "Raw ON/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
489setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
490plot2d soffovoff0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
491plot2d soffovoff1 (n/8192)*250+1250 val n>0 "same red cpts notit nsta"
492settitle "Raw OFF/OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
493setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
494
495
496graphicatt "xylimits=1250,1500,-0.01,0.01"
497del sonoffovoff0 sonoffovoff1
498objaoper meanOvOffNoCalib row 0 sonoffovoff0
499objaoper meanOvOffNoCalib row 1 sonoffovoff1
500newwin 1 1
501plot2d sonoffovoff0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
502plot2d sonoffovoff1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
503settitle "Raw (ON-OFF)/OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
504setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
505
506graphicatt "xylimits=1250,1500,-0.01,0.01"
507del snocal0 snocal1
508objaoper meanNoCalib row 0 snocal0
509objaoper meanNoCalib row 1 snocal1
510newwin 1 1
511plot2d snocal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
512plot2d snocal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
513settitle "Raw ON-OFF  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
514setaxelabels "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
535endscript
536
537
538
539
540#Main
541#use minuscule for source label
542
543openppf ${path}/onoffsurvey_${source}-${ncycles}Cycles.ppf
544print onoffevol
545
546#openppf ${path}/rawOnOffDiff_${source}-${ncycles}Cycles.ppf
547#ls
548
549set defatt "font=helvetica,bold,20 fixedfonsize"
550set axedefatt  "font=helvetica,bold,30 fixedfonsize grid"
551
552set defatt ""
553set axedefatt  "grid"
554
555graphicatt ""
556setaxesatt "$axedefatt"
557
558
559#diffOnOff
560#evolAt1420Freq
561#evolAt1420SideFreq
562#IntAt1420
563#sigmaRaw1420Side
564#sigmaRaw1400a1420
565#evolAt1400a1420OffOn
Note: See TracBrowser for help on using the repository browser.