Changeset 2228 in Sophya for trunk/ArchTOIPipe/ProcWSophya/toi2map.cc
- Timestamp:
- Oct 24, 2002, 12:30:50 PM (23 years ago)
- File:
-
- 1 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) {
Note:
See TracChangeset
for help on using the changeset viewer.