[525] | 1 | |
---|
| 2 | set cols ( blue red black green purple orange cyan violet yellow ) |
---|
| 3 | |
---|
| 4 | set toppath "/sps/baoradio/AmasNancay/JEC" |
---|
| 5 | set source "Abell85" |
---|
| 6 | set srclower "abell85" |
---|
| 7 | set date "20110428" |
---|
| 8 | # implicitement firstcycle =1 |
---|
| 9 | set lastcycle 12 |
---|
| 10 | set lastP1cycle 13 |
---|
| 11 | |
---|
| 12 | #set showFigs ( 0 0 0 0 0 0 0 ) |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | ##################################### |
---|
| 17 | #Plots RAW ON-OFF (RAW = WO calibrations) |
---|
| 18 | ##################################### |
---|
| 19 | openppf ${toppath}/${source}/${date}${srclower}/diffOnOffRaw_${date}_${srclower}.ppf |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | #specONOFFRaw<i> Matrix 2 x 8192 : i=0... |
---|
| 23 | #specONOFFRawMean Matrix 2 x 8192 |
---|
| 24 | #specONOFFRaw2ChanMean Vector 8192 x 1 |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | ##################################### |
---|
| 28 | #Plots RAW ON-OFF with mean computed among the cycles AND(or NOT) the Channels |
---|
| 29 | ##################################### |
---|
| 30 | |
---|
| 31 | #if ( $showFigs[0] == 1 ) then |
---|
| 32 | echo "Figure 1.........." |
---|
| 33 | |
---|
| 34 | del sallcyclev0 |
---|
| 35 | objaoper specONOFFRawMean row 0 sallcyclev0 |
---|
| 36 | del sallcyclev1 |
---|
| 37 | objaoper specONOFFRawMean row 1 sallcyclev1 |
---|
| 38 | |
---|
| 39 | newwin 1 1 |
---|
| 40 | graphicatt "xylimits=1250,1500,-0.01,0.01" |
---|
| 41 | plot2d specONOFFRaw2ChanMean (n/8192)*250+1250 val n>0 "black cpts nsta notit" |
---|
| 42 | plot2d sallcyclev0 (n/8192)*250+1250 val n>0 "same blue cpts nsta notit" |
---|
| 43 | plot2d sallcyclev1 (n/8192)*250+1250 val n>0 "same red cpts nsta notit" |
---|
| 44 | settitle "ON-OFF $source Ch 0 (blue) Ch 1 (red) Mean (black) All cycles" |
---|
| 45 | setaxelabels "Freq. (MHz)" "I (a.u)" |
---|
| 46 | |
---|
| 47 | #endif |
---|
| 48 | |
---|
| 49 | ##################################### |
---|
| 50 | #Plots RAW ON-OFF chan 0 & 1 separaed and cycle per cycle |
---|
| 51 | ##################################### |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | #if ( $showFigs[1] == 1 ) then |
---|
| 55 | echo "Figure 2.........." |
---|
| 56 | |
---|
| 57 | newwin 1 1 |
---|
| 58 | graphicatt "xylimits=1250,1500,-0.01,0.01" |
---|
| 59 | del sc1v0 |
---|
| 60 | objaoper specONOFFRaw1 row 0 sc1v0 |
---|
| 61 | plot2d sc1v0 (n/8192)*250+1250 val n>0 "$cols[0] cpts nsta notit" |
---|
| 62 | for ic 2:${lastP1cycle} |
---|
| 63 | k = ${ic}-floor(${ic}/${#cols})*${#cols} |
---|
| 64 | del sc${ic}v0 |
---|
| 65 | objaoper specONOFFRaw${ic} row 0 sc${ic}v0 |
---|
| 66 | plot2d sc${ic}v0 (n/8192)*250+1250 val n>0 "same $cols[k] cpts nsta notit" |
---|
| 67 | end |
---|
| 68 | settitle "ON-OFF $source Ch 0 cycle per cycle" |
---|
| 69 | setaxelabels "Freq. (MHz)" "I (a.u)" |
---|
| 70 | |
---|
| 71 | newwin 1 1 |
---|
| 72 | graphicatt "xylimits=1250,1500,-0.01,0.01" |
---|
| 73 | del sc1v1 |
---|
| 74 | objaoper specONOFFRaw1 row 1 sc1v1 |
---|
| 75 | plot2d sc1v1 (n/8192)*250+1250 val n>0 "$cols[0] cpts nsta notit" |
---|
| 76 | for ic 2:${lastP1cycle} |
---|
| 77 | k = ${ic}-floor(${ic}/${#cols})*${#cols} |
---|
| 78 | del sc${ic}v1 |
---|
| 79 | objaoper specONOFFRaw${ic} row 1 sc${ic}v1 |
---|
| 80 | plot2d sc${ic}v1 (n/8192)*250+1250 val n>0 "same $cols[k] cpts nsta notit" |
---|
| 81 | end |
---|
| 82 | settitle "ON-OFF $source Ch 1 cycle per cycle" |
---|
| 83 | setaxelabels "Freq. (MHz)" "I (a.u)" |
---|
| 84 | |
---|
| 85 | #endif |
---|
| 86 | |
---|
| 87 | ##################################### |
---|
| 88 | # Plots RAW no calibration at all and no Diff ON-OFF |
---|
| 89 | ##################################### |
---|
| 90 | openppf ${toppath}/${source}/${date}${srclower}/dataRaw_${date}_${srclower}.ppf |
---|
| 91 | |
---|
| 92 | #if ( $showFigs[2] == 1 ) then |
---|
| 93 | echo "Figure 3........." |
---|
| 94 | |
---|
| 95 | newwin 2 2 |
---|
| 96 | graphicatt "xylimits=1250,1500,0.95,1.05" |
---|
| 97 | |
---|
| 98 | ### # |
---|
| 99 | ### On Ch 0 # On Ch 1 |
---|
| 100 | ###################### |
---|
| 101 | ### Off Ch 0# Off Ch 1 |
---|
| 102 | ### # |
---|
| 103 | |
---|
| 104 | set mode On |
---|
| 105 | set first 1 |
---|
| 106 | for ic 1:${lastP1cycle} |
---|
| 107 | k = ${ic}-floor(${ic}/${#cols})*${#cols} |
---|
| 108 | del sm${mode}c${ic}v0 |
---|
| 109 | objaoper specRaw${mode}${ic} row 0 sm${mode}c${ic}v0 |
---|
| 110 | if ( ${first} == 1 ) then |
---|
| 111 | plot2d sm${mode}c${ic}v0 (n/8192)*250+1250 val n>0 "$cols[k] cpts nsta notit" |
---|
| 112 | else |
---|
| 113 | plot2d sm${mode}c${ic}v0 (n/8192)*250+1250 val n>0 "same $cols[k] cpts nsta notit" |
---|
| 114 | endif |
---|
| 115 | set first 0 |
---|
| 116 | end |
---|
| 117 | settitle "$source Raw: On Ch 0" |
---|
| 118 | |
---|
| 119 | set first 1 |
---|
| 120 | for ic 1:${lastP1cycle} |
---|
| 121 | k = ${ic}-floor(${ic}/${#cols})*${#cols} |
---|
| 122 | del sm${mode}c${ic}v1 |
---|
| 123 | objaoper specRaw${mode}${ic} row 1 sm${mode}c${ic}v1 |
---|
| 124 | if ( ${first} == 1 ) then |
---|
| 125 | plot2d sm${mode}c${ic}v1 (n/8192)*250+1250 val n>0 "$cols[k] cpts nsta notit" |
---|
| 126 | else |
---|
| 127 | plot2d sm${mode}c${ic}v1 (n/8192)*250+1250 val n>0 "same $cols[k] cpts nsta notit" |
---|
| 128 | endif |
---|
| 129 | set first 0 |
---|
| 130 | end |
---|
| 131 | settitle "$source Raw: On Ch 1" |
---|
| 132 | |
---|
| 133 | set mode Off |
---|
| 134 | set first 1 |
---|
| 135 | for ic 1:${lastP1cycle} |
---|
| 136 | k = ${ic}-floor(${ic}/${#cols})*${#cols} |
---|
| 137 | del sm${mode}c${ic}v0 |
---|
| 138 | objaoper specRaw${mode}${ic} row 0 sm${mode}c${ic}v0 |
---|
| 139 | if ( ${first} == 1 ) then |
---|
| 140 | plot2d sm${mode}c${ic}v0 (n/8192)*250+1250 val n>0 "$cols[k] cpts nsta notit" |
---|
| 141 | else |
---|
| 142 | plot2d sm${mode}c${ic}v0 (n/8192)*250+1250 val n>0 "same $cols[k] cpts nsta notit" |
---|
| 143 | endif |
---|
| 144 | set first 0 |
---|
| 145 | end |
---|
| 146 | settitle "$source Raw: Off Ch 0" |
---|
| 147 | |
---|
| 148 | set first 1 |
---|
| 149 | for ic 1:${lastP1cycle} |
---|
| 150 | k = ${ic}-floor(${ic}/${#cols})*${#cols} |
---|
| 151 | del sm${mode}c${ic}v1 |
---|
| 152 | objaoper specRaw${mode}${ic} row 1 sm${mode}c${ic}v1 |
---|
| 153 | if ( ${first} == 1 ) then |
---|
| 154 | plot2d sm${mode}c${ic}v1 (n/8192)*250+1250 val n>0 "$cols[k] cpts nsta notit" |
---|
| 155 | else |
---|
| 156 | plot2d sm${mode}c${ic}v1 (n/8192)*250+1250 val n>0 "same $cols[k] cpts nsta notit" |
---|
| 157 | endif |
---|
| 158 | set first 0 |
---|
| 159 | end |
---|
| 160 | settitle "$source Raw: Off Ch 1" |
---|
| 161 | |
---|
| 162 | #endif |
---|
| 163 | |
---|
| 164 | ##################################### |
---|
| 165 | #Plots RAW ON-OFF MEAN REDUCED chan 0 & 1 separaed and cycle per cycle |
---|
| 166 | ##################################### |
---|
| 167 | |
---|
| 168 | #if ( $showFigs[3] == 1 ) then |
---|
| 169 | echo "Figure 4.........." |
---|
| 170 | |
---|
| 171 | newwin 1 1 |
---|
| 172 | graphicatt "xylimits=1250,1500,-0.01,0.01" |
---|
| 173 | del sc1v0 |
---|
| 174 | objaoper redMeanONOFFRaw1 row 0 sc1v0 |
---|
| 175 | plot2d sc1v0 (n/32)*250+1250 val n>0 "$cols[0] marker=fcircle,7 nsta notit" |
---|
| 176 | for ic 2:${lastP1cycle} |
---|
| 177 | k = ${ic}-floor(${ic}/${#cols})*${#cols} |
---|
| 178 | del sc${ic}v0 |
---|
| 179 | objaoper redMeanONOFFRaw${ic} row 0 sc${ic}v0 |
---|
| 180 | plot2d sc${ic}v0 (n/32)*250+1250 val n>0 "same $cols[k] marker=fcircle,7 nsta notit" |
---|
| 181 | end |
---|
| 182 | settitle "ON-OFF Mean 32bins $source Ch 0 cycle per cycle" |
---|
| 183 | setaxelabels "Freq. (MHz)" "I (a.u)" |
---|
| 184 | |
---|
| 185 | |
---|
| 186 | newwin 1 1 |
---|
| 187 | graphicatt "xylimits=1250,1500,-0.01,0.01" |
---|
| 188 | del sc1v1 |
---|
| 189 | objaoper redMeanONOFFRaw1 row 1 sc1v1 |
---|
| 190 | plot2d sc1v1 (n/32)*250+1250 val n>0 "$cols[0] marker=fcircle,7 nsta notit" |
---|
| 191 | for ic 2:${lastP1cycle} |
---|
| 192 | k = ${ic}-floor(${ic}/${#cols})*${#cols} |
---|
| 193 | del sc${ic}v1 |
---|
| 194 | objaoper redMeanONOFFRaw${ic} row 1 sc${ic}v1 |
---|
| 195 | plot2d sc${ic}v1 (n/32)*250+1250 val n>0 "same $cols[k] marker=fcircle,7 nsta notit" |
---|
| 196 | end |
---|
| 197 | settitle "ON-OFF Mean 32bins $source Ch 1 cycle per cycle" |
---|
| 198 | setaxelabels "Freq. (MHz)" "I (a.u)" |
---|
| 199 | |
---|
| 200 | |
---|
| 201 | #endif |
---|
| 202 | |
---|
| 203 | ##################################### |
---|
| 204 | #Plots RAW ON-OFF SIGMA REDUCED chan 0 & 1 separaed and cycle per cycle |
---|
| 205 | ##################################### |
---|
| 206 | |
---|
| 207 | |
---|
| 208 | #if ( $showFigs[4] == 1 ) then |
---|
| 209 | echo "Figure 5.........." |
---|
| 210 | |
---|
| 211 | newwin 1 1 |
---|
| 212 | graphicatt "xylimits=1250,1500,0,0.01" |
---|
| 213 | del sc1v0 |
---|
| 214 | objaoper redSigmaONOFFRaw1 row 0 sc1v0 |
---|
| 215 | plot2d sc1v0 (n/32)*250+1250 val n>0 "$cols[0] marker=fcircle,7 nsta notit" |
---|
| 216 | for ic 2:${lastP1cycle} |
---|
| 217 | k = ${ic}-floor(${ic}/${#cols})*${#cols} |
---|
| 218 | del sc${ic}v0 |
---|
| 219 | objaoper redSigmaONOFFRaw${ic} row 0 sc${ic}v0 |
---|
| 220 | plot2d sc${ic}v0 (n/32)*250+1250 val n>0 "same $cols[k] marker=fcircle,7 nsta notit" |
---|
| 221 | end |
---|
| 222 | settitle "ON-OFF Sigma over 32bins $source Ch 0 cycle per cycle" |
---|
| 223 | setaxelabels "Freq. (MHz)" "I (a.u)" |
---|
| 224 | |
---|
| 225 | newwin 1 1 |
---|
| 226 | graphicatt "xylimits=1250,1500,0,0.01" |
---|
| 227 | del sc1v1 |
---|
| 228 | objaoper redSigmaONOFFRaw1 row 1 sc1v1 |
---|
| 229 | plot2d sc1v1 (n/32)*250+1250 val n>0 "$cols[0] marker=fcircle,7 nsta notit" |
---|
| 230 | for ic 2:${lastP1cycle} |
---|
| 231 | k = ${ic}-floor(${ic}/${#cols})*${#cols} |
---|
| 232 | del sc${ic}v1 |
---|
| 233 | objaoper redSigmaONOFFRaw${ic} row 1 sc${ic}v1 |
---|
| 234 | plot2d sc${ic}v1 (n/32)*250+1250 val n>0 "same $cols[k] marker=fcircle,7 nsta notit" |
---|
| 235 | end |
---|
| 236 | settitle "ON-OFF Sigma over 32bins $source Ch 1 cycle per cycle" |
---|
| 237 | setaxelabels "Freq. (MHz)" "I (a.u)" |
---|
| 238 | |
---|
| 239 | #endif |
---|
| 240 | |
---|
| 241 | ##################################### |
---|
| 242 | #Plots RAW ON-OFF MEAN REDUCED chan 0 & 1 separaed ALL cycles |
---|
| 243 | ##################################### |
---|
| 244 | |
---|
| 245 | #if ( $showFigs[5] == 1 ) then |
---|
| 246 | echo "Figure 6.........." |
---|
| 247 | |
---|
| 248 | newwin 1 1 |
---|
| 249 | graphicatt "xylimits=1250,1500,-0.01,0.01" |
---|
| 250 | del scallv0 |
---|
| 251 | del scallv1 |
---|
| 252 | |
---|
| 253 | objaoper redMeanONOFFRawAll row 0 scallv0 |
---|
| 254 | objaoper redMeanONOFFRawAll row 1 scallv1 |
---|
| 255 | plot2d scallv0 (n/32)*250+1250 val n>0 "blue marker=fcircle,7 nsta notit" |
---|
| 256 | plot2d scallv1 (n/32)*250+1250 val n>0 "red same marker=fcircle,7 nsta notit" |
---|
| 257 | settitle "ON-OFF Mean 32bins $source Ch 0 (blue) Ch 1 (red) All cycles" |
---|
| 258 | setaxelabels "Freq. (MHz)" "I (a.u)" |
---|
| 259 | |
---|
| 260 | #endif |
---|
| 261 | |
---|
| 262 | ##################################### |
---|
| 263 | #Plots RAW ON-OFF SIGMA REDUCED chan 0 & 1 separaed and cycle per cycle |
---|
| 264 | ##################################### |
---|
| 265 | |
---|
| 266 | |
---|
| 267 | #if ( $showFigs[5] == 1 ) then |
---|
| 268 | echo "Figure 6.........." |
---|
| 269 | |
---|
| 270 | newwin 1 1 |
---|
| 271 | graphicatt "xylimits=1250,1500,0,0.01" |
---|
| 272 | del scallv0 |
---|
| 273 | del scallv1 |
---|
| 274 | objaoper redSigmaONOFFRawAll row 0 scallv0 |
---|
| 275 | objaoper redSigmaONOFFRawAll row 1 scallv1 |
---|
| 276 | plot2d scallv0 (n/32)*250+1250 val n>0 "blue marker=fcircle,7 nsta notit" |
---|
| 277 | plot2d scallv1 (n/32)*250+1250 val n>0 "red same marker=fcircle,7 nsta notit" |
---|
| 278 | settitle "ON-OFF Sigma over 32bins $source Ch 0 (blue) Ch 1 (red) All cycles" |
---|
| 279 | setaxelabels "Freq. (MHz)" "I (a.u)" |
---|
| 280 | |
---|
| 281 | #endif |
---|