Changeset 3948 in Sophya for trunk/Cosmo/RadioBeam


Ignore:
Timestamp:
Feb 16, 2011, 3:20:54 PM (15 years ago)
Author:
ansari
Message:

modifications de config cylindres pour papier, Reza 16/02/2011

Location:
trunk/Cosmo/RadioBeam
Files:
2 edited

Legend:

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

    r3947 r3948  
    4343       << "    -noise NoiseLevel (default=1.) \n"
    4444       << "    -renmax MaxValue (default : Do NOT renormalize 2D response value \n"   
    45        << "    -scut SCutValue (default=100.) \n"
    4645       << "    -ngen NGen (default=0) number of noise fourier amp generations \n"
    4746       << "       NGen=0 -> Call ComputeNoisePk(), else generate Fourier Amplitudes (random) \n"
    4847       << "    -z redshift (default=0.7) \n"
     48       << "    -scut SCutValue (default= -100.) \n"
     49       << "       if SCutValue<0. ==> SCut=MinNoisePower*(-SCutValue) \n"
    4950       << "    -prt PrtLev,PrtModulo (default=0,10) " << endl;
    5051  return;
     
    7677  double rmax=1.;
    7778  int NMAX = 0;
    78   double SCut=0.;
     79  double SCut=-100.;
     80  bool fgautoscut=true;
     81  double FacSCut=-SCut;
    7982  double z_Redshift=0.7 ;  // 21 cm at z=0.7 -> 0.357 m 
    8083  int prtlev=0;
     
    9295    else if (strcmp(arg[ka],"-scut")==0) {
    9396      SCut=atof(arg[ka+1]);    ka+=2;
     97      if (SCut<0.) { FacSCut=-SCut;  fgautoscut=true; }
    9498    }
    9599    else if (strcmp(arg[ka],"-ngen")==0) {
     
    154158    else cout << " pknoise[1]: Four2DResponse ( Diameter=" << DIAMETRE << " Lambda= " << lambda
    155159              << " DoL=" << DIAMETRE/lambda << " ) " << endl;
    156 
     160    Histo2D h2drep = arep_p->GetResponse();
     161    double repmax= h2drep.VMax();
     162    if (fgautoscut) {
     163      SCut = FacSCut/repmax;
     164      cout << " pknoise[1.b]: Four2DResponse.RepMax=" << repmax << " --> SCut=" << FacSCut << "/repmax="
     165           << SCut << endl;
     166    }
     167    else cout << " pknoise[1.b]: Four2DResponse.RepMax=" << repmax << " , SCut=" << SCut << endl;
    157168   
    158169    cout << " pknoise[2]: Instanciating object type Four3DPk  " << endl;
     
    167178      pkn.SetPrtLevel(prtlev,prtmod);
    168179      HProf hpn = pkn.Compute();
     180      cout << " pknoise[3.b]: writing hpn noise profile to " << outfile << endl;
    169181      po << hpn;
    170182    }
     
    173185      DataTable dtnoise;
    174186      HProf hpn = m3d.ComputeNoisePk(*(arep_p),fracmodok,dtnoise,SCut);
    175       po << hpn;
    176       string outfile2 = "x"+outfile;
    177       POutPersist po2(outfile2);
    178187      HProf h1dnoise=arep_p->GetProjNoiseLevel();
    179188      HProf h1drep=arep_p->GetProjResponse();
    180       po2 << PPFNameTag("dtnoise") << dtnoise;
    181       po2 << PPFNameTag("hpnoise") << hpn;
    182       po2 << PPFNameTag("fracmodok") << fracmodok;
    183       po2 << PPFNameTag("h1dnoise") << h1dnoise;
    184       po2 << PPFNameTag("h1drep") << h1drep;
     189      cout << " pknoise[3.b]: writing dtnoise,hpn,h2rep... with tags to " << outfile << endl;
     190      po << PPFNameTag("dtnoise") << dtnoise;
     191      po << PPFNameTag("hpnoise") << hpn;
     192      po << PPFNameTag("fracmodok") << fracmodok;
     193      po << PPFNameTag("h1dnoise") << h1dnoise;
     194      po << PPFNameTag("h1drep") << h1drep;
     195      po << PPFNameTag("h2drep") << h2drep;
    185196    }
    186197    rc = 0;
  • trunk/Cosmo/RadioBeam/repicon.cc

    r3947 r3948  
    4343  cout << " Usage: repicon [-parname Value] configId OutPPFName \n"
    4444       << " configIds: f4x4,f8x8,f11x11,f20x20, confA,confB,confC,confD, hex12,cross11, \n"
    45        <<  "           f3cyl,f8cyl,f3cylp,f8cylp, nan12,nan24,nan36,nan40,nan128 \n"
     45       <<  "           f4cyl,f8cyl,f4cylp,f4cylp, nan12,nan24,nan36,nan40,nan128 \n"
    4646       << "   f4x4 , f8x8 , f11x11 , f20x20 Filled array of nxn dishes  \n"
    4747       << "   confA , confB, confC, confD : semi-filled array of dishes \n"
    4848       << "   hex12,cross11 : ASKAP like double hexagonal (12xD=12m), cross config (11xD=12m) \n"
    4949       << "   nan12,nan24,nan36,nan40,nan128: 3,4,6,5,8 cylinder like configurations with 12,24,36,40,128 dishes\n"
    50        << "   f3cyl, f8cyl , f3cylp, f8cylp : filled array of non perfect/perfect of n cylinders \n"
     50       << "   f4cyl, f8cyl , f4cylp, f8cylp : filled array of non perfect/perfect of n cylinders \n"
    5151       << "   f4cylw : filled array of 4 perfect of wide cylinders \n"
    5252       << "   pit2cyl,pit2cylw : 2 cylinders 15mx7m, 20mx10 for z=0.3 at Pittsburg (perfect) \n"
     
    159159    double cylW=12.;   // Largeur des cylindres
    160160    double cylRL=2*LAMBDA;  // Longeur des elements de reception le long du cylindre
    161     double etaW=0.95;   // Efficacite de couverture en largeur
    162     double etaRL=0.9;   // Efficacite de couverture le long du cylindre
     161    double etaW=0.9;   // Efficacite de couverture en largeur
     162    double etaRL=0.8;   // Efficacite de couverture le long du cylindre
    163163
    164164    vector<Dish> vdishes;
     
    178178      vdishes=CreateFilledSqConfig(20,Ddish, Eta);
    179179    }
    180     else if (config=="f3cyl") {
    181       cylW=10.;   cylRL=2*LAMBDA;
    182       vdishes=CreateFilledCylConfig(3, 92, cylW, cylRL, etaW, etaRL, true);
    183     }
    184     else if (config=="f3cylp") {
    185       cylW=10.;   cylRL=2*LAMBDA;
    186       vdishes=CreateFilledCylConfig(3, 92, cylW, cylRL, etaW, etaRL, false);
     180    else if (config=="f4cyl") {
     181      cylW=12.;   cylRL=2*LAMBDA;
     182      vdishes=CreateFilledCylConfig(4, 100, cylW, cylRL, etaW, etaRL, true);
     183    }
     184    else if (config=="f4cylp") {
     185      cylW=12.;   cylRL=2*LAMBDA;
     186      vdishes=CreateFilledCylConfig(4, 100, cylW, cylRL, etaW, etaRL, false);
    187187    }
    188188    else if (config=="f4cylw") {
     
    207207    else if (config=="f8cyl") {
    208208      cylW=12.;   cylRL=2*LAMBDA;
    209       vdishes=CreateFilledCylConfig(8, 160, cylW, cylRL, etaW, etaRL, true);
     209      vdishes=CreateFilledCylConfig(8, 120, cylW, cylRL, etaW, etaRL, true);
    210210    }
    211211    else if (config=="f8cylp") {
    212212      cylW=12.;   cylRL=2*LAMBDA;
    213       vdishes=CreateFilledCylConfig(8, 160, cylW, cylRL, etaW, etaRL, false);
     213      vdishes=CreateFilledCylConfig(8, 120, cylW, cylRL, etaW, etaRL, false);
    214214    }
    215215    else if (config=="confA") {
Note: See TracChangeset for help on using the changeset viewer.