Changeset 2968 in Sophya for trunk/SophyaLib/SkyMap/spherethetaphi.cc
- Timestamp:
- Jun 6, 2006, 6:53:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherethetaphi.cc
r2960 r2968 592 592 } 593 593 594 //! Return the theta angle for slice defined by \b index 595 template <class T> 596 r_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 } 594 604 595 605 /*! … … 606 616 607 617 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 611 620 612 621 int iring= Index(index,0);
Note:
See TracChangeset
for help on using the changeset viewer.