Changeset 2968 in Sophya for trunk/SophyaLib/SkyMap/sphereecp.cc


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/sphereecp.cc

    r2882 r2968  
    304304
    305305template <class T>
     306r_8  SphereECP<T>::ThetaOfSlice(int_4 index) const
     307{
     308  if( (index < 0) || (index >= _pixels.SizeY()) ) 
     309     throw RangeCheckError("SphereECP::ThetaOfSlice() theta index out of range");
     310  return (_theta1 + (index+0.5)*_dtheta);
     311 
     312}
     313
     314template <class T>
    306315void  SphereECP<T>::GetThetaSlice(int_4 index,r_8& theta,
    307316                                  TVector<r_8>& phi, TVector<T>& value) const
    308317{
    309318  if( (index < 0) || (index >= _pixels.SizeY()) ) 
    310      throw RangeCheckError("SphereECP::GetThetaSlice() theta index out of range");
     319     throw RangeCheckError("SphereECP::GetThetaSlice() index out of range");
    311320
    312321  theta = _theta1 + (index+0.5)*_dtheta;
     
    336345{
    337346  if( (index < 0) || (index >= _pixels.SizeY()) ) 
    338     throw RangeCheckError("SphereECP::GetThetaSlice() theta index out of range");
     347    throw RangeCheckError("SphereECP::GetThetaSlice() index out of range");
    339348 
    340349  theta = _theta1 + (index+0.5)*_dtheta;
Note: See TracChangeset for help on using the changeset viewer.