Changeset 3986 in Sophya for trunk/Cosmo/RadioBeam/calcpk2.cc
- Timestamp:
- May 5, 2011, 7:25:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/calcpk2.cc
r3973 r3986 7 7 R. Ansari , C. Magneville - Juin 2010 8 8 9 Usage: calcpk2 [-t -g ] InMapLSS convFacLSS InMapSync convFacSync InMapRadioSource convFacRsc OutPkFile9 Usage: calcpk2 [-t -g -mxr val] InMapLSS convFacLSS InMapSync convFacSync InMapRadioSource convFacRsc OutPkFile 10 10 [PixNoiseLevel] [Diameter/Four2DRespTableFile] [TargetBeamArcmin] [NSigSrcThr] 11 11 --------------------------------------------------------------- */ … … 44 44 { 45 45 if ( (narg<6)||((narg>1)&&(strcmp(arg[1],"-h")==0)) ) { 46 cout << " Usage: [-t -g ] calcpk2 InMapLSS convFacLSS InMapFgnd convFacFgnd OutPkFile \n"46 cout << " Usage: [-t -g -mxr val] calcpk2 InMapLSS convFacLSS InMapFgnd convFacFgnd OutPkFile \n" 47 47 << " [PixNoiseLevel] [D_Dish/Four2DRespTableFile CorBeamDiam] \n" 48 48 << " [NSigSrcThr] [P2/P1] [RecMapFile] " << endl; 49 49 if ((narg>1)&&(strcmp(arg[1],"-h")==0)) { 50 50 cout << "-t -g : Triangular / gaussian beam shape (def=gaussian) \n" 51 << "-mxr val: Max beam correction factor (default=10.) \n " 51 52 << "- InMapLSS: Input 3D LSS cube (PPF file name) \n " 52 53 << "- convFacLSS: LSS cube conversion factor to mK (milliKelvin) \n" … … 78 79 // decodage argument optionnel 79 80 bool fgoptarg=true; 81 double maxratio=10.; 80 82 while (fgoptarg) { 81 83 string fbo = arg[1]; 82 84 if (fbo=="-t") { fggaussian=false; arg++; narg--; } 83 85 else if (fbo=="-g") { fggaussian=true; arg++; narg--; } 86 else if (fbo=="-mxr") { arg++; maxratio=atof(arg[1]); arg++; narg-=2; } 84 87 else fgoptarg=false; 85 88 } … … 197 200 Four2DResponse tbeam(typcb, DoL, DoL ); 198 201 199 ForegroundCleaner cleaner(*arep_p, tbeam, skycube );202 ForegroundCleaner cleaner(*arep_p, tbeam, skycube, maxratio); 200 203 if (fgcorrbeam) { 201 204 cout << "calcpk2[3.b] : calling cleaner.BeamCorrections() for target beam Diameter=" << tbeamDiam
Note:
See TracChangeset
for help on using the changeset viewer.