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

Last change on this file since 1195 was 1195, checked in by ansari, 25 years ago

fichier d'utilitaire HEALPix

File size: 912 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//////////////////////////////////////////////////////////////////////////
12//
13// ------------- Classe PIXELS_XY -----------------------
14//
15class PIXELS_XY
16{
17
18public :
19
20static PIXELS_XY& instance();
21
22NDataBlock<int_4> pix2x_;
23NDataBlock<int_4> pix2y_;
24NDataBlock<int_4> x2pix_;
25NDataBlock<int_4> y2pix_;
26
27private :
28
29PIXELS_XY();
30void mk_pix2xy();
31void mk_xy2pix();
32};
33
34
35int_4 nest2ring(int_4 nside,int_4 ipnest) ;
36int_4 ring2nest(int_4 nside,int_4 ipring) ;
37
38int_4 ang2pix_ring(int_4 nside,double theta,double phi) ;
39int_4 ang2pix_nest(int_4 nside,double theta,double phi) ;
40void pix2ang_ring(int_4 nside,int_4 ipix,double& theta,double& phi) ;
41void pix2ang_nest(int_4 nside,int_4 ipix,double& theta,double& phi) ;
42
43
44
45
46} // Fin du namespace
47
48#endif
Note: See TracBrowser for help on using the repository browser.