Changeset 3989 in Sophya


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

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

Location:
trunk/Cosmo/RadioBeam
Files:
4 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) {
  • trunk/Cosmo/RadioBeam/calcpk2.cc

    r3986 r3989  
    7777  try {
    7878    bool fggaussian=true;  // true -> gaussian beam
     79    double maxratio=10.;   // valeur max du rapport des lobes lors de la correction de lobe
     80
    7981    // decodage argument optionnel
    8082    bool fgoptarg=true;
    81     double maxratio=10.;
    8283    while (fgoptarg) {
    8384      string fbo = arg[1];
  • trunk/Cosmo/RadioBeam/fgndsub.cc

    r3986 r3989  
    3333  BeamEffect beam(arrep_);
    3434  beam.Correct2RefLobe(tbeam_, skycube_, dx_, dy_, freq0_, dfreq_, maxratio_);
    35   cout << " ForegroundCleaner::BeamCorrections() done Maxratio=" << maxratio_ << endl;
     35  cout << " ForegroundCleaner::BeamCorrections() done " << endl;
    3636}
    3737
  • trunk/Cosmo/RadioBeam/lobe.cc

    r3986 r3989  
    112112  a.MinMax(min, max);
    113113  MeanSigma(a, mean, sigma);
    114   cout << " BeamEffect::Correct2RefLobe() - Result Min=" << min << " Max=" << max
     114  cout << " BeamEffect::Correct2RefLobe(MaxRatio=" << maxratio << ") - Result Min=" << min << " Max=" << max
    115115       << " Mean=" << mean << " Sigma=" << sigma << endl;
    116116  return;
Note: See TracChangeset for help on using the changeset viewer.