source: BAORadio/AmasNancay/trunk/etude_onoff.pic @ 547

Last change on this file since 547 was 547, checked in by campagne, 13 years ago

move to trunk the previous HEAD (jec)

File size: 8.5 KB
Line 
1
2set cols ( blue red black green purple orange cyan violet yellow )
3
4set toppath "/sps/baoradio/AmasNancay/JEC"
5set source "Abell${1}"
6set srclower "abell${1}"
7set date   "${2}"
8
9
10#####################################
11#Plots ON-OFF with all calibrations
12#####################################
13openppf ${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#####################################
24del sallcyclev0
25objaoper specONOFFMean row 0 sallcyclev0
26del sallcyclev1
27objaoper specONOFFMean row 1 sallcyclev1
28
29newwin 1 1
30graphicatt "xylimits=1250,1500,-0.5,0.5"
31plot2d specONOFF2ChanMean (n/8192)*250+1250 val n>0 "black cpts nsta notit"
32plot2d sallcyclev0        (n/8192)*250+1250 val n>0 "same blue cpts nsta notit"
33plot2d sallcyclev1        (n/8192)*250+1250 val n>0 "same red cpts nsta notit"
34settitle "ON-OFF  ${source}/${date} Ch 0 (blue) Ch 1 (red) Mean (black)  All cycles"
35setaxelabels "Freq. (MHz)" "I (Jy)"
36
37#####################################
38#Plots ON-OFF with all calibrations: chan 0 & 1 separaed and cycle per cycle
39#####################################
40newwin 1 1
41graphicatt "xylimits=1250,1500,-0.5,0.5"
42del sc1v0
43objaoper specONOFF1 row 0 sc1v0
44plot2d sc1v0 (n/8192)*250+1250 val n>0 "$cols[0] cpts nsta notit"
45for 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"
50end
51settitle "ON-OFF  ${source}/${date} Ch 0 cycle per cycle"
52setaxelabels "Freq. (MHz)" "I (Jy)"
53
54newwin 1 1
55graphicatt "xylimits=1250,1500,-0.5,0.5"
56del sc1v1
57objaoper specONOFF1 row 1 sc1v1
58plot2d sc1v1 (n/8192)*250+1250 val n>0 "$cols[0] cpts nsta notit"
59for 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"
64end
65settitle "ON-OFF  ${source}/${date} Ch 1 cycle per cycle"
66setaxelabels "Freq. (MHz)" "I (Jy)"
67
68
69#####################################
70# Plots RAW no calibration at all
71#####################################
72openppf ${toppath}/${source}/${date}${srclower}/dataRaw_${date}_${srclower}.ppf
73newwin 2 2
74graphicatt "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
82set mode On     
83set first 1
84for 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
94end
95settitle "${source}/${date} Raw: On Ch 0"
96
97set first 1
98for 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
108end
109settitle "${source}/${date} Raw: On Ch 1"
110
111set mode Off
112set first 1
113for 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
123end
124settitle "${source}/${date} Raw: Off Ch 0"
125
126set first 1
127for 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
137end
138settitle "${source}/${date} Raw: Off Ch 1"
139
140#####################################
141# Plots BAO calibration included
142#####################################
143openppf ${toppath}/${source}/${date}${srclower}/dataBAOCalib_${date}_${srclower}.ppf
144newwin 2 2
145#graphicatt "xylimits=1250,1500,0.95,1.05"
146graphicatt ""
147
148
149###         #
150### On Ch 0 # On Ch 1
151######################
152### Off Ch 0# Off Ch 1
153###         #
154
155set mode On     
156set first 1
157for 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
167end
168settitle "${source}/${date} BAOCalib: On Ch 0"
169
170set first 1
171for 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
181end
182settitle "${source}/${date} BAOCalib: On Ch 1"
183
184set mode Off
185set first 1
186for 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
196end
197settitle "${source}/${date} BAOCalib: Off Ch 0"
198
199set first 1
200for 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
210end
211settitle "${source}/${date} BAOCalib: Off Ch 1"
212
213#####################################
214# Plots BAO+RT calibration included
215#####################################
216openppf ${toppath}/${source}/${date}${srclower}/dataBAORTCalib_${date}_${srclower}.ppf
217newwin 2 2
218#graphicatt "xylimits=1250,1500,0.95,1.05"
219graphicatt ""
220
221
222###         #
223### On Ch 0 # On Ch 1
224######################
225### Off Ch 0# Off Ch 1
226###         #
227
228set mode On     
229set first 1
230for 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
240end
241settitle "${source}/${date} BAORTCalib: On Ch 0"
242
243set first 1
244for 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
254end
255settitle "${source}/${date} BAORTCalib: On Ch 1"
256
257set mode Off
258set first 1
259for 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
269end
270settitle "${source}/${date} BAORTCalib: Off Ch 0"
271
272set first 1
273for 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
283end
284settitle "${source}/${date} BAORTCalib: Off Ch 1"
285
Note: See TracBrowser for help on using the repository browser.