source: Sophya/trunk/Cosmo/RadioBeam/plpkn.pic@ 3769

Last change on this file since 3769 was 3769, checked in by ansari, 15 years ago

Corrections/amelioration du programme de calcul de la sensibilite interfero, Reza 07/05/2010

File size: 7.9 KB
Line 
1########################################################################
2### Script de trace de PNoise(k) et reponse dans le plan (u,v)
3### de l'interferometre a partir du fichier PPF produit par pknoise.cc
4### Fev - Avril 2010 , BAORadio/Reza
5########################################################################
6
7if ( $# < 1 ) then
8 echo ' Usage: exec plpkn PPFName_pknoise'
9 return
10endif
11
12echo "---> openppf $1 "
13openppf $1
14
15echo '----> Executing anapkn.pic'
16exec anapkn.pic
17setup5
18scalewz 0.7 2500 100 1
19y1 = 500*$cct21
20y2 = 9e4*$cct21
21xyl = "xylimits=0.01,0.5,$y1,$y2 logx logy minorticks"
22defscript plpklss
23 n/plot hpkz.val*${cct21}%$kk ! ! "same notit nsta connectpoints black $xyl line=solid,2"
24 addtext 0.03 2000 '*** P(k)-LSS ***' 'font=helvetica,bolditalic,16 black'
25endscript
26
27setaxesatt 'minorticks font=helvetica,bold,16 autofontsize'
28
29Rad2Deg = 180/3.141596
30R2D2 = $Rad2Deg*$Rad2Deg
31Tsys = 50
32Delnu = 1.e6
33
34# A z = 0.7
35z = 0.7
36c = 3.e5
37H = 100
38Da = 2500
39nu21 = 1.42e9
40nu = $nu21/(1+$z)
41pi23 = 8.*Pi*Pi*Pi
42
43Lambda = 0.357
44Lam2 = $Lambda*$Lambda
45
46Dx = 100
47Dy = 100
48
49defscript calcul
50 Dxol = $Dx/$Lambda
51 Dyol = $Dy/$Lambda
52
53 FOV = (1.2*1.2*$Lam2/$Dx/$Dy)
54 FOVDEG = $FOV*$R2D2
55 NPointing = 10000/$FOVDEG
56 tinteg = 365*86400/$NPointing
57 PNOISE = $Tsys*$Tsys/$tinteg/$Dxol/$Dyol
58 PNOISE = $PNOISE*$Da*$Da*$c/$H*(1+$z)/$nu
59# PNOISE = $PNOISE*$Da*$Da*$c/$H*(1+$z)/$nu/$pi23
60 PNOISE = $PNOISE*1.e6
61 echo " FOV = $FOV deg^2 NPointing= $NPointing"
62 echo " tinteg= $tinteg sec PNOISE= $PNOISE mK^2"
63endscript
64
65defscript plnoisedish
66 Dx = 100
67 Dy = 100
68 calcul
69 plot2d noiseD x/$Da val*$PNOISE nb>10 'line=solid,2 logy logx xylimits=0.002,0.8,1,1e5 navyblue grid cpts nsta notit'
70 Dx = 200
71 Dy = 200
72 calcul
73 plot2d noiseD2 x/$Da val*$PNOISE nb>10 'same line=solid,2 cpts grey nsta notit'
74 set lines ( '100mDish' '200mDish' )
75 set cols ( navyblue grey )
76 textdrawer lines cols 'frame font=helvetica,bold,16 inset=0.1,0.3,0.7,0.8'
77 setaxelabels 'k (Mpc^-1) ' 'PNoise(k) mk^2 Mpc^3' 'font=helvetica,bolditalic,16'
78endscript
79
80defscript plnoiseA
81 Dx = 5*0.95
82 Dy = 5*0.95
83 calcul
84 plot2d noisemdf64 x/$Da val*$PNOISE nb>10 'same line=solid,2 cpts red nsta notit'
85# plot2d noisemds x/$Da val*$PNOISE nb>10 'same line=solid,2 cpts red nsta notit'
86 plot2d noisemdsB x/$Da val*$PNOISE nb>10 'same line=solid,2 cpts siennared nsta notit'
87 plot2d noisemdsC x/$Da val*$PNOISE nb>10 'same line=solid,2 cpts violetred nsta notit'
88 Dx = 25*0.3
89 Dy = 0.5*0.9
90 calcul
91 plot2d noise2cyl x/$Da val*$PNOISE nb>10 'same line=solid,2 cpts forestgreen nsta notit'
92 plot2d noise2cylP x/$Da val*$PNOISE nb>10 'same line=solid,2 cpts green nsta notit'
93 set lines ( 'FilledA:64x5mD' 'SparseB:72x5mD' 'SparseC:129x5mD' 'Pitts2Cyl(=64C)' 'PerfPitts2Cyl(=64C)' )
94 set cols ( red siennared magenta forestgreen green )
95 textdrawer lines cols 'frame font=helvetica,bold,16 inset=0.1,0.3,0.15,0.35'
96 settitle ' PNoise(k) : Dishes/Cylinders, 64/72/129 channels' ' ' 'font=helvetica,bold,16'
97endscript
98
99defscript plnoiseB
100 Dx = 5*0.95
101 Dy = 5*0.95
102 calcul
103 plot2d noisemdsC x/$Da val*$PNOISE nb>10 'same line=solid,2 cpts red nsta notit'
104 plot2d noisemdf x/$Da val*$PNOISE nb>10 'same line=solid,2 cpts gold nsta notit'
105 Dx = 10*0.95
106 Dy = 0.5*0.9
107 calcul
108 plot2d noise3cyl x/$Da val*$PNOISE nb>10 'same line=solid,2 cpts violet nsta notit'
109 plot2d noise3cylP x/$Da val*$PNOISE nb>10 'same line=solid,2 cpts magenta nsta notit'
110
111 Dx = 12*0.95
112 Dy = 0.5*0.9
113 calcul
114 plot2d noisefcyl x/$Da val*$PNOISE nb>10 'same line=solid,2 cpts blue nsta notit'
115 plot2d noisefcylP x/$Da val*$PNOISE nb>10 'same line=solid,2 cpts royalblue nsta notit'
116
117 set lines ( 'SparseC:129x5mD' 'Filled400x5m' '3xCyl10x64m(=384C)' 'Perf3xCyl10x64m(=384C)' )
118 set lines ( $lines '8Cyl12x96m(=1536C)' 'Perf8Cyl12x96m(=1536C)' )
119 set cols ( red gold violet magenta blue royalblue )
120 textdrawer lines cols 'frame font=helvetica,bold,16 inset=0.25,0.55,0.6,0.95'
121 settitle ' PNoise(k) : Dishes/Cylinders, 129/384/400/1536 channels' ' ' 'font=helvetica,bold,16'
122endscript
123
124defscript xxx
125newwin
126disp mfill 'h2disp=img colbr128 notit'
127setaxelabels 'kx (Radian^-1) k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16'
128settitle ' u-v coverage , 400 x 5m Dishes - No Pointing' ' ' 'font=helvetica,bold,16'
129
130disp dish 'h2disp=img colbr128 notit'
131setaxelabels 'kx (Radian^-1) k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16'
132settitle ' u-v coverage , 100 m Dish' ' ' 'font=helvetica,bold,16'
133
134disp msparsfp 'h2disp=img colbr128 notit'
135setaxelabels 'kx (Radian^-1) k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16'
136settitle ' u-v coverage , 63 x 5m Dishes T-config - No Pointing' ' ' 'font=helvetica,bold,16'
137
138disp mspars 'h2disp=img colbr128 notit'
139setaxelabels 'kx (Radian^-1) k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16'
140settitle ' u-v coverage , 63 x 5m Dishes T-config - Pointing ~Pi/4' ' ' 'font=helvetica,bold,16'
141
142disp mcylf 'h2disp=img colbr128 notit'
143setaxelabels 'kx (Radian^-1) k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16'
144settitle ' u-v coverage , Filled Cylinder Array 8 Cyl 12mx96m ' ' ' 'font=helvetica,bold,16'
145
146disp mcylfP 'h2disp=img colbr128 notit'
147setaxelabels 'kx (Radian^-1) k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16'
148settitle ' u-v coverage , Perfect Filled Cylinder Array 8 Cyl 12mx96m ' ' ' 'font=helvetica,bold,16'
149
150disp m2cyl 'h2disp=img colbr128 notit'
151setaxelabels 'kx (Radian^-1) k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16'
152settitle ' u-v coverage , Pittsburgh 2 Cyl 16mx8m , dist=25m ' ' ' 'font=helvetica,bold,16'
153
154disp m2cylP 'h2disp=img colbr128 notit'
155setaxelabels 'kx (Radian^-1) k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16'
156settitle ' u-v coverage , Perfect-Pitts. 2 Cyl 16mx8m , dist=25m ' ' ' 'font=helvetica,bold,16'
157
158
159disp noiseD 'logy nsta'
160disp noiseD2 'same grey nsta'
161disp noisemdf 'same cyan nsta'
162disp noisemdf64 'same brown nsta'
163disp noisemds 'same red nsta'
164disp noisemdsC 'same orange nsta'
165
166disp noisemdsB 'same yellow nsta'
167disp noisemdsfp 'same yellow nsta'
168# disp noisemdsd7 'same gold nsta'
169disp noisefcyl 'same blue nsta'
170disp noisefcylP 'same skyblue nsta'
171disp noise3cylP 'same magenta nsta'
172disp noise3cyl 'same violet nsta'
173disp noise2cyl 'same forestgreen nsta'
174disp noise2cylP 'same green nsta'
175
176endscript
177
178defscript AA
179 plnoisedish
180 plpklss
181 plnoiseA
182endscript
183
184defscript BB
185 plnoisedish
186 plpklss
187 plnoiseB
188endscript
189
190defscript POSCOV
191 disp posspB red
192 setaxelabels ' X (meters) ' ' Y (meters) ' 'font=helvetica,bolditalic,16'
193 settitle ' Config B dish positions - 72 dishes ' ' ' 'font=helvetica,bold,16'
194# w2ps
195
196 disp posspC red
197 setaxelabels ' X (meters) ' ' Y (meters) ' 'font=helvetica,bolditalic,16'
198 settitle ' Config C dish positions - 129 dishes ' ' ' 'font=helvetica,bold,16'
199# w2ps
200 disp mfill64 'h2disp=img colbr128 notit'
201 setaxelabels 'kx (Radian^-1) k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16'
202 settitle ' u-v coverage , Filled 8x8 - 64 x 5m Dishes' ' ' 'font=helvetica,bold,16'
203# w2ps
204 disp m3cyl 'h2disp=img colbr128 notit'
205 setaxelabels 'kx (Radian^-1) k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16'
206 settitle ' u-v coverage , 3 Cylinders 10mx64m ' ' ' 'font=helvetica,bold,16'
207# w2ps
208 disp mfill 'h2disp=img colbr128 notit'
209 setaxelabels 'kx (Radian^-1) k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16'
210 settitle ' u-v coverage , Filled 20x20 - 400 x 5m Dishes' ' ' 'font=helvetica,bold,16'
211# w2ps
212 disp msparsC 'h2disp=img colbr128 notit'
213 setaxelabels 'kx (Radian^-1) k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16'
214 settitle 'u-v coverage, Sparse-C: 129x5mD Over 80mx80m (Rot~Pi/4)' ' ' 'font=helvetica,bold,16'
215
216endscript
Note: See TracBrowser for help on using the repository browser.