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

gestion colatitude un peu nettoyee

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.