Changeset 2968 in Sophya for trunk/SophyaLib/SkyMap/spherehealpix.cc
- Timestamp:
- Jun 6, 2006, 6:53:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherehealpix.cc
r2960 r2968 299 299 } 300 300 301 //! Return the theta angle for slice defined by \b index 302 template<class T> 303 r_8 SphereHEALPix<T>::ThetaOfSlice(int_4 index) const 304 { 305 uint_4 nbslices = uint_4(4*nSide_-1); 306 if (index<0 || index >= nbslices) 307 throw RangeCheckError(" SphereHEALPix::ThetaOfSlice() index out of range"); 308 r_8 theta, phi0; 309 PixThetaPhi(sliceBeginIndex_(index), theta, phi0); 310 return theta; 311 } 312 301 313 /*! \fn void SOPHYA::SphereHEALPix::GetThetaSlice(int_4 index,r_8& theta,TVector<r_8>& phi,TVector<T>& value) const 302 314 … … 317 329 { 318 330 cout << " SphereHEALPix::GetThetaSlice : Pixel index out of range" <<endl; 319 throw RangeCheckError(" SphereHEALPix::GetThetaSlice : Pixelindex out of range");331 throw RangeCheckError(" SphereHEALPix::GetThetaSlice() index out of range"); 320 332 } 321 333
Note:
See TracChangeset
for help on using the changeset viewer.