Changeset 3789 in Sophya for trunk/Cosmo/RadioBeam/calcpk2.cc
- Timestamp:
- Jun 27, 2010, 4:57:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/calcpk2.cc
r3788 r3789 61 61 if (narg>6) { 62 62 pixsignoise=atof(arg[6]); 63 fgaddnoise=true;63 if (pixsignoise>1.e-6) fgaddnoise=true; 64 64 } 65 65 66 66 bool fgcorrbeam=true; 67 double tbeamarcmin= 30.;67 double tbeamarcmin=15.; 68 68 if (narg>7) { 69 69 tbeamarcmin=atof(arg[7]); … … 119 119 conv.setFrequency(Freq0MHz); 120 120 double lambda = conv.getLambda(); 121 Four2DResponse arep(2, InterfArrayDiametre/lambda, InterfArrayDiametre/lambda );121 Four2DResponse arep(2, InterfArrayDiametre/lambda, InterfArrayDiametre/lambda, lambda); 122 122 double DoL = 1.22/ArcminToRadian(tbeamarcmin); 123 123 Four2DResponse tbeam(2, DoL, DoL ); … … 128 128 cleaner.BeamCorrections(); 129 129 } 130 cout << " calcpk2[3.b] : calling cleaner.CleanNegatives() ... " << endl; 131 cleaner.CleanNegatives(); 130 132 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; 132 134 cleaner.CleanPointSources(nsigsrc); 133 135 } … … 150 152 RandomGenerator rg; 151 153 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); 152 158 153 159 HProf hp = pkc.ComputePk(0.,256);
Note:
See TracChangeset
for help on using the changeset viewer.