Changeset 565 in Sophya for trunk/SophyaLib/Samba/spheregorski.cc
- Timestamp:
- Nov 10, 1999, 3:01:46 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/spheregorski.cc
r518 r565 158 158 // to phi = 0 159 159 // 160 // nside DOIT OBLIGATOIREMENT ETRE UNE PUISSANCE DE2 (<= 8192)160 // nside MUST be a power of 2 (<= 8192) 161 161 //-- 162 162 //++ … … 166 166 // SphericalMap 167 167 //-- 168 //++169 //170 // Links Descendants171 //172 //173 //--174 168 175 169 /* --Methode-- */ 176 170 //++ 177 // Titre Construct eurs171 // Titre Constructors 178 172 //-- 179 173 //++ … … 191 185 SphereGorski<T>::SphereGorski(int m) 192 186 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) 196 192 //-- 197 193 { … … 213 209 Pixelize(m); 214 210 } 215 211 //++ 216 212 template<class T> 217 213 SphereGorski<T>::SphereGorski(const SphereGorski<T>& s) 214 215 // copy constructor 216 //-- 218 217 { 219 218 cout << " constructeur de recopie " << endl; … … 229 228 230 229 //++ 231 // Titre Destruct eur230 // Titre Destructor 232 231 //-- 233 232 //++ … … 241 240 242 241 //++ 243 // Titre Méthodes242 // Titre Public Methods 244 243 //-- 245 244 … … 248 247 void SphereGorski<T>::Resize(int m) 249 248 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) 253 254 //-- 254 255 { … … 276 277 // 277 278 // 278 //--279 279 { 280 280 // On memorise les arguments d'appel … … 325 325 int SphereGorski<T>::NbThetaSlices() const 326 326 327 // Ret ourne le nombre de tranches en theta sur lasphere327 // Return number of slices in theta direction on the sphere 328 328 //-- 329 329 { … … 335 335 void SphereGorski<T>::GetThetaSlice(int index,double& theta,TVector<double>& phi,TVector<T>& value) const 336 336 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 // 341 345 //-- 342 346 { … … 387 391 T& SphereGorski<T>::PixVal(int k) 388 392 389 // Ret ourne la valeur du contenu du pixel d'indice "RING"k393 // Return value of pixel with "RING" index k 390 394 //-- 391 395 { … … 404 408 T const& SphereGorski<T>::PixVal(int k) const 405 409 406 // Ret ourne la valeur du contenu du pixel d'indice "RING"k410 // Return value of pixel with "RING" index k 407 411 //-- 408 412 { … … 420 424 T& SphereGorski<T>::PixValNest(int k) 421 425 422 // Ret ourne la valeur du contenu du pixel d'indice "NESTED"k426 // Return value of pixel with "NESTED" index k 423 427 //-- 424 428 { … … 436 440 T const& SphereGorski<T>::PixValNest(int k) const 437 441 438 // Ret ourne la valeur du contenu du pixel d'indice "NESTED"k442 // Return value of pixel with "NESTED" index k 439 443 //-- 440 444 { … … 463 467 int SphereGorski<T>::PixIndexSph(double theta,double phi) const 464 468 465 // Ret ourne l'indice "RING" du pixel vers lequel pointe une direction466 // d éfinie par ses coordonnées sphériques469 // Return "RING" index of the pixel corresponding to 470 // direction (theta, phi). 467 471 //-- 468 472 { … … 474 478 int SphereGorski<T>::PixIndexSphNest(double theta,double phi) const 475 479 476 // Ret ourne l'indice NESTED" du pixel vers lequel pointe une direction477 // d éfinie par ses coordonnées sphériques480 // Return "NESTED" index of the pixel corresponding to 481 // direction (theta, phi). 478 482 //-- 479 483 { … … 487 491 void SphereGorski<T>::PixThetaPhi(int k,double& theta,double& phi) const 488 492 489 // Ret ourne les coordonnées (theta,phi) du milieu du pixel d'indice "RING"k493 // Return (theta,phi) coordinates of middle of pixel with "RING" index k 490 494 //-- 491 495 { … … 509 513 void SphereGorski<T>::PixThetaPhiNest(int k,double& theta,double& phi) const 510 514 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 513 516 //-- 514 517 { … … 520 523 int SphereGorski<T>::NestToRing(int k) const 521 524 522 // conversion d'index NESTD en un index RING525 // translation from NESTED index into RING index 523 526 // 524 527 //-- … … 531 534 int SphereGorski<T>::RingToNest(int k) const 532 535 // 533 // conversion d'index RING en un index NESTED536 // translation from RING index into NESTED index 534 537 // 535 538 //-- … … 1140 1143 void FIO_SphereGorski<T>::ReadSelf(PInPersist& is) 1141 1144 { 1142 cout << " FIO_SphereGorski:: ReadSelf " << endl;1143 1145 1144 1146 if(dobj == NULL) … … 1183 1185 void FIO_SphereGorski<T>::WriteSelf(POutPersist& os) const 1184 1186 { 1185 cout << " FIO_SphereGorski:: WriteSelf " << endl;1186 1187 1187 1188 if(dobj == NULL)
Note:
See TracChangeset
for help on using the changeset viewer.