Changeset 473 in Sophya for trunk/SophyaLib/Samba/spheregorski.h
- Timestamp:
- Oct 18, 1999, 4:37:44 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/spheregorski.h
r470 r473 32 32 33 33 SphereGorski(); 34 SphereGorski(int _4m);34 SphereGorski(int m); 35 35 SphereGorski(const SphereGorski<T>& s); 36 36 virtual ~SphereGorski(); … … 39 39 40 40 /* Nombre de pixels du decoupage */ 41 virtual int _4NbPixels() const;42 inline void setNbPixels(int _4n) {nPix_= n;}41 virtual int NbPixels() const; 42 inline void setNbPixels(int n) {nPix_= n;} 43 43 44 44 /* Valeur du contenu du pixel d'indice "RING" k */ 45 virtual T& PixVal(int _4k);46 virtual T const& PixVal(int _4k) const;45 virtual T& PixVal(int k); 46 virtual T const& PixVal(int k) const; 47 47 48 48 /* Nombre de tranches en theta */ 49 int _4NbThetaSlices() const;50 void GetThetaSlice(int _4 index,r_4& theta,TVector<float>& phi,TVector<T>& value) const;49 int NbThetaSlices() const; 50 void GetThetaSlice(int index,double& theta,TVector<double>& phi,TVector<T>& value) const; 51 51 52 52 /* Indice "RING" du pixel vers lequel pointe une direction definie par 53 53 ses coordonnees spheriques */ 54 virtual int _4 PixIndexSph(float theta, floatphi) const;54 virtual int PixIndexSph(double theta,double phi) const; 55 55 56 56 /* Coordonnees spheriques du milieu du pixel d'indice "RING" k */ 57 virtual void PixThetaPhi(int _4 k, float& teta, float& phi) const;57 virtual void PixThetaPhi(int k,double& theta,double& phi) const; 58 58 59 59 /* Pixel Solid angle (steradians) */ 60 virtual r_8 PixSolAngle(int_4dummy) const;61 inline void setPixSolAngle( r_8x) {omeg_= x;}60 virtual double PixSolAngle(int dummy) const; 61 inline void setPixSolAngle(double x) {omeg_= x;} 62 62 63 63 // --------------- Specific methods 64 64 65 virtual void Resize(int _4m);65 virtual void Resize(int m); 66 66 67 67 inline virtual char* TypeOfMap() const {return "RING";}; 68 68 69 /* Valeur du contenu du pixel d'indice "NEST" k 70 virtual T& PixValNest(int _4k);71 virtual T const& PixValNest(int _4k) const;69 /* Valeur du contenu du pixel d'indice "NEST" k */ 70 virtual T& PixValNest(int k); 71 virtual T const& PixValNest(int k) const; 72 72 73 73 /* Indice "NEST" du pixel vers lequel pointe une direction definie par 74 74 ses coordonnees spheriques */ 75 virtual int _4 PixIndexSphNest(float theta, floatphi) const;75 virtual int PixIndexSphNest(double theta,double phi) const; 76 76 77 77 /* Coordonnees spheriques du milieu du pixel d'indice "NEST" k */ 78 virtual void PixThetaPhiNest(int _4 k, float& teta, float& phi) const;78 virtual void PixThetaPhiNest(int k,double& theta,double& phi) const; 79 79 80 80 /* algorithme de pixelisation */ 81 void Pixelize(int _4);81 void Pixelize(int); 82 82 83 83 /* convertit index nested en ring */ 84 int _4 NestToRing(int_4) const;84 int NestToRing(int) const; 85 85 86 86 /* convertit index ring en nested" */ 87 int _4 RingToNest(int_4) const;87 int RingToNest(int) const; 88 88 89 /* 89 /* analyse en harmoniques spheriques des valeurs des pixels de la 90 90 sphere : appel du module anafast (Gorski-Hivon) */ 91 91 //void anharm(int, float, float*); … … 97 97 98 98 /* retourne/fixe la valeur du parametre Gorski */ 99 inline virtual int _4SizeIndex() const {return(nSide_);}100 inline void setSizeIndex(int _4n) {nSide_= n;}99 inline virtual int SizeIndex() const {return(nSide_);} 100 inline void setSizeIndex(int n) {nSide_= n;} 101 101 102 102 /* retourne les pointeurs /remplit les tableaux */ 103 103 inline const NDataBlock<T>* getDataBlock() const { return (&pixels_); } 104 inline void setDataBlock(T* data, int_4m) { pixels_.FillFrom(m,data); }104 inline void setDataBlock(T* data,int m) { pixels_.FillFrom(m,data); } 105 105 106 106 /* retourne/fixe les parametres des modules anafast et synfast */ 107 void getParafast(int _4& nlmax,int_4& nmmax,int_4& iseed,float& fwhm,float& quadr,float& cut) const;108 void setParafast(int _4 nlmax,int_4 nmmax,int_4iseed,float fwhm,float quadr,float cut,char* filename);107 void getParafast(int& nlmax,int& nmmax,int& iseed,float& fwhm,float& quadr,float& cut) const; 108 void setParafast(int nlmax,int nmmax,int iseed,float fwhm,float quadr,float cut,char* filename); 109 109 110 110 /* retourne/fixe le nom du fichier qui contient le spectre de puissance */ … … 119 119 void InitNul(); 120 120 121 int nest2ring(int nside, 122 int ring2nest(int nside, 121 int nest2ring(int nside,int ipnest) const; 122 int ring2nest(int nside,int ipring) const; 123 123 124 int ang2pix_ring(int nside, double theta,double phi) const;125 int ang2pix_nest(int nside, double theta,double phi) const;126 void pix2ang_ring(int nside, int ipix, double& theta,double& phi) const;127 void pix2ang_nest(int nside, int ipix, double& theta,double& phi) const;124 int ang2pix_ring(int nside,double theta,double phi) const; 125 int ang2pix_nest(int nside,double theta,double phi) const; 126 void pix2ang_ring(int nside,int ipix,double& theta,double& phi) const; 127 void pix2ang_nest(int nside,int ipix,double& theta,double& phi) const; 128 128 129 129 // ------------- variables internes ----------------------- 130 int _4nSide_;131 int _4nPix_;132 r_8omeg_;130 int nSide_; 131 int nPix_; 132 double omeg_; 133 133 134 134 NDataBlock<T> pixels_;
Note:
See TracChangeset
for help on using the changeset viewer.