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/spherethetaphi.cc

    r518 r565  
    1313// include      spherethetaphi.h nbmath.h
    1414//
    15 //    Découpage de la sphère selon theta et phi, chaque
    16 //    hémisphère étant découpé en (m-1) parallèles (l'équateur compte pour du
    17 //    beurre), chacune des m bandes de theta ainsi définies étant découpée par
    18 //    des méridiens équirepartis, ce découpage étant fait de sorte que tous
    19 //    les pixels aient la même surface et soient le plus carré possible.
    20 //    On commence par découper l'hémisphère de z positif en partant du pôle et
    21 //    en allant vers l'équateur. Le premier pixel est la calotte polaire,
    22 //    il est circulaire et centré sur theta=0.
     15//    sphere splitted with respect to theta, phi : each hemisphere is
     16//    splitted into (m-1) parallels (equator does not enter into account).
     17//    This operation defines m slices, each of which is splitted into
     18//    equidistant meridians. This splitting is realized in such a way that
     19//    all pixels have the same area and are as square as possible.
     20
     21//    One begins with the hemisphere with positive z, starting from the pole
     22//    toward the equator. The first pixel is the polar cap ; it is circular
     23//    and centered on theta=0.
    2324//--
    2425//++
     
    2829//    SphericalMap
    2930//--
    30 //++
    31 //
    32 // Links        Descendants
    33 //
    34 //     
    35 //--
    36 
    37 /* --Methode-- */
    38 //++
    39 // Titre        Constructeurs
     31
     32/* --Methode-- */
     33//++
     34// Titre        Constructors
    4035//--
    4136//++
     
    5651SphereThetaPhi<T>::SphereThetaPhi(int m)
    5752
    58 //    Constructeur : m est le nombre de bandes en theta sur un hémisphère
    59 //    (la calotte constituant la premiere bande).
    60 //    pet est le nombre de pixels (pétales) de la bande en contact avec la
    61 //    calotte polaire. Pour l'instant pet est inopérant!
     53//    m is the number of slices in theta on an hemisphere (the polar cap
     54//    forms the first slice).
     55//    pet is a dummy parameter at the moment.
    6256//--
    6357{
     
    8882
    8983//++
    90 // Titre        Destructeur
     84// Titre        Destructor
    9185//--
    9286//++
     
    10094
    10195//++
    102 // Titre        Méthodes
     96// Titre        Public Méthods
    10397//--
    10498template <class T>
     
    141135int SphereThetaPhi<T>::NbPixels() const
    142136
    143 //    Retourne le nombre de pixels du découpage
     137//    Return total number of pixels
    144138//--
    145139{
     
    152146T& SphereThetaPhi<T>::PixVal(int k)
    153147
    154 //    Retourne la valeur du contenu du pixel d'indice k
     148//    Return value of pixel with index k
    155149//--
    156150{
     
    168162T const& SphereThetaPhi<T>::PixVal(int k) const
    169163
    170 //    Retourne la valeur du contenu du pixel d'indice k
     164//    Return value of pixel with index k
    171165//--
    172166{
     
    194188int SphereThetaPhi<T>::PixIndexSph(double theta, double phi) const
    195189
    196 //  Retourne l'indice du pixel vers lequel pointe une direction définie par
    197 //    ses coordonnées sphériques
     190//    Return index of the pixel corresponding to
     191//    direction (theta, phi).
    198192//--
    199193{
     
    223217void SphereThetaPhi<T>::PixThetaPhi(int k,double& theta,double& phi) const
    224218
    225 //    Retourne les coordonnées (theta,phi) du milieu du pixel d'indice k
     219//   Return (theta,phi) coordinates of middle of  pixel with  index k
    226220//--
    227221{
     
    264258void SphereThetaPhi<T>::Limits(int k,double& tetMin,double& tetMax,double& phiMin,double& phiMax)
    265259
    266 //    Retourne les valeurs de theta et phi limitant le pixel d'indice k
     260//   Return values of theta,phi which limit the pixel with  index k
    267261//--
    268262  {
     
    317311int SphereThetaPhi<T>::NbThetaSlices() const
    318312
    319 //    Retourne le nombre de tranches en theta sur la sphere
     313//    Return number of theta-slices on the sphere
    320314//--
    321315{
     
    330324int SphereThetaPhi<T>::NPhi(int kt) const
    331325
    332 //    Retourne le nombre de pixels en phi de la tranche kt
     326//    Return number of pixels in phi-direction of the kt-th slice
    333327//--
    334328{
     
    353347void SphereThetaPhi<T>::Theta(int kt,double& tetMin,double& tetMax)
    354348
    355 //    Retourne les valeurs de theta limitant la tranche kt
     349//    Return  theta values which limit the slice kt
    356350//--
    357351{
     
    385379void SphereThetaPhi<T>::Phi(int kt,int jp,double& phiMin,double& phiMax)
    386380
    387 //    Retourne les valeurs de phi limitant le pixel jp de la tranche kt
     381//   Return values of phi which limit the jp-th pixel of the kt-th slice
    388382//--
    389383{
     
    416410int SphereThetaPhi<T>::Index(int kt,int jp) const
    417411
    418 //    Retourne l'indice du pixel d'indice jp dans la tranche kt
     412//    Return pixel index  with sequence index jp in the slice kt
    419413//--
    420414{
     
    449443void SphereThetaPhi<T>::ThetaPhiIndex(int k,int& kt,int& jp)
    450444
    451 //    Retourne les indices kt et jp du pixel d'indice k
     445//    Return indices kt (theta) and jp (phi) of  pixel with index k
    452446//--
    453447{
     
    477471void  SphereThetaPhi<T>::Pixelize(int m)
    478472
    479 //    effectue le découpage en pixels (m et pet ont la même signification
    480 //    que pour le constructeur)
     473//    achieve the splitting into pixels (m has the same signification
     474//    as for the constructor)
    481475//
    482 //    Chaque bande de theta sera découpée en partant de phi=0 ...
    483 //    L'autre hémisphère est parcourue dans le même sens en phi et de
    484 //    l'équateur vers le pôle (le pixel qui suit le dernier de la bande la plus
    485 //    proche de l'équateur a z>0 est celui de plus petit phi de la bande la
    486 //    plus proche de l'equateur a z<0).
     476//    Each theta-slice of the north hemisphere will be spitted starting f
     477//    from  phi=0 ...
     478//
     479//    South hemisphere is scanned in the same direction according to phi
     480//    and from equator to the pole (the pixel following the last one of
     481//    the slice closest to the equator with z>0, is the pixel with lowest
     482//    phi of the slice closest of the equator with z<0).
    487483//--
    488484{
     
    554550void SphereThetaPhi<T>::GetThetaSlice(int index,double& theta, TVector<double>& phi, TVector<T>& value) const
    555551
    556 //    Retourne, pour la tranche en theta d'indice 'index' le theta
    557 //    correspondant, un vecteur (Peida) contenant les phi des pixels de
    558 //    la tranche, un vecteur (Peida) contenant les valeurs de pixel
    559 //    correspondantes
     552//    For a theta-slice with index 'index', return :
     553//    the corresponding "theta"
     554//    a vector containing the phi's of the pixels of the slice
     555//    a vector containing the corresponding values of pixels
    560556//--
    561557
     
    591587void SphereThetaPhi<T>::setmNPhi(int* array, int m)
    592588  //remplit le tableau contenant le nombre de pixels en phi de chacune des bandes en theta
    593   //--
     589  //
    594590{
    595591  NPhi_= new int[m];
     
    600596void SphereThetaPhi<T>::setmTNphi(int* array, int m)
    601597  //remplit  le tableau contenant le nombre/Deuxpi total des pixels contenus dans les bandes
    602   //--
     598  //
    603599{
    604600  TNphi_= new int[m];
     
    609605void SphereThetaPhi<T>::setmTheta(double* array, int m)
    610606  //remplit  le tableau contenant les valeurs limites de theta
    611   //--
     607  //
    612608{
    613609  Theta_= new double[m];
     
    715711void FIO_SphereThetaPhi<T>::ReadSelf(PInPersist& is)
    716712{
    717   cout << " FIO_SphereThetaPhi:: ReadSelf " << endl;
    718713
    719714  if(dobj == NULL)
     
    772767void FIO_SphereThetaPhi<T>::WriteSelf(POutPersist& os) const
    773768{
    774   cout << " FIO_SphereThetaPhi:: WriteSelf " << endl;
    775769
    776770  if(dobj == NULL)
Note: See TracChangeset for help on using the changeset viewer.