Ignore:
Timestamp:
Oct 24, 2002, 12:30:50 PM (23 years ago)
Author:
aubourg
Message:

constructeur pour pipe xml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/ProcWSophya/toi2map.cc

    r2160 r2228  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toi2map.cc,v 1.30 2002-08-05 16:25:13 cmv Exp $
     5// $Id: toi2map.cc,v 1.31 2002-10-24 10:30:50 aubourg Exp $
    66
    77#include "machdefs.h"
     
    1313#include "smathconst.h"
    1414
     15#include "fitsspherehealpix.h"
     16
     17
     18////////////////////////////////////////////////////////////////////////
     19TOI2Map::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
    1527////////////////////////////////////////////////////////////////////////
    1628TOI2Map::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
     35void TOI2Map::commonConst() {
    1936 SetEquinox();
    2037 SetCoorIn();
     
    230247#endif
    231248
     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
    232261//---------------------------------------------------------
    233262} catch (PException & exc) {
Note: See TracChangeset for help on using the changeset viewer.