1 | defscript evolAtCalibFreq |
---|
2 | |
---|
3 | |
---|
4 | #Follow up of the intensity arround the Calib frequency in different calibration conditions |
---|
5 | # NO calibration |
---|
6 | # Calibration coeff. mean per Run |
---|
7 | # Calibration coeff. per cycles |
---|
8 | |
---|
9 | set fcalib $1 |
---|
10 | |
---|
11 | |
---|
12 | newwin 1 2 |
---|
13 | n/pl onoffevol.onoffRaw0%cycle ! ! "blue cpts notit nsta" |
---|
14 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
15 | n/pl onoffevol.onoffRaw1%cycle ! ! "red cpts notit nsta" |
---|
16 | setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Raw (a.u)" $axedefatt |
---|
17 | |
---|
18 | newwin 1 2 |
---|
19 | n/proj hRaw0 onoffevol.onoffRaw0 ! ! ! "blue cpts notit" |
---|
20 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
21 | n/proj hRaw1 onoffevol.onoffRaw1 ! ! ! "red cpts notit" |
---|
22 | settitle "I[${fcalib}MHz/6.25MHz] Raw (a.u)" |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | newwin 1 2 |
---|
27 | n/pl onoffevol.onoffRun0%cycle ! ! "blue cpts notit nsta" |
---|
28 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
29 | n/pl onoffevol.onoffRun1%cycle ! ! "red cpts notit nsta" |
---|
30 | setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Run (a.u)" $axedefatt |
---|
31 | |
---|
32 | |
---|
33 | newwin 1 2 |
---|
34 | n/proj hRun0 onoffevol.onoffRun0 ! ! ! "blue cpts notit" |
---|
35 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
36 | n/proj hRun1 onoffevol.onoffRun1 ! ! ! "red cpts notit" |
---|
37 | settitle "I[${fcalib}MHz/6.25MHz] Run (a.u)" |
---|
38 | |
---|
39 | |
---|
40 | newwin 1 2 |
---|
41 | n/pl onoffevol.onoffCycle0%cycle ! ! "blue cpts notit nsta" |
---|
42 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
43 | n/pl onoffevol.onoffCycle1%cycle ! ! "red cpts notit nsta" |
---|
44 | setaxelabels "cycle" "I[${fcalib}MHz/6.25MHz] Cycle (a.u)" $axedefatt |
---|
45 | |
---|
46 | newwin 1 2 |
---|
47 | n/proj hCycle0 onoffevol.onoffCycle0 ! ! ! "blue cpts notit" |
---|
48 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
49 | n/proj hCycle1 onoffevol.onoffCycle1 ! ! ! "red cpts notit" |
---|
50 | settitle "I[${fcalib}MHz/6.25MHz] Cycle (a.u)" |
---|
51 | |
---|
52 | |
---|
53 | endscript |
---|
54 | ########################################### |
---|
55 | defscript evolAt1420Freq |
---|
56 | |
---|
57 | |
---|
58 | #Follow up of the intensity arround the (1420.4 +/- 2) MHz frequency in different calibration conditions |
---|
59 | # NO calibration |
---|
60 | # Calibration coeff. mean per Run |
---|
61 | # Calibration coeff. per cycles |
---|
62 | |
---|
63 | |
---|
64 | graphicatt "xylimits=0,500,-0.01,0.01" |
---|
65 | |
---|
66 | newwin 1 2 |
---|
67 | n/pl onoffevol.onoffRaw01420%cycle ! ! "blue cpts notit nsta" |
---|
68 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
69 | n/pl onoffevol.onoffRaw11420%cycle ! ! "red cpts notit nsta" |
---|
70 | setaxelabels "cycle" "I[1420.4MHz +/- 2MHz] Raw (a.u)" $axedefatt |
---|
71 | |
---|
72 | |
---|
73 | newwin 1 2 |
---|
74 | n/pl onoffevol.onoffRun01420%cycle ! ! "blue cpts notit nsta" |
---|
75 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
76 | n/pl onoffevol.onoffRun11420%cycle ! ! "red cpts notit nsta" |
---|
77 | setaxelabels "cycle" "I[1420.4MHz +/- 2MHz] Run (a.u)" $axedefatt |
---|
78 | |
---|
79 | |
---|
80 | newwin 1 2 |
---|
81 | n/pl onoffevol.onoffCycle01420%cycle ! ! "blue cpts notit nsta" |
---|
82 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
83 | n/pl onoffevol.onoffCycle11420%cycle ! ! "red cpts notit nsta" |
---|
84 | setaxelabels "cycle" "I[1420.4MHz +/- 2MHz] Cycle (a.u)" $axedefatt |
---|
85 | |
---|
86 | |
---|
87 | newh1d hSigmaRaw0 -0.02 0.02 50 |
---|
88 | newh1d hSigmaRaw1 -0.02 0.02 50 |
---|
89 | newh1d hSigmaRun0 -0.02 0.02 50 |
---|
90 | newh1d hSigmaRun1 -0.02 0.02 50 |
---|
91 | newh1d hSigmaCycl0 -0.02 0.02 50 |
---|
92 | newh1d hSigmaCycl1 -0.02 0.02 50 |
---|
93 | |
---|
94 | graphicatt "" |
---|
95 | |
---|
96 | newwin 1 1 |
---|
97 | n/proj hSigmaRaw0 onoffevol.onoffRaw01420 ! ! ! "blue cpts notit" |
---|
98 | n/proj hSigmaRaw1 onoffevol.onoffRaw11420 ! ! ! "same red cpts notit" |
---|
99 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles " ' ' $defatt |
---|
100 | setaxelabels "(a.u)" "I[1420.4MHz +/- 2MHz] Raw" $axedefatt |
---|
101 | |
---|
102 | newwin 1 1 |
---|
103 | n/proj hSigmaRun0 onoffevol.onoffRun01420 ! ! ! "blue cpts notit" |
---|
104 | n/proj hSigmaRun1 onoffevol.onoffRun11420 ! ! ! "same red cpts notit" |
---|
105 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
106 | setaxelabels "(a.u)" "I[1420.4MHz +/- 2MHz] Run" $axedefatt |
---|
107 | |
---|
108 | |
---|
109 | newwin 1 1 |
---|
110 | n/proj hSigmaCycl0 onoffevol.onoffCycle01420 ! ! ! "blue cpts notit" |
---|
111 | n/proj hSigmaCycl1 onoffevol.onoffCycle11420 ! ! ! "same red cpts notit" |
---|
112 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
113 | setaxelabels "(a.u)" "I[1420.4MHz +/- 2MHz] Cycle" $axedefatt |
---|
114 | |
---|
115 | |
---|
116 | endscript |
---|
117 | ################################################## |
---|
118 | defscript diffOnOff |
---|
119 | |
---|
120 | # |
---|
121 | #Display the ON-OFF over the whole freq. range in diffrent Calib. conditions |
---|
122 | # NO calibration |
---|
123 | # Calibration coeff. mean per Run |
---|
124 | # Calibration coeff. per cycles |
---|
125 | # |
---|
126 | |
---|
127 | |
---|
128 | |
---|
129 | graphicatt "xylimits=1250,1500,-0.01,0.01" |
---|
130 | del snocal0 snocal1 |
---|
131 | objaoper meanNoCalib row 0 snocal0 |
---|
132 | objaoper meanNoCalib row 1 snocal1 |
---|
133 | newwin 1 1 |
---|
134 | plot2d snocal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta" |
---|
135 | plot2d snocal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta" |
---|
136 | settitle "Raw ON-OFF ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
137 | setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt |
---|
138 | |
---|
139 | del sruncal0 sruncal1 |
---|
140 | objaoper meanPerRunCalib row 0 sruncal0 |
---|
141 | objaoper meanPerRunCalib row 1 sruncal1 |
---|
142 | newwin 1 1 |
---|
143 | plot2d sruncal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta" |
---|
144 | plot2d sruncal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta" |
---|
145 | settitle "ON-OFF Calib Run ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
146 | setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt |
---|
147 | |
---|
148 | newwin 1 1 |
---|
149 | del scyclecal0 scyclecal1 |
---|
150 | objaoper meanPerCycleCalib row 0 scyclecal0 |
---|
151 | objaoper meanPerCycleCalib row 1 scyclecal1 |
---|
152 | plot2d scyclecal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta" |
---|
153 | plot2d scyclecal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta" |
---|
154 | settitle "ON-OFF Calib Cycle ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt |
---|
155 | setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt |
---|
156 | |
---|
157 | |
---|
158 | endscript |
---|
159 | |
---|
160 | |
---|
161 | |
---|
162 | |
---|
163 | #Main |
---|
164 | #use minuscule for source label |
---|
165 | |
---|
166 | set source $1 |
---|
167 | set ncycles $2 |
---|
168 | set fcalib $3 |
---|
169 | |
---|
170 | openppf onoffsurvey_${source}-${ncycles}Cycles.ppf |
---|
171 | print onoffevol |
---|
172 | |
---|
173 | set defatt "font=helvetica,bold,20 fixedfonsize" |
---|
174 | set axedefatt "font=helvetica,bold,30 fixedfonsize grid" |
---|
175 | |
---|
176 | set defatt "" |
---|
177 | set axedefatt "grid" |
---|
178 | |
---|
179 | graphicatt "" |
---|
180 | setaxesatt "" |
---|
181 | |
---|
182 | |
---|
183 | |
---|
184 | #diffOnOff |
---|
185 | |
---|
186 | |
---|
187 | evolAt1420Freq |
---|