Changeset 3986 in Sophya for trunk/Cosmo/RadioBeam/calcpk2.cc


Ignore:
Timestamp:
May 5, 2011, 7:25:18 PM (14 years ago)
Author:
ansari
Message:

modification rapport maxi a appliquer lors des corrections de beams, Reza 05/05/2011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/RadioBeam/calcpk2.cc

    r3973 r3986  
    77    R. Ansari , C. Magneville - Juin 2010
    88
    9 Usage: calcpk2 [-t -g] InMapLSS convFacLSS InMapSync convFacSync InMapRadioSource convFacRsc OutPkFile
     9Usage: calcpk2 [-t -g -mxr val] InMapLSS convFacLSS InMapSync convFacSync InMapRadioSource convFacRsc OutPkFile
    1010               [PixNoiseLevel] [Diameter/Four2DRespTableFile] [TargetBeamArcmin] [NSigSrcThr]
    1111---------------------------------------------------------------  */
     
    4444{
    4545  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"
    4747         << "        [PixNoiseLevel] [D_Dish/Four2DRespTableFile CorBeamDiam] \n"
    4848         << "        [NSigSrcThr] [P2/P1] [RecMapFile] " << endl;
    4949    if ((narg>1)&&(strcmp(arg[1],"-h")==0)) {
    5050      cout << "-t -g : Triangular / gaussian beam shape (def=gaussian) \n"
     51           << "-mxr val: Max beam correction factor (default=10.) \n "
    5152           << "- InMapLSS: Input 3D LSS cube (PPF file name) \n "
    5253           << "- convFacLSS: LSS cube conversion factor to mK (milliKelvin) \n"
     
    7879    // decodage argument optionnel
    7980    bool fgoptarg=true;
     81    double maxratio=10.;
    8082    while (fgoptarg) {
    8183      string fbo = arg[1];
    8284      if (fbo=="-t")  { fggaussian=false; arg++; narg--; }
    8385      else if (fbo=="-g")  { fggaussian=true; arg++; narg--; }
     86      else if (fbo=="-mxr")  { arg++; maxratio=atof(arg[1]); arg++; narg-=2; }
    8487      else fgoptarg=false;
    8588    }
     
    197200    Four2DResponse tbeam(typcb, DoL, DoL );
    198201
    199     ForegroundCleaner  cleaner(*arep_p, tbeam, skycube);
     202    ForegroundCleaner  cleaner(*arep_p, tbeam, skycube, maxratio);
    200203    if (fgcorrbeam) {
    201204      cout << "calcpk2[3.b] : calling cleaner.BeamCorrections() for target beam Diameter=" << tbeamDiam 
Note: See TracChangeset for help on using the changeset viewer.