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


Ignore:
Timestamp:
Jun 27, 2010, 4:57:36 PM (15 years ago)
Author:
ansari
Message:

Corrections diverses, Reza 27/06/2010

File:
1 edited

Legend:

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

    r3788 r3789  
    6161    if (narg>6) {
    6262      pixsignoise=atof(arg[6]);
    63       fgaddnoise=true;
     63      if (pixsignoise>1.e-6)  fgaddnoise=true;
    6464    }
    6565   
    6666    bool fgcorrbeam=true;
    67     double tbeamarcmin=30.;
     67    double tbeamarcmin=15.;
    6868    if (narg>7) {
    6969      tbeamarcmin=atof(arg[7]);
     
    119119    conv.setFrequency(Freq0MHz);
    120120    double lambda = conv.getLambda();
    121     Four2DResponse arep(2, InterfArrayDiametre/lambda, InterfArrayDiametre/lambda);
     121    Four2DResponse arep(2, InterfArrayDiametre/lambda, InterfArrayDiametre/lambda, lambda);
    122122    double DoL = 1.22/ArcminToRadian(tbeamarcmin);
    123123    Four2DResponse tbeam(2, DoL, DoL );
     
    128128      cleaner.BeamCorrections();
    129129    }
     130    cout << " calcpk2[3.b] : calling cleaner.CleanNegatives() ... " << endl;
     131    cleaner.CleanNegatives();
    130132    if (fgclnsrc) {
    131       cout << "calcpk2[3.b] : calling cleaner.CleanPointSources() with threshold NSigma=" << nsigsrc  << endl;
     133      cout << "calcpk2[3.c] : calling cleaner.CleanPointSources() with threshold NSigma=" << nsigsrc  << endl;
    132134      cleaner.CleanPointSources(nsigsrc);
    133135    }
     
    150152    RandomGenerator rg;
    151153    Four3DPk pkc(four3d, rg);
     154    double dkxmpc = DeuxPI/(double)exlss.SizeX()/XCellSizeMpc;
     155    double dkympc = DeuxPI/(double)exlss.SizeY()/YCellSizeMpc;
     156    double dkzmpc = DeuxPI/(double)exlss.SizeZ()/ZCellSizeMpc;
     157    pkc.SetCellSize(dkxmpc, dkympc, dkzmpc);
    152158   
    153159    HProf hp = pkc.ComputePk(0.,256);
Note: See TracChangeset for help on using the changeset viewer.