Changeset 1792 in Sophya for trunk/ArchTOIPipe/ProcWSophya/toi2map.cc
- Timestamp:
- Nov 27, 2001, 1:12:12 PM (24 years ago)
- File:
-
- 1 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;
Note:
See TracChangeset
for help on using the changeset viewer.