Changeset 1792 in Sophya for trunk/ArchTOIPipe/ProcWSophya
- Timestamp:
- Nov 27, 2001, 1:12:12 PM (24 years ago)
- Location:
- trunk/ArchTOIPipe/ProcWSophya
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/ProcWSophya/toi2map.cc
r1790 r1792 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toi2map.cc,v 1.1 8 2001-11-26 17:49:42 aubourg Exp $5 // $Id: toi2map.cc,v 1.19 2001-11-27 12:12:12 aubourg Exp $ 6 6 7 7 #include "machdefs.h" … … 21 21 SetTestMin(); 22 22 SetTestMax(); 23 24 mIsColat = false; 23 25 24 26 if(mSph->NbPixels()<1) { … … 176 178 } 177 179 178 if (coord2>90) coord2 -= 180;179 if (coord2<-90) coord2 += 180;180 180 if (phi<0) phi += 2*M_PI; 181 181 if (phi>=2*M_PI) phi -= 2*M_PI; 182 theta = (90.-coord2) * M_PI/180.; 182 if (mIsColat) { 183 theta = coord2 * M_PI/180; 184 } else { 185 theta = (90.-coord2) * M_PI/180.; 186 } 183 187 184 188 if(phi<0. || phi>=2*M_PI) continue; -
trunk/ArchTOIPipe/ProcWSophya/toi2map.h
r1762 r1792 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: toi2map.h,v 1.1 0 2001-11-13 16:22:47aubourg Exp $7 // $Id: toi2map.h,v 1.11 2001-11-27 12:12:12 aubourg Exp $ 8 8 9 9 #ifndef TOI2MAP_H … … 63 63 void Print(::ostream & os); 64 64 65 void SetIsColat(bool b=true) {mIsColat=b;} // latitude is a colatitude, 0-Pi 65 66 protected: 66 67 SphereHEALPix<r_8>* mSph; … … 72 73 73 74 bool mTFlag,mTMin,mTMax; 75 bool mIsColat; // temporary fix 74 76 uint_8 mBadFlag; 75 77 r_8 mValMin,mValMax;
Note:
See TracChangeset
for help on using the changeset viewer.