Changeset 565 in Sophya for trunk/SophyaLib/Samba/spheregorski.cc


Ignore:
Timestamp:
Nov 10, 1999, 3:01:46 PM (26 years ago)
Author:
ansari
Message:

ajout doc GLM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/spheregorski.cc

    r518 r565  
    158158//    to phi = 0
    159159//
    160 //    nside DOIT OBLIGATOIREMENT ETRE UNE PUISSANCE DE 2 (<= 8192)
     160//    nside MUST be a power of 2 (<= 8192)
    161161//--
    162162//++
     
    166166//    SphericalMap
    167167//--
    168 //++
    169 //
    170 // Links        Descendants
    171 //
    172 //     
    173 //--
    174168
    175169/* --Methode-- */
    176170//++
    177 // Titre        Constructeurs
     171// Titre        Constructors
    178172//--
    179173//++
     
    191185SphereGorski<T>::SphereGorski(int m)
    192186
    193 //    Constructeur : m est la variable nside de l'algorithme de Gorski
    194 //    le nombre total de pixels sera Npix =  12*nside**2
    195 //    m DOIT OBLIGATOIREMENT ETRE UNE PUISSANCE DE 2 (<= 8192)
     187//    m is the "nside" of the Gorski algorithm
     188//
     189//    The total number of pixels will be Npix =  12*nside**2
     190//
     191//    nside MUST be a power of 2 (<= 8192)
    196192//--
    197193{
     
    213209  Pixelize(m);
    214210}
    215 
     211//++
    216212template<class T>
    217213SphereGorski<T>::SphereGorski(const SphereGorski<T>& s)
     214
     215//    copy constructor
     216//--
    218217{
    219218  cout << " constructeur de recopie " << endl;
     
    229228
    230229//++
    231 // Titre        Destructeur
     230// Titre        Destructor
    232231//--
    233232//++
     
    241240
    242241//++
    243 // Titre        Méthodes
     242// Titre        Public Methods
    244243//--
    245244
     
    248247void SphereGorski<T>::Resize(int m)
    249248
    250 //    m est la variable nside de l'algorithme de Gorski
    251 //    le nombre total de pixels sera Npix =  12*nside**2
    252 //    m DOIT OBLIGATOIREMENT ETRE UNE PUISSANCE DE 2 (<= 8192)
     249//    m is the "nside" of the Gorski algorithm
     250//
     251//    The total number of pixels will be Npix =  12*nside**2
     252//
     253//    nside MUST be a power of 2 (<= 8192)
    253254//--
    254255{
     
    276277//
    277278//   
    278 //--
    279279{
    280280  // On memorise les arguments d'appel
     
    325325int SphereGorski<T>::NbThetaSlices() const
    326326
    327 //    Retourne le nombre de tranches en theta sur la sphere
     327//    Return number of slices in theta direction on the sphere
    328328//--
    329329{
     
    335335void SphereGorski<T>::GetThetaSlice(int index,double& theta,TVector<double>& phi,TVector<T>& value) const
    336336
    337 //    Retourne, pour la tranche en theta d'indice 'index' le theta
    338 //    correspondant, un vecteur (Peida) contenant les phi des pixels de
    339 //    la tranche, un vecteur (Peida) contenant les valeurs de pixel
    340 //    correspondantes
     337//    For a theta-slice with index 'index', return :
     338//
     339//    the corresponding "theta"
     340//
     341//    a vector containing the phi's of the pixels of the slice
     342//
     343//    a vector containing the corresponding values of pixels
     344//
    341345//--
    342346{
     
    387391T& SphereGorski<T>::PixVal(int k)
    388392
    389 //    Retourne la valeur du contenu du pixel d'indice "RING" k
     393//    Return value of  pixel with "RING" index k
    390394//--
    391395{
     
    404408T const& SphereGorski<T>::PixVal(int k) const
    405409
    406 //    Retourne la valeur du contenu du pixel d'indice "RING" k
     410//    Return value of  pixel with "RING" index k
    407411//--
    408412{
     
    420424T& SphereGorski<T>::PixValNest(int k)
    421425
    422 //    Retourne la valeur du contenu du pixel d'indice "NESTED" k
     426//    Return value of  pixel with "NESTED" index k
    423427//--
    424428{
     
    436440T const& SphereGorski<T>::PixValNest(int k) const
    437441
    438 //    Retourne la valeur du contenu du pixel d'indice "NESTED" k
     442//    Return value of  pixel with "NESTED" index k
    439443//--
    440444{
     
    463467int SphereGorski<T>::PixIndexSph(double theta,double phi) const
    464468
    465 //    Retourne l'indice "RING" du pixel vers lequel pointe une direction
    466 //    définie par ses coordonnées sphériques
     469//    Return "RING" index of the pixel corresponding to
     470//    direction (theta, phi).
    467471//--
    468472{
     
    474478int SphereGorski<T>::PixIndexSphNest(double theta,double  phi) const
    475479
    476 //    Retourne l'indice NESTED" du pixel vers lequel pointe une direction
    477 //    définie par ses coordonnées sphériques
     480//    Return "NESTED" index of the pixel corresponding to
     481//    direction (theta, phi).
    478482//--
    479483{
     
    487491void SphereGorski<T>::PixThetaPhi(int k,double& theta,double& phi) const
    488492
    489 //   Retourne les coordonnées (theta,phi) du milieu du pixel d'indice "RING" k
     493//   Return (theta,phi) coordinates of middle of  pixel with "RING" index k
    490494//--
    491495{
     
    509513void SphereGorski<T>::PixThetaPhiNest(int k,double& theta,double& phi) const
    510514
    511 //    Retourne les coordonnées (theta,phi) du milieu du pixel d'indice
    512 //    NESTED k
     515//   Return (theta,phi) coordinates of middle of  pixel with "NESTED" index k
    513516//--
    514517{   
     
    520523int SphereGorski<T>::NestToRing(int k) const
    521524
    522 //    conversion d'index NESTD en un index RING
     525//    translation from NESTED index  into RING index
    523526//
    524527//--
     
    531534int SphereGorski<T>::RingToNest(int k) const
    532535//
    533 //    conversion d'index RING en un index NESTED
     536//    translation from  RING index  into NESTED index
    534537//
    535538//--
     
    11401143void FIO_SphereGorski<T>::ReadSelf(PInPersist& is)
    11411144{
    1142   cout << " FIO_SphereGorski:: ReadSelf " << endl;
    11431145
    11441146  if(dobj == NULL)
     
    11831185void FIO_SphereGorski<T>::WriteSelf(POutPersist& os) const
    11841186{
    1185   cout << " FIO_SphereGorski:: WriteSelf " << endl;
    11861187
    11871188  if(dobj == NULL)
Note: See TracChangeset for help on using the changeset viewer.