source: Sophya/trunk/AddOn/TAcq/dspms.pic@ 3910

Last change on this file since 3910 was 3683, checked in by ansari, 16 years ago

Mise a jour et ajout de fichier pour taritement multifibres apres

prise de donnees de Nov2009 a Pittsburgh

  • Introduction des classes BRMultiFitsReader et BRBaseProcessor Reza, 27/11/2009
File size: 1.9 KB
RevLine 
[3683]1# Script affichage spectre moyennes fait par Monitoring
2if ( $# < 2 ) then
3 echo ' dspms.pic/Erreur - Usage dspms Directory NumFile [BaseDir] '
4 return
5endif
6set dir $1
7set numf $2
8
9set bdir /Raid/PittsNov09
10if ( $# > 2 ) then
11 set bdir $3
12endif
13
14delobjs *
15# openppf /Raid/PittsNov09/$dir/meanspec$numf.ppf
16set flnm $bdir/$dir/meanspec$numf.ppf
17echo '------ Opening file ' $flnm
18openppf $flnm
19del myspec
20mv spectre myspec
21# mv /home/meanspec$numf myspec
22set nchan ${myspec.nrows}
23for i 0:$nchan
24 del smV$i
25 objaoper myspec row $i smV$i
26end
27
28setaxesatt 'font=helvetica,bold,16 fixedfontsize minorticks'
29zone 1
30
31set exfreq (n+2212)*250/4096+1250
32# set exfreq (n*250/4096+1250)
33plot2d smV0 $exfreq 10*log10(val) val>1.e-6 'black nsta cpts notit'
34setaxelabels ' Freq (MHz)' 'Spectra - dB' 'font=helvetica,bolditalic,16'
35
36set cols ( black darkviolet blue navyblue red orange yellow green )
37
38for i 1:${myspec.nrows}
39 plot2d smV$i $exfreq 10*log10(val) val>1.e-6 "$cols[i] cpts nsta same"
40end
41
42if ( $nchan < 3 ) then
43 zny = $nchan
44 znx = 1
45else
46 if ( $nchan < 7 ) then
47 zny = $nchan/2
48 znx = 2
49 else
50 zny = 3
51 znx = 3
52 endif
53endif
54
55defscript dspec
56 zone $znx $zny
57 for i 0:$nchan
58 disp smV$i "$cols[i]"
59 end
60endscript
61
62defscript dspeclg
63 zone $znx $zny
64 for i 0:$nchan
65 disp smV$i "logy $cols[i]"
66 end
67endscript
68
69defscript dhval
70 zone $znx $zny
71 for i 0:$nchan
72 disp hvalV$i "$cols[i]"
73 end
74endscript
75
76defscript dh2
77 zone $znx $zny
78 for i 0:$nchan
79 plot2d h2dV$i x y val>0 "notit nsta $cols[i]"
80 end
81endscript
82
83
84set lines ( B1.V1 B1.V2 B1.V3 B1.V4 B2.V1 B2.V2 B2.V3 B2.V4 )
85textdrawer lines cols 'font=helvetica,bold,16'
86
87# settitle 'Spectre 8 voies FFT - ScalingFactor=9' ' ' 'font=helvetica,bold,18'
88
89newwin
90dspeclg
91newwin
92dspec
93newwin
94dhval
95newwin
96dh2
97
98echo '----> use dspec dhval and dh2 scripts to check value histograms'
99
100
Note: See TracBrowser for help on using the repository browser.