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