Changeset 3787 in Sophya for trunk/Cosmo/RadioBeam/specpk.cc
- Timestamp:
- Jun 25, 2010, 12:00:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/specpk.cc
r3783 r3787 151 151 // fourAmp represent 3-D fourier transform of a real input array. 152 152 // The second half of the array along Y and Z contain negative frequencies 153 double kxx, kyy, kzz ;153 double kxx, kyy, kzz, rep, amp; 154 154 // sa_size_t is large integer type 155 155 for(sa_size_t kz=0; kz<fourAmp.SizeZ(); kz++) { … … 158 158 kyy = (ky>fourAmp.SizeY()/2) ? -(double)(fourAmp.SizeY()-ky)*dky_ : (double)ky*dky_; 159 159 for(sa_size_t kx=0; kx<fourAmp.SizeX(); kx++) { 160 doublekxx=(double)kx*dkx_;161 doublerep = resp(kxx, kyy);160 kxx=(double)kx*dkx_; 161 rep = resp(kxx, kyy); 162 162 if (crmask&&(kz==0)) mask(ky,kx)=((rep<1.e-8)?9.e9:(1./rep)); 163 163 if (rep<1.e-8) fourAmp(kx, ky, kz) = complex<TF>(9.e9,0.); 164 164 else { 165 doubleamp = 1./sqrt(rep)/sqrt(2.);165 amp = 1./sqrt(rep)/sqrt(2.); 166 166 fourAmp(kx, ky, kz) = complex<TF>(rg_.Gaussian(amp), rg_.Gaussian(amp)); 167 167 }
Note:
See TracChangeset
for help on using the changeset viewer.