Changeset 1196 in Sophya for trunk/SophyaLib/SkyMap/HEALPixUtils.h
- Timestamp:
- Sep 22, 2000, 12:36:46 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/HEALPixUtils.h
r1195 r1196 9 9 namespace SOPHYA { 10 10 11 ////////////////////////////////////////////////////////////////////////// 12 // 13 // ------------- Classe PIXELS_XY ----------------------- 14 // 15 class PIXELS_XY 16 { 11 // Utility class to compute index to/from angle conversion in HEALPix 12 // spherical map pixelisation 17 13 14 class HEALPix { 18 15 public : 16 static int_4 nest2ring(int_4 nside,int_4 ipnest) ; 17 static int_4 ring2nest(int_4 nside,int_4 ipring) ; 19 18 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(); 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) ; 32 23 }; 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 24 44 25
Note:
See TracChangeset
for help on using the changeset viewer.