source: BAORadio/AmasNancay/trunk/plotDiffOnOff.pic @ 552

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

improvment (jec)

File size: 2.9 KB
Line 
1#$1: source
2#$2: nber of cycles
3#$3: number of freq. combined for reducing mean/sigma
4
5set source $1
6set ncycles $2
7set nFreqBin $3
8set action $4
9
10set defatt "font=helvetica,bold,20"
11
12
13
14if ( ${action} == "mean" ) then
15
16openppf meanDiffOnOffRaw_${source}-${ncycles}Cycles.ppf
17
18
19##General Mean
20del s0 s1
21objaoper mean row 0 s0
22objaoper mean row 1 s1
23graphicatt "${defatt} xylimits=1250,1500,-0.01,0.01"
24newwin 1 1
25plot2d s0 (n/8192)*250+1250 val n>0 "cpts blue nsta notit"
26plot2d s1 (n/8192)*250+1250 val n>0 "same cpts red nsta notit"
27settitle "$source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)" ' ' $defatt
28setaxelabels "Freq. (MHz)" "<(ON-OFF)[r,c]/Gain[r]>_{r,c}" $defatt
29
30
31
32##Reduced Mean
33newwin 1 1
34del rs0 rs1
35objaoper meanred row 0 rs0
36objaoper meanred row 1 rs1
37plot2d rs0 (n/${nFreqBin})*250+1250 val n>0 "marker=fcircle,5 blue nsta notit"
38plot2d rs1 (n/${nFreqBin})*250+1250 val n>0 "same marker=fcircle,5 red nsta notit"
39settitle "$source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)" ' ' $defatt
40setaxelabels "Freq. (MHz)" "<(ON-OFF)[r,c]/Gain[r]>_{r,c} Rebin(${nFreqBin})" $defatt
41
42
43##Reduced Mean
44newwin 1 1
45del rss0 rss1
46objaoper sigmared row 0 rss0
47objaoper sigmared row 1 rss1
48plot2d rss0 (n/${nFreqBin})*250+1250 val n>0 "marker=fcircle,5 blue nsta notit"
49plot2d rss1 (n/${nFreqBin})*250+1250 val n>0 "same marker=fcircle,5 red nsta notit"
50settitle "$source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)" ' ' $defatt
51setaxelabels "Freq. (MHz)" "Sigma[(ON-OFF)[r,c]/Gain[r]] Rebin(${nFreqBin})" $defatt
52
53else
54
55openppf medianDiffOnOffRaw_${source}-${ncycles}Cycles.ppf
56
57
58##General Median
59del s0 s1
60objaoper median row 0 s0
61objaoper median row 1 s1
62graphicatt "xylimits=1250,1500,-0.01,0.01"
63newwin 1 1
64plot2d s0 (n/8192)*250+1250 val n>0 "cpts blue nsta notit"
65plot2d s1 (n/8192)*250+1250 val n>0 "same cpts red nsta notit"
66settitle "$source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)" ' ' $defatt
67setaxelabels "Freq. (MHz)" "Median[(ON-OFF)[r,c]/Gain[r]]"  $defatt
68
69
70##Reduced Mean of the median
71newwin 1 1
72del rs0 rs1
73objaoper meanmedred row 0 rs0
74objaoper meanmedred row 1 rs1
75graphicatt "xylimits=1250,1500,-0.01,0.01"
76plot2d rs0 (n/${nFreqBin})*250+1250 val n>0 "marker=fcircle,5 blue nsta notit"
77plot2d rs1 (n/${nFreqBin})*250+1250 val n>0 "same marker=fcircle,5 red nsta notit"
78settitle "$source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)" ' ' $defatt
79setaxelabels "Freq. (MHz)" "Mean Median[(ON-OFF)[r,c]/Gain[r]] Rebin(${nFreqBin})" $defatt
80
81
82##Reduced Sigma of the median
83newwin 1 1
84del rss0 rss1
85objaoper sigmamedred row 0 rss0
86objaoper sigmamedred row 1 rss1
87graphicatt "xylimits=1250,1500,0,0.01"
88plot2d rss0 (n/${nFreqBin})*250+1250 val n>0 "marker=fcircle,5 blue nsta notit"
89plot2d rss1 (n/${nFreqBin})*250+1250 val n>0 "same marker=fcircle,5 red nsta notit"
90settitle "$source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)" ' ' $defatt
91setaxelabels "Freq. (MHz)" "Sigma Median[(ON-OFF)[r,c]/Gain[r]] Rebin(${nFreqBin})" $defatt
92 
93
94endif
95
Note: See TracBrowser for help on using the repository browser.