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