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