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

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

Amelioration et modifs diverses lors de la redaction du papier, Reza 13/02/2011

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