Changeset 3989 in Sophya
- Timestamp:
- May 6, 2011, 9:39:05 AM (13 years ago)
- Location:
- trunk/Cosmo/RadioBeam
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/applobe.cc
r3973 r3989 58 58 59 59 if ((narg < 3)||(strcmp(arg[1],"-h")==0)) { 60 cout << "Usage: applobe [-t -g -fib ] Diameter/Four2DRespTableFile In3DPPFName Out3DPPFName \n"60 cout << "Usage: applobe [-t -g -fib -mxr val] Diameter/Four2DRespTableFile In3DPPFName Out3DPPFName \n" 61 61 << " [TargetBeamDiam] [ResmapleFactor=0.5,0.333...] \n" << endl; 62 62 if ((narg>1)&&(strcmp(arg[1],"-h")==0)) { 63 63 cout << " -t -g : Triangular / gaussian beam shape (def=gaussian) \n" 64 64 << " -fib : Application of a fixed (freq.independent) lobe dish-triangle or gaussian \n" 65 << " -mxr val: Max beam correction factor (default=10.) \n" 65 66 << " Diameter/Four2DRespTableFile : dish diameter or 2D response PPF file name\n" 66 67 << " In3DPPFName Out3DPPFName: Input/Output PPF file names (TArray<r_4> 3D) \n" … … 77 78 bool fggaussian=true; // true -> gaussian beam 78 79 bool fixedbeam=false; // true -> apply freq. independent beam 80 double maxratio=10.; // valeur max du rapport des lobes lors de la correction de lobe 79 81 80 82 // decodage argument optionnel … … 85 87 else if (fbo=="-g") { fggaussian=true; arg++; narg--; } 86 88 else if (fbo=="-fib") { fixedbeam=true; arg++; narg--; } 89 else if (fbo=="-mxr") { arg++; maxratio=atof(arg[1]); arg++; narg-=2; } 87 90 else fgoptarg=false; 88 91 } … … 170 173 Four2DResponse tbeam(typcb, DoL, DoL ); 171 174 cout << "applobe[3]: calling Correct2RefLobe() with target beam Diameter=" << tbeamDiam 172 << " D/Lambda=" << DoL << " -> arcmin " << tbeamarcmin << " TypDishResp=" << typcb << endl; 173 beam.Correct2RefLobe(tbeam, incube, dx, dy, Freq0MHz, dfreq); 175 << " D/Lambda=" << DoL << " -> arcmin " << tbeamarcmin << " TypDishResp=" << typcb 176 << " MaxRatio=" << maxratio << endl; 177 beam.Correct2RefLobe(tbeam, incube, dx, dy, Freq0MHz, dfreq, maxratio); 174 178 } 175 179 else if (fixedbeam) { -
trunk/Cosmo/RadioBeam/calcpk2.cc
r3986 r3989 77 77 try { 78 78 bool fggaussian=true; // true -> gaussian beam 79 double maxratio=10.; // valeur max du rapport des lobes lors de la correction de lobe 80 79 81 // decodage argument optionnel 80 82 bool fgoptarg=true; 81 double maxratio=10.;82 83 while (fgoptarg) { 83 84 string fbo = arg[1]; -
trunk/Cosmo/RadioBeam/fgndsub.cc
r3986 r3989 33 33 BeamEffect beam(arrep_); 34 34 beam.Correct2RefLobe(tbeam_, skycube_, dx_, dy_, freq0_, dfreq_, maxratio_); 35 cout << " ForegroundCleaner::BeamCorrections() done Maxratio=" << maxratio_<< endl;35 cout << " ForegroundCleaner::BeamCorrections() done " << endl; 36 36 } 37 37 -
trunk/Cosmo/RadioBeam/lobe.cc
r3986 r3989 112 112 a.MinMax(min, max); 113 113 MeanSigma(a, mean, sigma); 114 cout << " BeamEffect::Correct2RefLobe( ) - Result Min=" << min << " Max=" << max114 cout << " BeamEffect::Correct2RefLobe(MaxRatio=" << maxratio << ") - Result Min=" << min << " Max=" << max 115 115 << " Mean=" << mean << " Sigma=" << sigma << endl; 116 116 return;
Note: See TracChangeset
for help on using the changeset viewer.