Ignore:
Timestamp:
Dec 3, 2001, 9:38:03 PM (24 years ago)
Author:
cmv
Message:
  • map2toi et toi2map avec nouvelle interface sys coor et unites.
  • les modifs map2toi (LocalMap) de EA sont introduites + certains bugs corriges.

cmv 3/12/01

File:
1 edited

Legend:

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

    r1807 r1809  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: toi2map.h,v 1.13 2001-12-01 13:34:09 aubourg Exp $
     7// $Id: toi2map.h,v 1.14 2001-12-03 20:38:03 cmv Exp $
    88
    9 #ifndef TOI2GMAP_H
    10 #define TOI2GMAP_H
     9#ifndef TOI2MAP_H
     10#define TOI2MAP_H
    1111
    1212#include "toiprocessor.h"
     
    3333//                     soit Galactiques  (GLong,GLat)
    3434// Sortie sur une sphere en coordonnees Equatoriales ou Galactiques
    35 // Si les CoordIn et les CoordOut sont equatoriales -> meme equinoxe!
     35// Si les CoordIn et les CoordMap sont equatoriales -> meme equinoxe!
    3636
    3737class TOI2Map : public TOIProcessor {
    3838public:
    3939                 TOI2Map(PixelMap<r_8>* map,PixelMap<r_8>* wmap=NULL);
     40                 //TOI2Map(SphereHEALPix<r_8>* map,SphereHEALPix<r_8>* wmap=NULL);
    4041  virtual       ~TOI2Map();
    4142
     
    4647  inline void SetEquinox(double actualyear=2000.)
    4748              {mActualYear = actualyear;}
    48   inline void SetCoorIn(TypAstroCoord mfg=TypCoordGalStd)
     49
     50  inline void SetCoorIn(unsigned long mfg=TypCoordGalStd)
    4951              {mTypCoorIn = mfg;}
    50   inline void SetCoorOut(TypAstroCoord mfg=TypCoordGalStd)
    51               {mTypCoorOut = mfg;}
     52  inline void SetCoorIn(const char *ctype)
     53              {mTypCoorIn = DecodeTypAstro(ctype);}
     54
     55  inline void SetCoorMap(unsigned long mfg=TypCoordGal)
     56              {mTypCoorMap = mfg;}
     57  inline void SetCoorMap(const char *ctype)
     58              {mTypCoorMap = DecodeTypAstro(ctype);}
     59
    5260  // Test on flag value ? if yes, BAD sample have flag matching mBadFlag
    5361  inline void SetTestFlag(bool tflg=false, uint_8 badflg=FlgToiAll)
     
    6472  void Print(::ostream & os);
    6573
    66   void SetIsColat(bool b=true) {mIsColat=b;} // latitude is a colatitude, 0-Pi
    6774protected:
    6875  PixelMap<r_8>* mMap;
     
    7077  bool mWMapInternal;
    7178
    72   TypAstroCoord mTypCoorIn, mTypCoorOut;
     79  unsigned long mTypCoorIn, mTypCoorMap;
    7380  double mActualYear;
    7481
    7582  bool mTFlag,mTMin,mTMax;
    76   bool mIsColat; // temporary fix
    7783  uint_8 mBadFlag;
    7884  r_8 mValMin,mValMax;
Note: See TracChangeset for help on using the changeset viewer.