Changeset 1792 in Sophya for trunk/ArchTOIPipe/ProcWSophya


Ignore:
Timestamp:
Nov 27, 2001, 1:12:12 PM (24 years ago)
Author:
aubourg
Message:

gestion colatitude un peu nettoyee

Location:
trunk/ArchTOIPipe/ProcWSophya
Files:
2 edited

Legend:

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

    r1790 r1792  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toi2map.cc,v 1.18 2001-11-26 17:49:42 aubourg Exp $
     5// $Id: toi2map.cc,v 1.19 2001-11-27 12:12:12 aubourg Exp $
    66
    77#include "machdefs.h"
     
    2121 SetTestMin();
    2222 SetTestMax();
     23
     24 mIsColat = false;
    2325
    2426 if(mSph->NbPixels()<1) {
     
    176178  }
    177179
    178   if (coord2>90) coord2 -= 180;
    179   if (coord2<-90) coord2 += 180;
    180180  if (phi<0) phi += 2*M_PI;
    181181  if (phi>=2*M_PI) phi -= 2*M_PI;
    182   theta = (90.-coord2) * M_PI/180.;     
     182  if (mIsColat) {
     183    theta = coord2 * M_PI/180;
     184  } else {
     185    theta = (90.-coord2) * M_PI/180.;     
     186  }
    183187
    184188  if(phi<0.   || phi>=2*M_PI) continue;
  • trunk/ArchTOIPipe/ProcWSophya/toi2map.h

    r1762 r1792  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: toi2map.h,v 1.10 2001-11-13 16:22:47 aubourg Exp $
     7// $Id: toi2map.h,v 1.11 2001-11-27 12:12:12 aubourg Exp $
    88
    99#ifndef TOI2MAP_H
     
    6363  void Print(::ostream & os);
    6464
     65  void SetIsColat(bool b=true) {mIsColat=b;} // latitude is a colatitude, 0-Pi
    6566protected:
    6667  SphereHEALPix<r_8>* mSph;
     
    7273
    7374  bool mTFlag,mTMin,mTMax;
     75  bool mIsColat; // temporary fix
    7476  uint_8 mBadFlag;
    7577  r_8 mValMin,mValMax;
Note: See TracChangeset for help on using the changeset viewer.