Changeset 3164 in Sophya for trunk/Cosmo/RadioBeam
- Timestamp:
- Jan 31, 2007, 7:17:31 PM (19 years ago)
- Location:
- trunk/Cosmo/RadioBeam
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/recbeam.pic
r3163 r3164 35 35 36 36 # 3/ Faire tourner le programme - reconstruction cube X-Y-freq (en dehors de piapp) 37 Objs/treccyl XY fourcyl.ppf37 Objs/treccyl XY ncyl.ppf 38 38 39 39 # 4/ Affichage resultats 40 40 delobjs * 41 openppf fourcyl.ppf41 openppf ncyl.ppf 42 42 listobjs 43 43 … … 48 48 49 49 zone 1 3 50 disp recXYf0 'zoomx2 grey32 lut=sqrt,0.,0.1' 51 disp recXYf1 'zoomx2 grey32 lut=sqrt,0.,0.1' 52 disp recXYf2 'zoomx2 grey32 lut=sqrt,0.,0.1' 50 disp recXYf0 'zoomx2 grey32 lut=sqrt,0.,1' 51 plot2dw ntsrc sin(angrad)*freq*0.25*256+128 sin(angyrad)*freq*0.25*21+10 amp fabs(freqred-0.1)<0.01 'nsta same red marker=circle,7' 52 disp recXYf1 'zoomx2 grey32 lut=sqrt,0.,1' 53 disp recXYf2 'zoomx2 grey32 lut=sqrt,0.,1' 53 54 54 55 … … 56 57 objaoper recsrcbox slicexy 101 57 58 set cobj /home/slicexy_101 58 disp $cobj 'zoomx2 grey32 lut=sqrt,0., 0.1'59 disp $cobj 'zoomx2 grey32 lut=sqrt,0.,1' -
trunk/Cosmo/RadioBeam/treccyl.cc
r3163 r3164 33 33 static double freq0 = 2.; // frequence de base 34 34 static double da = 0.25; // pas des antennes le long du cylindre 35 static double snoise = 0.; //1.0;sigma du bruit36 static double tjit = 0. ; //0.05;sigma du jitter en temps37 static double tos = 0. ; //0.02;sigma des offsets en temps35 static double snoise = 1.0; // sigma du bruit 36 static double tjit = 0.05; // sigma du jitter en temps 37 static double tos = 0.02; // sigma des offsets en temps 38 38 static double gmean = 1.; // gain moyen 39 39 static double gsig = 0.; // sigma des gains … … 149 149 150 150 // BRSourceGen sg; 151 int nsf = 7;151 int nsf = 6; 152 152 vector<double> frq; 153 153 frq.push_back(0.1); … … 157 157 158 158 cout << "treccy/testmulticyl: BRSourceGen sg([frq=0.1,0.27,0.38], " << nsf << ")" << endl; 159 BRSourceGen sg(frq, nsf, M_PI/3, M_PI/150); 159 BRSourceGen sg(frq, nsf, M_PI/3, M_PI/60); 160 /* 160 161 int is; 161 162 for(is=0; is<nsf; is++) sg.angY(is) = 0.; 162 for(is=nsf; is<2*nsf; is++) sg.angY(is) = M_PI/150.; 163 for(is=2*nsf; is<3*nsf; is++) sg.angY(is) = -M_PI/150.; 163 for(is=nsf; is<2*nsf; is++) sg.angY(is) = M_PI/30.; 164 for(is=2*nsf; is<3*nsf; is++) sg.angY(is) = -M_PI/30.; 165 */ 164 166 // sg.WritePPF(string("brsrcm.ppf")); 165 167 // BRSourceGen sg(string("brsrcm.ppf")); … … 177 179 mcyl.SetGains(gmean, gsig, nantgz); 178 180 181 /* 182 for(int kkc=0; kkc<12; kkc++) 183 mcyl.AddCylinder(5.*kkc); 184 */ 185 179 186 mcyl.AddCylinder(0.); 180 187 mcyl.AddCylinder(5.); 181 mcyl.AddCylinder(10.); 182 mcyl.AddCylinder(18.); 183 mcyl.AddCylinder(30.); 184 mcyl.AddCylinder(46.); 185 mcyl.AddCylinder(64.); 186 188 mcyl.AddCylinder(15.); 189 mcyl.AddCylinder(35.); 190 mcyl.AddCylinder(65.); 191 187 192 mcyl.SetSources(sg); 188 193 … … 190 195 191 196 // mcyl.ReconstructCylinderPlaneS(true); 192 mcyl.ReconstructSourceBox(1 5, M_PI/500.);197 mcyl.ReconstructSourceBox(10, M_PI/600.); 193 198 194 199 POutPersist po(ppfname); … … 219 224 int kfmin, kfmax; 220 225 po << PPFNameTag("recsrcbox") << mcyl.getRecSrcBox(); 221 kfmin = mcyl.getRecSrcBox().SizeZ()*frq[0] - 1; kfmax = kfmin+2; 226 kfmin = mcyl.getRecSrcBox().SizeZ()/0.5*frq[0] - 2; kfmax = kfmin+2; 227 cout << "testmulticyl/Info: slice0 kfmin=" << kfmin << " kfmax=" << kfmax << endl; 222 228 { 223 229 TMatrix<r_4> slice0 = mcyl.getRecXYSlice(kfmin, kfmax); 224 230 po << PPFNameTag("recXYf0") << slice0; 225 231 } 226 kfmin = mcyl.getRecSrcBox().SizeZ()*frq[1] - 1; kfmax = kfmin+2; 232 kfmin = mcyl.getRecSrcBox().SizeZ()/0.5*frq[1] - 2; kfmax = kfmin+2; 233 cout << "testmulticyl/Info: slice1 kfmin=" << kfmin << " kfmax=" << kfmax << endl; 227 234 { 228 235 TMatrix<r_4> slice1 = mcyl.getRecXYSlice(kfmin, kfmax); 229 236 po << PPFNameTag("recXYf1") << slice1; 230 237 } 231 kfmin = mcyl.getRecSrcBox().SizeZ()*frq[2] - 1; kfmax = kfmin+2; 238 kfmin = mcyl.getRecSrcBox().SizeZ()/0.5*frq[2] - 2; kfmax = kfmin+2; 239 cout << "testmulticyl/Info: slice2 kfmin=" << kfmin << " kfmax=" << kfmax << endl; 232 240 { 233 241 TMatrix<r_4> slice2 = mcyl.getRecXYSlice(kfmin, kfmax);
Note:
See TracChangeset
for help on using the changeset viewer.