Changeset 3989 in Sophya for trunk/Cosmo/RadioBeam/applobe.cc


Ignore:
Timestamp:
May 6, 2011, 9:39:05 AM (14 years ago)
Author:
ansari
Message:

Propagation modif MaxRatio dds rapports deux lobes ds applobe.cc, Reza 06/05/2011

File:
1 edited

Legend:

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

    r3973 r3989  
    5858
    5959  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"
    6161         << "               [TargetBeamDiam] [ResmapleFactor=0.5,0.333...] \n" << endl;
    6262    if ((narg>1)&&(strcmp(arg[1],"-h")==0)) {
    6363      cout << "   -t -g : Triangular / gaussian beam shape (def=gaussian) \n"
    6464           << "   -fib :  Application of a fixed (freq.independent) lobe dish-triangle or gaussian \n"
     65           << "   -mxr val: Max beam correction factor (default=10.) \n"
    6566           << "   Diameter/Four2DRespTableFile : dish diameter or 2D response PPF file name\n"
    6667           << "   In3DPPFName Out3DPPFName: Input/Output PPF file names  (TArray<r_4> 3D) \n"
     
    7778  bool fggaussian=true;  // true -> gaussian beam
    7879  bool fixedbeam=false;  // true -> apply freq. independent beam
     80  double maxratio=10.;   // valeur max du rapport des lobes lors de la correction de lobe
    7981
    8082  // decodage argument optionnel
     
    8587    else if (fbo=="-g")  { fggaussian=true; arg++; narg--; }
    8688    else if (fbo=="-fib")  { fixedbeam=true; arg++; narg--; }
     89    else if (fbo=="-mxr")  { arg++; maxratio=atof(arg[1]); arg++; narg-=2; }
    8790    else fgoptarg=false;
    8891  }
     
    170173      Four2DResponse tbeam(typcb, DoL, DoL );
    171174      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);
    174178    }
    175179    else if (fixedbeam) {
Note: See TracChangeset for help on using the changeset viewer.