source: BAORadio/AmasNancay/trunk/dabchrom_plot.pic @ 611

Last change on this file since 611 was 611, checked in by torrento, 13 years ago

Add pic analysis files and emptydir function for proc_specmfib

File size: 5.2 KB
Line 
1set user     "AST"
2set source   "Abell1205"
3set srclower "abell1205"
4set date     "20110415"
5set cycle    "8"
6set mode     "Off"
7set toppath  "/sps/baoradio/AmasNancay/${user}"
8set path     "${toppath}/${source}/dab"
9set ppf      "0"
10
11# Read DAB calibration in Jansky (Voie E / PKS1127-14)
12#-----------------------------------------------------
13n/read nt_dabjy ${toppath}/DAB_Jy.dat " " dabfreq,0 dabjy,1
14newwin 1 1
15n/pl nt_dabjy.dabjy%dabfreq 1 ! "marker=star,4 magenta notit"
16settitle "DAB Voie E / PKS1127-14. Juin 2011"
17
18
19# Read DAB calibration in A.U. (from BAORadio data)
20#--------------------------------------------------
21openppf ${path}/dabchrom_${date}_${srclower}_${mode}.ppf
22ls
23
24## Baseline
25del b0 b1 b0f b1f
26objaoper /home/base row 0 b0
27objaoper /home/base row 1 b1
28objaoper /home/basefilt row 0 b0f
29objaoper /home/basefilt row 1 b1f
30
31## First DAB
32del dab01 dab11 dab01f dab11f dab01n dab11n
33objaoper /home/firstdab row 0 dab01
34objaoper /home/firstdab row 1 dab11
35objaoper /home/firstdabfilt row 0 dab01f
36objaoper /home/firstdabfilt row 1 dab11f
37objaoper /home/firstdelta row 0 dab01d
38objaoper /home/firstdelta row 1 dab11d
39
40## Second DAB
41del dab02 dab12 dab02f dab12f dab02n dab12n
42objaoper /home/seconddab row 0 dab02
43objaoper /home/seconddab row 1 dab12
44objaoper /home/seconddabfilt row 0 dab02f
45objaoper /home/seconddabfilt row 1 dab12f
46objaoper /home/seconddelta row 0 dab02d
47objaoper /home/seconddelta row 1 dab12d
48
49## Mean(delta(first,second DAB)) per channel
50c++exec TVector<r_4> meandab0d(dab01.NElts()); KeepObj(meandab0d); \
51        TVector<r_4> meandab1d(dab01.NElts()); KeepObj(meandab1d); \
52        meandab0d=dab01d+dab02d; meandab0d/=2.; \
53        meandab1d=dab11d+dab12d; meandab1d/=2.;
54
55## Save Mean(delta(first,second DAB)) per channel into a ppf file
56#if ( ppf == "1" ) then
57#  del daboff
58#  c++exec TMatrix<r_4> daboff(2,dab01.NElts()); KeepObj(daboff); \
59#          daboff.Row(0)=meandab0d; daboff.Row(1)=meandab1d;
60#  saveppf daboff "${toppath}/${source}/daboff_${date}_${srclower}_calibcycle8.fits"
61#endif
62
63# Plot results
64#--------------
65graphicatt "xylimits=1250,1500,0,3"
66
67## Baseline
68newwin 1 1
69plot2d b0 (n/8192)*250+1250 val n>0 "blue cpts nstat notit"
70plot2d b1 (n/8192)*250+1250 val n>0 "same red cpts nstat notit"
71settitle "Baseline raw $source $date $mode Ch0 blue Ch1 red"
72
73newwin 1 1
74plot2d b0f (n/8192)*250+1250 val n>0 "blue cpts nstat notit"
75plot2d b1f (n/8192)*250+1250 val n>0 "same red cpts nstat notit"
76settitle "Baseline filt $source $date $mode Ch0 blue Ch1 red"
77
78## First DAB
79#newwin 1 1
80#plot2d dab01 (n/8192)*250+1250 val n>0 "blue cpts nstat notit"
81#plot2d dab11 (n/8192)*250+1250 val n>0 "same red cpts nstat notit"
82#settitle "First DAB raw $source $date $mode Ch0 blue Ch1 red"
83
84newwin 1 1
85plot2d dab01f (n/8192)*250+1250 val n>0 "blue cpts nstat notit"
86plot2d dab11f (n/8192)*250+1250 val n>0 "same red cpts nstat notit"
87settitle "First DAB filt $source $date $mode Ch0 blue Ch1 red"
88
89## Second DAB
90#newwin 1 1
91#plot2d dab02 (n/8192)*250+1250 val n>0 "blue cpts nstat notit"
92#plot2d dab12 (n/8192)*250+1250 val n>0 "same red cpts nstat notit"
93#settitle "Second DAB raw $source $date $mode Ch0 blue Ch1 red"
94
95newwin 1 1
96plot2d dab02f (n/8192)*250+1250 val n>0 "blue cpts nstat notit"
97plot2d dab12f (n/8192)*250+1250 val n>0 "same red cpts nstat notit"
98settitle "Second DAB filt $source $date $mode Ch0 blue Ch1 red"
99
100## Delta=DAB-baseline + Calibrated DAB in Jansky
101graphicatt "xylimits=1100,1600,0,30"
102newwin 1 1
103n/pl nt_dabjy.dabjy%dabfreq 1 ! "marker=star,4 turquoise notit nstat"
104plot2d dab01d (n/8192)*250+1250 val*18 n>0 "same blue cpts nstat notit"
105plot2d dab11d (n/8192)*250+1250 val*22 n>0 "same red cpts nstat notit"
106settitle "First DAB delta $source $date $mode"
107setaxelabels "Freq (MHz)" "Intensity" "bigboldfont"
108addline 1420 4 1430 4 "turquoise line=solid,3"
109addline 1420 3 1430 3 "blue line=solid,3"
110addline 1420 2 1430 2 "red line=solid,3"
111addtext 1440 4 "DAB Voie E (Jy)" "bigfont"
112addtext 1440 3 "Ch0*18 (A.U.)" "bigfont"
113addtext 1440 2 "Ch1*22 (A.U.)" "bigfont"
114
115newwin 1 1
116n/pl nt_dabjy.dabjy%dabfreq 1 ! "marker=star,4 turquoise notit nstat"
117plot2d dab02d (n/8192)*250+1250 val*18 n>0 "same blue cpts nstat notit"
118plot2d dab12d (n/8192)*250+1250 val*22 n>0 "same red cpts nstat notit"
119settitle "Second DAB delta $source $date $mode"
120setaxelabels "Freq (MHz)" "Intensity" "bigboldfont"
121addline 1420 4 1430 4 "turquoise line=solid,3"
122addline 1420 3 1430 3 "blue line=solid,3"
123addline 1420 2 1430 2 "red line=solid,3"
124addtext 1440 4 "DAB Voie E (Jy)" "bigfont"
125addtext 1440 3 "Ch0*18 (A.U.)" "bigfont"
126addtext 1440 2 "Ch1*22 (A.U.)" "bigfont"
127
128## Delta=Mean(DAB-baseline) + Calibrated DAB in Jansky
129graphicatt "xylimits=1100,1600,0,30"
130newwin 1 1
131n/pl nt_dabjy.dabjy%dabfreq 1 ! "marker=star,4 turquoise notit nstat"
132plot2d meandab0d (n/8192)*250+1250 val*18 n>0 "same blue cpts nstat notit"
133plot2d meandab1d (n/8192)*250+1250 val*23 n>0 "same red cpts nstat notit"
134settitle "Mean DAB delta $source $date $mode"
135setaxelabels "Freq (MHz)" "Intensity" "bigboldfont"
136addline 1420 4 1430 4 "turquoise line=solid,3"
137addline 1420 3 1430 3 "blue line=solid,3"
138addline 1420 2 1430 2 "red line=solid,3"
139addtext 1440 4 "DAB Voie E (Jy)" "bigfont"
140addtext 1440 3 "Ch0*18 (A.U.)" "bigfont"
141addtext 1440 2 "Ch1*23 (A.U.)" "bigfont"
Note: See TracBrowser for help on using the repository browser.