Changeset 2058 in Sophya for trunk/ArchTOIPipe/ProcWSophya


Ignore:
Timestamp:
Jun 18, 2002, 2:21:09 PM (23 years ago)
Author:
ansari
Message:

Ajout methode FITSTOIReader::setFlagFile() pour fichiers flag separes
de Level2 - Reza 18/6/2002

Location:
trunk/ArchTOIPipe/ProcWSophya
Files:
2 edited

Legend:

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

    r2054 r2058  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toi2map.cc,v 1.26 2002-06-11 17:14:25 ansari Exp $
     5// $Id: toi2map.cc,v 1.27 2002-06-18 12:21:08 ansari Exp $
    66
    77#include "machdefs.h"
     
    2020 SetCoorIn();
    2121 SetCoorMap();
     22 SetCalibrationFactor();
    2223 SetTestFlag();
    2324 SetTestMin();
     
    195196  int_4 ipix = mMap->PixIndexSph(theta,phi);
    196197  if ((ipix < 0) || (ipix >= mMap->NbPixels()) ) continue;
    197   (*mMap)(ipix) += bolo;   
     198  (*mMap)(ipix) += bolo*mCalibFactor;   
    198199  ((*mWMap)(ipix)) += 1;
    199200  mNSnFill++;
  • trunk/ArchTOIPipe/ProcWSophya/toi2map.h

    r2012 r2058  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: toi2map.h,v 1.15 2002-05-16 20:39:53 ansari Exp $
     7// $Id: toi2map.h,v 1.16 2002-06-18 12:21:09 ansari Exp $
    88
    99#ifndef TOI2MAP_H
     
    5858              {mTypCoorMap = DecodeTypAstro(ctype);}
    5959
     60  // Facteur de calibration
     61  inline void SetCalibrationFactor(double fac = 1.)
     62              { mCalibFactor = fac; }
     63  inline double GetCalibrationFactor()
     64              { return  mCalibFactor; }
     65     
    6066  // Test on flag value ? if yes, BAD sample have flag matching mBadFlag
    6167  inline void SetTestFlag(bool tflg=false, uint_8 badflg=FlgToiAll)
     
    8187  double mActualYear;
    8288
     89  double mCalibFactor;
    8390  bool mTFlag,mTMin,mTMax;
    8491  uint_8 mBadFlag;
Note: See TracChangeset for help on using the changeset viewer.