Changeset 3572 in Sophya for trunk/SophyaLib/SkyMap


Ignore:
Timestamp:
Feb 7, 2009, 10:50:34 PM (17 years ago)
Author:
cmv
Message:

char* -> const char* pour regler les problemes de deprecated string const... + comparaison unsigned signed + suppression EVOL_PLANCK rz+cmv 07/02/2009

Location:
trunk/SophyaLib/SkyMap
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyMap/fiolocalmap.cc

    r2869 r3572  
    167167  int_4 nSzX= dobj->Size_x();
    168168  int_4 nSzY= dobj->Size_y();
    169   int_4 nPix= dobj->NbPixels();
    170169 
    171170  if(dobj->ptrInfo())
     
    183182  os.PutI4(nSzX);
    184183  os.PutI4(nSzY);
    185   //  os.PutI4(nPix);
    186184
    187185  if(dobj->LocalMap_isDone())
  • trunk/SophyaLib/SkyMap/localmap.cc

    r3300 r3572  
    256256    throw(SzMismatchError("LocalMap<T>::CopyElt(const LocalMap<T>&) SizeMismatch")) ;
    257257      recopierVariablesSimples(a);     
    258   int k;
    259258  pixels_ = a.pixels_;
    260259  return(*this);
     
    349348  double csTheta = cos(theta);
    350349  double snTheta = sin(theta);
    351   double csPhi   = cos(phi);
    352   double snPhi   = sin(phi);
    353350  double csPhiMPhiC = cos (phi - phiC_);
    354351  double snPhiMPhiC = sin (phi - phiC_);
     
    585582  double sin_phi_axeZ;
    586583
    587   double cth,sth, cdeltaPhi, phi, cphi, sphi;
     584  double cth,sth, cdeltaPhi, phi;
    588585
    589586  if ( snthC_ <= 0.) // carte centree au pole
  • trunk/SophyaLib/SkyMap/spherehealpix.cc

    r2990 r3572  
    177177  nPix_ = a.nPix_;
    178178  omeg_ = a.omeg_;
    179   int k;
    180179  if (fgring_ == a.fgring_)
    181     for (k=0; k< nPix_; k++) pixels_(k) = a.pixels_(k);
     180    for (int_4 k=0; k< nPix_; k++) pixels_(k) = a.pixels_(k);
    182181  else {
    183     if (fgring_)  for (k=0; k< nPix_; k++)
     182    if (fgring_)  for (int_4 k=0; k< nPix_; k++)
    184183      pixels_(k) = a.pixels_(ring2nest(nSide_, k));
    185     else  for (k=0; k< nPix_; k++)
     184    else  for (int_4 k=0; k< nPix_; k++)
    186185      pixels_(k) = a.pixels_(nest2ring(nSide_, k));                         
    187186  }
    188   for (k=0; k< a.sliceBeginIndex_.Size(); k++) sliceBeginIndex_(k) = a.sliceBeginIndex_(k);
    189   for (k=0; k< a.sliceLenght_.Size(); k++) sliceLenght_(k) = a.sliceLenght_(k);
     187  for (size_t k=0; k< a.sliceBeginIndex_.Size(); k++) sliceBeginIndex_(k) = a.sliceBeginIndex_(k);
     188  for (size_t k=0; k< a.sliceLenght_.Size(); k++) sliceLenght_(k) = a.sliceLenght_(k);
    190189  return(*this);
    191190}
     
    305304{
    306305  uint_4 nbslices = uint_4(4*nSide_-1);
    307   if (index<0 || index >= nbslices)
     306  if (index<0 || index >= (int_4)nbslices)
    308307    throw RangeCheckError(" SphereHEALPix::ThetaOfSlice()  index out of range");
    309308  r_8 theta, phi0;
     
    322321int_4 SphereHEALPix<T>::GetSymThetaSliceIndex(int_4 idx) const
    323322{
    324   if(idx < 0 || idx >= NbThetaSlices())
     323  if(idx < 0 || idx >= (int_4)NbThetaSlices())
    325324    throw RangeCheckError("SphereHEALPix::GetSymThetaSliceIndex index out of range");
    326325  return (NbThetaSlices()-1-idx);
     
    340339void SphereHEALPix<T>::GetThetaSlice(int_4 index,r_8& theta,TVector<r_8>& phi,TVector<T>& value) const
    341340{
    342   if (index<0 || index >= NbThetaSlices())
     341  if (index<0 || index >= (int_4)NbThetaSlices())
    343342    throw RangeCheckError(" SphereHEALPix::GetThetaSlice()  index out of range");
    344343
     
    391390{
    392391
    393   if (sliceIndex<0 || sliceIndex >= NbThetaSlices())
     392  if (sliceIndex<0 || sliceIndex >= (int_4)NbThetaSlices())
    394393    throw RangeCheckError(" SphereHEALPix::GetThetaSlice() index out of range");
    395394  int_4 iring= sliceBeginIndex_(sliceIndex);
     
    420419
    421420{
    422   if (sliceIndex<0 || sliceIndex >= NbThetaSlices())
     421  if (sliceIndex<0 || sliceIndex >= (int_4)NbThetaSlices())
    423422    throw RangeCheckError(" SphereHEALPix::GetThetaSliceDataPtr(): index out of range");
    424423  if (fgring_)
  • trunk/SophyaLib/SkyMap/spherepos.cc

    r2973 r3572  
    1111#include <typeinfo>
    1212
    13 static char *head_spherepos_cc_ = "$Header: /Users/garnier/temp/CVSSophya/SophyaLib/SkyMap/spherepos.cc,v 1.4 2006-06-20 16:01:48 ansari Exp $";
    1413
    1514
  • trunk/SophyaLib/SkyMap/spherepos.h

    r2973 r3572  
    99#include "anydataobj.h"
    1010
    11 static char *head_spherepos_h_ = "$Header: /Users/garnier/temp/CVSSophya/SophyaLib/SkyMap/spherepos.h,v 1.2 2006-06-20 16:01:48 ansari Exp $";
    1211
    1312namespace SOPHYA {
  • trunk/SophyaLib/SkyMap/spherethetaphi.cc

    r2990 r3572  
    192192  NPix_  = a.NPix_;
    193193  Omega_ = a.Omega_;
    194   int_4 k;
    195   for (k=0; k< NPix_; k++) pixels_(k) = a.pixels_(k);
    196   for (k=0; k< a.NPhi_.Size(); k++) NPhi_(k) = a.NPhi_(k);
    197   for (k=0; k< a.TNphi_.Size(); k++) TNphi_(k) = a.TNphi_(k);
    198   for (k=0; k< a.Theta_.Size(); k++) Theta_(k) = a.Theta_(k);
     194  for (int_4 k=0; k< NPix_; k++) pixels_(k) = a.pixels_(k);
     195  for (size_t k=0; k< a.NPhi_.Size(); k++) NPhi_(k) = a.NPhi_(k);
     196  for (size_t k=0; k< a.TNphi_.Size(); k++) TNphi_(k) = a.TNphi_(k);
     197  for (size_t k=0; k< a.Theta_.Size(); k++) Theta_(k) = a.Theta_(k);
    199198  return(*this);
    200199
     
    613612int_4 SphereThetaPhi<T>::GetSymThetaSliceIndex(int_4 idx) const
    614613{
    615   if(idx < 0 || idx >= NbThetaSlices())
     614  if(idx < 0 || idx >= (int_4)NbThetaSlices())
    616615    throw RangeCheckError("SphereThetaPhi::GetSymThetaSliceIndex index out of range");
    617616  return (NbThetaSlices()-1-idx);
     
    630629{
    631630
    632   if(index < 0 || index >= NbThetaSlices())
     631  if(index < 0 || index >= (int_4)NbThetaSlices())
    633632    throw RangeCheckError("SphereThetaPhi::GetThetaSlice(idx...) index out of range");
    634633   
     
    665664{
    666665
    667   if(index < 0 || index >= NbThetaSlices())
     666  if(index < 0 || index >= (int_4)NbThetaSlices())
    668667    throw RangeCheckError("SphereThetaPhi::GetThetaSlice(idx...)  idx out of range");
    669668
     
    673672  pixelIndices.ReSize(lring);
    674673  value.ReSize(lring);
    675   double Te= 0.;
    676   double Fi= 0.;
    677674  for(int_4 kk = 0; kk < lring; kk++)  {
    678675    pixelIndices(kk)=kk+iring ;
     
    686683T* SphereThetaPhi<T>::GetThetaSliceDataPtr(int_4 index)
    687684{
    688   if(index < 0 || index >= NbThetaSlices())
     685  if(index < 0 || index >= (int_4)NbThetaSlices())
    689686    throw RangeCheckError("SphereThetaPhi::GetThetaSliceDataPtr(idx)  idx out of range");
    690687  return pixels_.Begin()+Index(index,0);
Note: See TracChangeset for help on using the changeset viewer.