Changeset 4030 in Sophya for trunk/Cosmo/RadioBeam/mdish.cc
- Timestamp:
- Oct 26, 2011, 7:42:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/mdish.cc
r3991 r4030 48 48 } 49 49 } 50 // Return a vector representing the power spectrum (for checking)50 // Return a 2 D histrogram as the response(kx,ky) 51 51 Histo2D Four2DResponse::GetResponse(int nx, int ny) 52 52 { … … 61 61 h2.BinCenter(i,j,xbc,ybc); 62 62 h2(i,j) = Value(xbc,ybc); 63 } 64 return h2; 65 } 66 67 // Return a 2 D histrogram as the response(u=kx/2 pi, v=ky/2 pi) 68 Histo2D Four2DResponse::GetResponseUV(int nx, int ny) 69 { 70 double kxmx = 1.2*dx_; 71 double kymx = 1.2*dy_; 72 if (typ_<3) kymx=kxmx; 73 Histo2D h2(-kxmx,kxmx,nx,-kymx,kymx,ny); 74 75 double xbc,ybc; 76 for(int_4 j=0; j<h2.NBinY(); j++) 77 for(int_4 i=0; i<h2.NBinX(); i++) { 78 h2.BinCenter(i,j,xbc,ybc); 79 h2(i,j) = Value(xbc*DeuxPI,ybc*DeuxPI); 63 80 } 64 81 return h2;
Note:
See TracChangeset
for help on using the changeset viewer.