Last change
on this file since 3669 was 2985, checked in by ansari, 19 years ago |
1/ Suite codage HEALPix-NEST , test avec transforme Ylm OK
2/ Petites modifs et corrections diverses (ajout SizeIndex2Resol() par exemple)
Reza 21 Juin 2006
|
File size:
999 bytes
|
Rev | Line | |
---|
[1195] | 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 |
|
---|
[1196] | 11 | // Utility class to compute index to/from angle conversion in HEALPix
|
---|
| 12 | // spherical map pixelisation
|
---|
[1195] | 13 |
|
---|
[1196] | 14 | class HEALPix {
|
---|
[1195] | 15 | public :
|
---|
[1196] | 16 | static int_4 nest2ring(int_4 nside,int_4 ipnest) ;
|
---|
| 17 | static int_4 ring2nest(int_4 nside,int_4 ipring) ;
|
---|
[1195] | 18 |
|
---|
[1196] | 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) ;
|
---|
[2973] | 23 |
|
---|
| 24 | static int_4 ResolToSizeIndex(double res);
|
---|
| 25 | static inline int_4 ResolToNSide(double res)
|
---|
| 26 | { return ResolToSizeIndex(res); }
|
---|
[2985] | 27 | static double SizeIndexToResol(int_4 m);
|
---|
| 28 | static inline double NSideToResol(int_4 m)
|
---|
| 29 | { return SizeIndexToResol(m); }
|
---|
[1195] | 30 | };
|
---|
| 31 |
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 | } // Fin du namespace
|
---|
| 35 |
|
---|
| 36 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.