Changeset 2978 in Sophya for trunk/SophyaLib/SkyMap/spherehealpix.h
- Timestamp:
- Jun 21, 2006, 10:38:26 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherehealpix.h
r2973 r2978 52 52 { return HEALPix::ResolToSizeIndex(res); } 53 53 54 SphereHEALPix( );55 SphereHEALPix(int_4 m );54 SphereHEALPix(bool fgring=true); 55 SphereHEALPix(int_4 m, bool fgring=true); 56 56 SphereHEALPix(const SphereHEALPix<T>& s, bool share); 57 57 SphereHEALPix(const SphereHEALPix<T>& s); … … 93 93 virtual T SetPixels(T v); 94 94 95 /*! Pixel Solid angle (steradians)95 /*! \brief Pixel Solid angle (steradians) 96 96 97 97 All the pixels have the same solid angle. The dummy argument is … … 108 108 109 109 virtual void Resize(int_4 m); 110 111 /*! 112 113 \return type of storage of the map : RING or NESTED 114 115 at the moment, always RING 116 */ 117 inline virtual string TypeOfMap() const {return string("RING");}; 118 119 110 virtual string TypeOfMap() const; 111 112 inline bool IfRING() const { return fgring_; } 113 inline bool IfNESTED() const { return ( (fgring_) ? false : true ); } 114 115 /* 120 116 virtual T& PixValNest(int_4 k); 121 117 virtual T const& PixValNest(int_4 k) const; 122 123 118 virtual int_4 PixIndexSphNest(double theta,double phi) const; 124 125 119 virtual void PixThetaPhiNest(int_4 k,double& theta,double& phi) const; 120 */ 126 121 127 122 void Pixelize(int_4); … … 138 133 inline void Print(ostream& os) const { print(os); } 139 134 140 141 142 143 144 145 146 // Operations diverses = , +=, ... 147 135 //--------------------- Operations diverses = , +=, ... 148 136 149 137 SphereHEALPix<T>& Set(const SphereHEALPix<T>& a); … … 153 141 // A += -= *= /= x (ajoute, soustrait, ... x a tous les elements) 154 142 155 143 //! Fill SphereHEALPix with all elements equal to \b x 156 144 virtual SphereHEALPix<T>& SetT(T a); 157 145 inline SphereHEALPix<T>& operator = (T a) {return SetT(a);} … … 202 190 void SetThetaSlices(); 203 191 204 inline void setParameters(int_4 nside, int_4 nbpixels, double solangle) 205 { 206 nSide_= nside; 207 nPix_= nbpixels; 208 omeg_= solangle; 209 } 192 inline void setParameters(int_4 nside, int_4 nbpixels, double solangle, 193 bool fgring) 194 { 195 nSide_= nside; 196 nPix_= nbpixels; 197 omeg_= solangle; 198 fgring_ = fgring; 199 } 210 200 211 201 // ------------- variables internes ----------------------- … … 214 204 int_4 nPix_; 215 205 double omeg_; 206 bool fgring_; // true -> RING pixelisation , false -> NESTED 216 207 217 208 NDataBlock<T> pixels_; 218 NDataBlock<int_4> sliceBeginIndex_; // Rationalisation Mac. D.Y.209 NDataBlock<int_4> sliceBeginIndex_; // Indices in RING scheme 219 210 NDataBlock<int_4> sliceLenght_; 220 211
Note:
See TracChangeset
for help on using the changeset viewer.