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 |
|
---|
9 | namespace SOPHYA {
|
---|
10 |
|
---|
11 | //////////////////////////////////////////////////////////////////////////
|
---|
12 | //
|
---|
13 | // ------------- Classe PIXELS_XY -----------------------
|
---|
14 | //
|
---|
15 | class PIXELS_XY
|
---|
16 | {
|
---|
17 |
|
---|
18 | public :
|
---|
19 |
|
---|
20 | static PIXELS_XY& instance();
|
---|
21 |
|
---|
22 | NDataBlock<int_4> pix2x_;
|
---|
23 | NDataBlock<int_4> pix2y_;
|
---|
24 | NDataBlock<int_4> x2pix_;
|
---|
25 | NDataBlock<int_4> y2pix_;
|
---|
26 |
|
---|
27 | private :
|
---|
28 |
|
---|
29 | PIXELS_XY();
|
---|
30 | void mk_pix2xy();
|
---|
31 | void mk_xy2pix();
|
---|
32 | };
|
---|
33 |
|
---|
34 |
|
---|
35 | int_4 nest2ring(int_4 nside,int_4 ipnest) ;
|
---|
36 | int_4 ring2nest(int_4 nside,int_4 ipring) ;
|
---|
37 |
|
---|
38 | int_4 ang2pix_ring(int_4 nside,double theta,double phi) ;
|
---|
39 | int_4 ang2pix_nest(int_4 nside,double theta,double phi) ;
|
---|
40 | void pix2ang_ring(int_4 nside,int_4 ipix,double& theta,double& phi) ;
|
---|
41 | void 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.