Changeset 3572 in Sophya for trunk/SophyaLib/SkyMap/spherethetaphi.cc
- Timestamp:
- Feb 7, 2009, 10:50:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherethetaphi.cc
r2990 r3572 192 192 NPix_ = a.NPix_; 193 193 Omega_ = a.Omega_; 194 int_4 k; 195 for (k=0; k< NPix_; k++) pixels_(k) = a.pixels_(k); 196 for (k=0; k< a.NPhi_.Size(); k++) NPhi_(k) = a.NPhi_(k); 197 for (k=0; k< a.TNphi_.Size(); k++) TNphi_(k) = a.TNphi_(k); 198 for (k=0; k< a.Theta_.Size(); k++) Theta_(k) = a.Theta_(k); 194 for (int_4 k=0; k< NPix_; k++) pixels_(k) = a.pixels_(k); 195 for (size_t k=0; k< a.NPhi_.Size(); k++) NPhi_(k) = a.NPhi_(k); 196 for (size_t k=0; k< a.TNphi_.Size(); k++) TNphi_(k) = a.TNphi_(k); 197 for (size_t k=0; k< a.Theta_.Size(); k++) Theta_(k) = a.Theta_(k); 199 198 return(*this); 200 199 … … 613 612 int_4 SphereThetaPhi<T>::GetSymThetaSliceIndex(int_4 idx) const 614 613 { 615 if(idx < 0 || idx >= NbThetaSlices())614 if(idx < 0 || idx >= (int_4)NbThetaSlices()) 616 615 throw RangeCheckError("SphereThetaPhi::GetSymThetaSliceIndex index out of range"); 617 616 return (NbThetaSlices()-1-idx); … … 630 629 { 631 630 632 if(index < 0 || index >= NbThetaSlices())631 if(index < 0 || index >= (int_4)NbThetaSlices()) 633 632 throw RangeCheckError("SphereThetaPhi::GetThetaSlice(idx...) index out of range"); 634 633 … … 665 664 { 666 665 667 if(index < 0 || index >= NbThetaSlices())666 if(index < 0 || index >= (int_4)NbThetaSlices()) 668 667 throw RangeCheckError("SphereThetaPhi::GetThetaSlice(idx...) idx out of range"); 669 668 … … 673 672 pixelIndices.ReSize(lring); 674 673 value.ReSize(lring); 675 double Te= 0.;676 double Fi= 0.;677 674 for(int_4 kk = 0; kk < lring; kk++) { 678 675 pixelIndices(kk)=kk+iring ; … … 686 683 T* SphereThetaPhi<T>::GetThetaSliceDataPtr(int_4 index) 687 684 { 688 if(index < 0 || index >= NbThetaSlices())685 if(index < 0 || index >= (int_4)NbThetaSlices()) 689 686 throw RangeCheckError("SphereThetaPhi::GetThetaSliceDataPtr(idx) idx out of range"); 690 687 return pixels_.Begin()+Index(index,0);
Note:
See TracChangeset
for help on using the changeset viewer.