Changeset 4030 in Sophya for trunk/Cosmo/RadioBeam/mdish.cc


Ignore:
Timestamp:
Oct 26, 2011, 7:42:21 PM (14 years ago)
Author:
ansari
Message:

Corrections papiers avec les commentaires du referee (1) - Reza 26/10/2011

File:
1 edited

Legend:

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

    r3991 r4030  
    4848    }
    4949}
    50 // Return a vector representing the power spectrum (for checking)
     50// Return a 2 D histrogram as the response(kx,ky)
    5151Histo2D Four2DResponse::GetResponse(int nx, int ny)
    5252{
     
    6161      h2.BinCenter(i,j,xbc,ybc);
    6262      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)
     68Histo2D 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);
    6380    }
    6481  return h2;   
Note: See TracChangeset for help on using the changeset viewer.