Changeset 3989 in Sophya for trunk/Cosmo/RadioBeam/applobe.cc
- Timestamp:
- May 6, 2011, 9:39:05 AM (14 years ago)
- File:
-
- 1 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) {
Note:
See TracChangeset
for help on using the changeset viewer.