Ignore:
Timestamp:
Sep 22, 2000, 12:36:46 PM (25 years ago)
Author:
ansari
Message:

Introduction de la classe HEALPix pour accrocher les methodes de
converion angle<>index
rajout en methodes inline static de ces methodes de conversion pour
SphereHEALPix<T>
+ Autre modifs cosmetiques + MAJ Makefile , Reza 21/9/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyMap/HEALPixUtils.h

    r1195 r1196  
    99namespace SOPHYA {
    1010
    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
    1713
     14class HEALPix {
    1815public :
     16  static int_4  nest2ring(int_4 nside,int_4 ipnest) ;
     17  static int_4  ring2nest(int_4 nside,int_4 ipring) ;
    1918
    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) ;
    3223};
    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 
    4324
    4425
Note: See TracChangeset for help on using the changeset viewer.