Changeset 2228 in Sophya for trunk


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

constructeur pour pipe xml

Location:
trunk/ArchTOIPipe/ProcWSophya
Files:
2 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) {
  • trunk/ArchTOIPipe/ProcWSophya/toi2map.h

    r2074 r2228  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: toi2map.h,v 1.17 2002-06-18 20:55:21 ansari Exp $
     7// $Id: toi2map.h,v 1.18 2002-10-24 10:30:50 aubourg Exp $
    88
    99#ifndef TOI2MAP_H
     
    3838public:
    3939                 TOI2Map(PixelMap<r_8>* map,PixelMap<r_8>* wmap=NULL);
     40                 TOI2Map(string mapFName, string wmapFName, int nside);
    4041                 //TOI2Map(SphereHEALPix<r_8>* map,SphereHEALPix<r_8>* wmap=NULL);
    4142  virtual       ~TOI2Map();
     
    8182
    8283protected:
     84  void commonConst();
     85
    8386  PixelMap<r_8>* mMap;
    8487  PixelMap<r_8>* mWMap;
    8588  bool mWMapInternal;
     89
     90  string mMapFName, mWMapFName;
    8691
    8792  unsigned long mTypCoorIn, mTypCoorMap;
Note: See TracChangeset for help on using the changeset viewer.