Changeset 3796 in Sophya for trunk/Cosmo/RadioBeam/repicon.cc


Ignore:
Timestamp:
Jun 29, 2010, 7:26:01 PM (15 years ago)
Author:
ansari
Message:

Suite modif utilisation de reponse calcule (tabulee) de l'interferometre pour soustraction avant-plans, Reza 29/06/2010

File:
1 edited

Legend:

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

    r3792 r3796  
    3636{
    3737  if (((narg>1)&&(strcmp(arg[1],"-h")==0))||(narg<3))  {
    38     cout << " Usage: repicon configId OutPPFName [Lambda] "
     38    cout << " Usage: repicon configId OutPPFName [Lambda=0.357] [RenormalizeMax]"
    3939         << " configs: f4x4 , f8x8 , f20x20 Filled array of nxn dishes \n"
    4040         << "          confA , confB, confC : semi-filled array of dishes \n"
     
    5454  if (outfile==".")  outfile = "repicon.ppf";
    5555  double LAMBDA=0.357 ;  // 21 cm at z=0.7
    56   if (narg>3) LAMBDA = atof(arg[2]);
    57 
     56  if (narg>3) LAMBDA = atof(arg[3]);
     57  bool fgrenorm=false;
     58  double rmax=1.;
     59  if (narg>4) {
     60    rmax=atof(arg[4]);
     61    fgrenorm=true;
     62  }
    5863  //-- end command line arguments
    5964 
     
    6166  try {  // exception handling try bloc at top level
    6267
    63     cout << " 2.c/ Creating MultiDish Filled Array " << endl;
    6468    double Ddish = 5.;
    6569    double Ddish2 = 7.5;
     
    122126    double LMAX = D;
    123127    bool fgnoauto = true;
    124     int NRX=100;
    125     int NRY=100;
     128    int NRX=200;
     129    int NRY=200;
    126130
    127131    MultiDish mdish(LAMBDA, LMAX, vdishes, fgnoauto);
     
    134138    PrtTim("Apres mdish.GetResponse()");
    135139
     140    Four2DRespTable mdresp(hrep, Dol, LAMBDA);
     141    if (fgrenorm) {
     142      cout << " repicon[2.b] call to mdresp.renormalize(" << rmax << ")";
     143      double omax=mdresp.renormalize(rmax);
     144      cout << " Old Max=" << omax << endl;
     145    }
    136146    cout << " repicon[3] : saving Four2DRespTable for config " << config << " to PPF file " << outfile << endl;
    137     Four2DRespTable mdresp(hrep, Dol, LAMBDA);
    138147    mdresp.writeToPPF(outfile);
    139148
Note: See TracChangeset for help on using the changeset viewer.