Changeset 2228 in Sophya for trunk/ArchTOIPipe
- Timestamp:
- Oct 24, 2002, 12:30:50 PM (23 years ago)
- Location:
- trunk/ArchTOIPipe/ProcWSophya
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/ProcWSophya/toi2map.cc
r2160 r2228 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toi2map.cc,v 1.3 0 2002-08-05 16:25:13 cmvExp $5 // $Id: toi2map.cc,v 1.31 2002-10-24 10:30:50 aubourg Exp $ 6 6 7 7 #include "machdefs.h" … … 13 13 #include "smathconst.h" 14 14 15 #include "fitsspherehealpix.h" 16 17 18 //////////////////////////////////////////////////////////////////////// 19 TOI2Map::TOI2Map(string mapFName, string wmapFName, int nside) 20 : mMap(new SphereHEALPix<r_8>(nside)), mWMap(new SphereHEALPix<r_8>(nside)), 21 mWMapInternal(false), totnscount(0), usednscount(0), 22 mMapFName(mapFName), mWMapFName(wmapFName) 23 { 24 commonConst(); 25 } 26 15 27 //////////////////////////////////////////////////////////////////////// 16 28 TOI2Map::TOI2Map(PixelMap<r_8>* map,PixelMap<r_8>* wmap) 17 : mMap(map), mWMap(wmap), mWMapInternal(false), totnscount(0), usednscount(0) 18 { 29 : mMap(map), mWMap(wmap), mWMapInternal(false), totnscount(0), usednscount(0), 30 mMapFName(""), mWMapFName("") 31 { 32 commonConst(); 33 } 34 35 void TOI2Map::commonConst() { 19 36 SetEquinox(); 20 37 SetCoorIn(); … … 230 247 #endif 231 248 249 if (mMapFName != "") { 250 cout << "saving maps" << endl; 251 { 252 FitsOutFile sfits(mMapFName,FitsFile::clear); 253 sfits << * (SphereHEALPix<r_8>*)mMap; 254 } 255 { 256 FitsOutFile sfits(mWMapFName,FitsFile::clear); 257 sfits << * (SphereHEALPix<r_8>*)mWMap; 258 } 259 } 260 232 261 //--------------------------------------------------------- 233 262 } catch (PException & exc) { -
trunk/ArchTOIPipe/ProcWSophya/toi2map.h
r2074 r2228 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: toi2map.h,v 1.1 7 2002-06-18 20:55:21 ansariExp $7 // $Id: toi2map.h,v 1.18 2002-10-24 10:30:50 aubourg Exp $ 8 8 9 9 #ifndef TOI2MAP_H … … 38 38 public: 39 39 TOI2Map(PixelMap<r_8>* map,PixelMap<r_8>* wmap=NULL); 40 TOI2Map(string mapFName, string wmapFName, int nside); 40 41 //TOI2Map(SphereHEALPix<r_8>* map,SphereHEALPix<r_8>* wmap=NULL); 41 42 virtual ~TOI2Map(); … … 81 82 82 83 protected: 84 void commonConst(); 85 83 86 PixelMap<r_8>* mMap; 84 87 PixelMap<r_8>* mWMap; 85 88 bool mWMapInternal; 89 90 string mMapFName, mWMapFName; 86 91 87 92 unsigned long mTypCoorIn, mTypCoorMap;
Note:
See TracChangeset
for help on using the changeset viewer.