Ignore:
Timestamp:
Jun 6, 2006, 6:53:51 PM (19 years ago)
Author:
ansari
Message:

Ajout methode ThetaOfSlice() a l'interface SphericalMap et propagation , Reza 06/06/2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyMap/spherehealpix.cc

    r2960 r2968  
    299299}
    300300
     301//! Return the theta angle for slice defined by \b index
     302template<class T>
     303r_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
    301313/*!  \fn void SOPHYA::SphereHEALPix::GetThetaSlice(int_4 index,r_8& theta,TVector<r_8>& phi,TVector<T>& value) const
    302314
     
    317329    {
    318330      cout << " SphereHEALPix::GetThetaSlice : Pixel index out of range" <<endl;
    319       throw RangeCheckError(" SphereHEALPix::GetThetaSlice : Pixel index out of range");
     331      throw RangeCheckError(" SphereHEALPix::GetThetaSlice() index out of range");
    320332    }
    321333
Note: See TracChangeset for help on using the changeset viewer.