| [3756] | 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 | 
 | 
|---|
| [3769] | 7 | if ( $# < 1 ) then 
 | 
|---|
 | 8 |   echo ' Usage: exec plpkn PPFName_pknoise'
 | 
|---|
 | 9 |   return 
 | 
|---|
 | 10 | endif
 | 
|---|
| [3756] | 11 | 
 | 
|---|
| [3769] | 12 | echo "---> openppf $1 "
 | 
|---|
 | 13 | openppf $1
 | 
|---|
 | 14 | 
 | 
|---|
 | 15 | echo '----> Executing anapkn.pic'
 | 
|---|
 | 16 | exec anapkn.pic
 | 
|---|
 | 17 | setup5 
 | 
|---|
 | 18 | scalewz 0.7 2500 100 1
 | 
|---|
| [3947] | 19 | # scalewz 0.25 989.13 80.26 1
 | 
|---|
| [3769] | 20 | y1 = 500*$cct21
 | 
|---|
 | 21 | y2 = 9e4*$cct21
 | 
|---|
 | 22 | xyl = "xylimits=0.01,0.5,$y1,$y2 logx logy minorticks"
 | 
|---|
 | 23 | defscript 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'
 | 
|---|
 | 26 | endscript  
 | 
|---|
 | 27 | 
 | 
|---|
| [3756] | 28 | setaxesatt 'minorticks font=helvetica,bold,16 autofontsize'
 | 
|---|
 | 29 | 
 | 
|---|
 | 30 | Rad2Deg = 180/3.141596
 | 
|---|
 | 31 | R2D2 = $Rad2Deg*$Rad2Deg
 | 
|---|
 | 32 | Tsys = 50 
 | 
|---|
 | 33 | Delnu = 1.e6
 | 
|---|
 | 34 | 
 | 
|---|
 | 35 | #  A z = 0.7
 | 
|---|
 | 36 | z = 0.7
 | 
|---|
 | 37 | c = 3.e5
 | 
|---|
 | 38 | H = 100 
 | 
|---|
 | 39 | Da = 2500 
 | 
|---|
 | 40 | nu21 = 1.42e9
 | 
|---|
 | 41 | nu = $nu21/(1+$z)
 | 
|---|
 | 42 | pi23 = 8.*Pi*Pi*Pi
 | 
|---|
 | 43 | 
 | 
|---|
 | 44 | Lambda = 0.357 
 | 
|---|
 | 45 | Lam2 = $Lambda*$Lambda 
 | 
|---|
 | 46 | 
 | 
|---|
 | 47 | Dx = 100
 | 
|---|
 | 48 | Dy = 100
 | 
|---|
 | 49 | 
 | 
|---|
 | 50 | defscript 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"
 | 
|---|
 | 64 | endscript 
 | 
|---|
 | 65 | 
 | 
|---|
| [3769] | 66 | defscript 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' 
 | 
|---|
 | 79 | endscript 
 | 
|---|
| [3756] | 80 | 
 | 
|---|
| [3769] | 81 | defscript 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' 
 | 
|---|
 | 98 | endscript 
 | 
|---|
| [3756] | 99 | 
 | 
|---|
| [3769] | 100 | defscript 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' 
 | 
|---|
| [3756] | 111 | 
 | 
|---|
| [3769] | 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'      
 | 
|---|
 | 123 | endscript
 | 
|---|
 | 124 | 
 | 
|---|
 | 125 | defscript xxx
 | 
|---|
| [3756] | 126 | newwin
 | 
|---|
 | 127 | disp mfill 'h2disp=img colbr128 notit'
 | 
|---|
 | 128 | setaxelabels 'kx (Radian^-1)  k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16' 
 | 
|---|
 | 129 | settitle ' u-v coverage , 400 x 5m Dishes - No Pointing' ' ' 'font=helvetica,bold,16' 
 | 
|---|
 | 130 | 
 | 
|---|
 | 131 | disp dish 'h2disp=img colbr128 notit'
 | 
|---|
 | 132 | setaxelabels 'kx (Radian^-1)  k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16' 
 | 
|---|
 | 133 | settitle ' u-v coverage , 100 m Dish' ' ' 'font=helvetica,bold,16' 
 | 
|---|
 | 134 | 
 | 
|---|
 | 135 | disp msparsfp 'h2disp=img colbr128 notit'
 | 
|---|
 | 136 | setaxelabels 'kx (Radian^-1)  k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16' 
 | 
|---|
 | 137 | settitle ' u-v coverage , 63 x 5m Dishes T-config - No Pointing' ' ' 'font=helvetica,bold,16' 
 | 
|---|
 | 138 | 
 | 
|---|
 | 139 | disp mspars 'h2disp=img colbr128 notit'
 | 
|---|
 | 140 | setaxelabels 'kx (Radian^-1)  k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16' 
 | 
|---|
 | 141 | settitle ' u-v coverage , 63 x 5m Dishes T-config - Pointing ~Pi/4' ' ' 'font=helvetica,bold,16' 
 | 
|---|
 | 142 | 
 | 
|---|
 | 143 | disp mcylf 'h2disp=img colbr128 notit'
 | 
|---|
 | 144 | setaxelabels 'kx (Radian^-1)  k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16' 
 | 
|---|
 | 145 | settitle ' u-v coverage , Filled Cylinder Array 8 Cyl 12mx96m ' ' ' 'font=helvetica,bold,16' 
 | 
|---|
 | 146 | 
 | 
|---|
 | 147 | disp mcylfP 'h2disp=img colbr128 notit'
 | 
|---|
 | 148 | setaxelabels 'kx (Radian^-1)  k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16' 
 | 
|---|
 | 149 | settitle ' u-v coverage , Perfect Filled Cylinder Array 8 Cyl 12mx96m ' ' ' 'font=helvetica,bold,16' 
 | 
|---|
 | 150 | 
 | 
|---|
 | 151 | disp m2cyl 'h2disp=img colbr128 notit'
 | 
|---|
 | 152 | setaxelabels 'kx (Radian^-1)  k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16' 
 | 
|---|
 | 153 | settitle ' u-v coverage , Pittsburgh 2 Cyl 16mx8m , dist=25m ' ' ' 'font=helvetica,bold,16' 
 | 
|---|
 | 154 | 
 | 
|---|
 | 155 | disp m2cylP 'h2disp=img colbr128 notit'
 | 
|---|
 | 156 | setaxelabels 'kx (Radian^-1)  k=1000 -> ~21 arcmin ' ' ky (Radian^-1) ' 'font=helvetica,bolditalic,16' 
 | 
|---|
 | 157 | settitle ' u-v coverage , Perfect-Pitts. 2 Cyl 16mx8m , dist=25m ' ' ' 'font=helvetica,bold,16' 
 | 
|---|
| [3769] | 158 | 
 | 
|---|
 | 159 | 
 | 
|---|
 | 160 | disp noiseD 'logy nsta' 
 | 
|---|
 | 161 | disp noiseD2 'same grey nsta'
 | 
|---|
 | 162 | disp noisemdf 'same cyan nsta'
 | 
|---|
 | 163 | disp noisemdf64 'same brown nsta'
 | 
|---|
 | 164 | disp noisemds 'same red nsta'
 | 
|---|
 | 165 | disp noisemdsC 'same orange nsta'
 | 
|---|
 | 166 | 
 | 
|---|
 | 167 | disp noisemdsB 'same yellow nsta'
 | 
|---|
 | 168 | disp noisemdsfp 'same yellow nsta'
 | 
|---|
 | 169 | # disp noisemdsd7 'same gold nsta'
 | 
|---|
 | 170 | disp noisefcyl 'same blue nsta'
 | 
|---|
 | 171 | disp noisefcylP 'same skyblue nsta'
 | 
|---|
 | 172 | disp noise3cylP 'same magenta nsta'
 | 
|---|
 | 173 | disp noise3cyl 'same violet nsta'
 | 
|---|
 | 174 | disp noise2cyl 'same forestgreen nsta'
 | 
|---|
 | 175 | disp noise2cylP 'same green nsta'
 | 
|---|
 | 176 | 
 | 
|---|
 | 177 | endscript 
 | 
|---|
 | 178 | 
 | 
|---|
 | 179 | defscript AA
 | 
|---|
 | 180 |   plnoisedish
 | 
|---|
 | 181 |   plpklss
 | 
|---|
 | 182 |   plnoiseA
 | 
|---|
 | 183 | endscript 
 | 
|---|
 | 184 | 
 | 
|---|
 | 185 | defscript BB
 | 
|---|
 | 186 |   plnoisedish
 | 
|---|
 | 187 |   plpklss
 | 
|---|
 | 188 |   plnoiseB
 | 
|---|
 | 189 | endscript 
 | 
|---|
 | 190 | 
 | 
|---|
 | 191 | defscript 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 |   
 | 
|---|
 | 217 | endscript  
 | 
|---|