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

    r2960 r2968  
    592592}
    593593
     594//! Return the theta angle for slice defined by \b index
     595template <class T>
     596r_8 SphereThetaPhi<T>::ThetaOfSlice(int_4 index) const
     597{
     598  if(index < 0 || index >= 2*NTheta_)
     599    throw RangeCheckError("SphereThetaPhi::ThetaOfSlice() index out of range");
     600  double tet1, tet2;
     601  Theta(index, tet1, tet2);
     602  return 0.5*(tet1+tet2); 
     603}
    594604
    595605/*!   
     
    606616
    607617  if(index < 0 || index >= NbThetaSlices())
    608     {
    609        throw RangeCheckError("SphereThetaPhi::PIxVal Pixel index out of range");
    610     }
     618    throw RangeCheckError("SphereThetaPhi::GetThetaSlice() index out of range");
     619   
    611620
    612621  int iring= Index(index,0);
Note: See TracChangeset for help on using the changeset viewer.