source: Sophya/trunk/SophyaLib/SkyMap/HEALPixUtils.h@ 2973

Last change on this file since 2973 was 2973, checked in by ansari, 19 years ago

1/ Nettoyage+commentaires/doxygen ds Vector3d, UnitVector, LongLat,
SphereCoordSys ...
2/ Ajout de la classe angle pour faciliter les conversions rad<>deg<>arcmin
dans le fichier vector3d.h .cc
3/ nettoyage/uniformisation methodes print pour pixelmap, ajout de la
methode PixelMap<T>::Show()
4/ Ajout methodes SphericalMap<T>::HasSymThetaSlice() et
GetSymThetaSliceIndex(int_4 idx) et leurs implementations pour
SphereHEALPix et SphereThetaPhi en vue de l'optimisation du calcul
transforme Ylm
5/ Ajout methode ResolToSizeIndex ds SphereThetaPhi , SphereHEALPix et
SphereECP

Reza , 20 Juin 2006

File size: 872 bytes
Line 
1#ifndef HEALPixUtils_SEEN
2#define HEALPixUtils_SEEN
3#include "machdefs.h"
4#include "ndatablock.h"
5
6// utilitaires de pixelisation HEALPix
7
8
9namespace SOPHYA {
10
11 // Utility class to compute index to/from angle conversion in HEALPix
12 // spherical map pixelisation
13
14class HEALPix {
15public :
16 static int_4 nest2ring(int_4 nside,int_4 ipnest) ;
17 static int_4 ring2nest(int_4 nside,int_4 ipring) ;
18
19 static int_4 ang2pix_ring(int_4 nside,double theta,double phi) ;
20 static int_4 ang2pix_nest(int_4 nside,double theta,double phi) ;
21 static void pix2ang_ring(int_4 nside,int_4 ipix,double& theta,double& phi) ;
22 static void pix2ang_nest(int_4 nside,int_4 ipix,double& theta,double& phi) ;
23
24 static int_4 ResolToSizeIndex(double res);
25 static inline int_4 ResolToNSide(double res)
26 { return ResolToSizeIndex(res); }
27};
28
29
30
31} // Fin du namespace
32
33#endif
Note: See TracBrowser for help on using the repository browser.