Changeset 3191 in Sophya for trunk/Cosmo/RadioBeam/mbeamcyl.cc


Ignore:
Timestamp:
Mar 19, 2007, 9:29:05 AM (19 years ago)
Author:
legoff
Message:

Cylinders have different x positions (NS).
This is taken into account in the signal phase shift
and in the exp() term when combining cylinders.
We can have more bins in x than antennas in one cylinder
to see the gain in resolution along x due to several cylinders at different x

File:
1 edited

Legend:

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

    r3163 r3191  
    77//=================================================
    88
    9 MultiBeamCyl::MultiBeamCyl(int nr, int ns, double posy)
     9MultiBeamCyl::MultiBeamCyl(int nr, int ns, double posx, double posy)
    1010  : texact(ns) , tjitt(ns) , toffset(nr) ,
    1111    signal(ns), sigjitt(ns) , gain(nr)
     
    1414  NS = ns;
    1515  posY = posy;
     16  posX = posx;
    1617
    1718  SetPrintLevel(0);
     
    8788    // pas celle apres shift (freq-reduite)
    8889    // lambda = c T = c/freq avec c = 1, dephasage = 2*pi*num*Da*sin(ang)/lambda
    89     double dephasage = num*Da*sin(src->angX(is)) + posY*sin(src->angY(is)) ;
     90    double dephasage = (posX+num*Da)*sin(src->angX(is)) +
     91                                posY*sin(src->angY(is)) ;
    9092    dephasage *= (2*M_PI*(fr+freq0));
    9193    // On ajoute alors la phase propre de chaque source
Note: See TracChangeset for help on using the changeset viewer.