Ignore:
Timestamp:
Jun 21, 2006, 5:55:29 PM (19 years ago)
Author:
ansari
Message:

1/ Suite codage HEALPix-NEST , test avec transforme Ylm OK
2/ Petites modifs et corrections diverses (ajout SizeIndex2Resol() par exemple)

Reza 21 Juin 2006

File:
1 edited

Legend:

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

    r2973 r2985  
    631631
    632632  if(index < 0 || index >= NbThetaSlices())
    633     throw RangeCheckError("SphereThetaPhi::GetThetaSlice() index out of range");
     633    throw RangeCheckError("SphereThetaPhi::GetThetaSlice(idx...) index out of range");
    634634   
    635635
     
    641641  double Te= 0.;
    642642  double Fi= 0.;
    643   for(int kk = 0; kk < lring; kk++)
    644     {
    645       PixThetaPhi(kk+iring,Te,Fi);
    646       phi(kk)= Fi;
    647       value(kk)= PixVal(kk+iring);
    648     }
     643  PixThetaPhi(iring,Te,Fi);
     644  double DFi = DeuxPi/(double)NPhi(index);
     645  for(int kk = 0; kk < lring; kk++)   {
     646    value(kk)= pixels_(kk+iring);
     647    phi(kk)= Fi;
     648    Fi += DFi;
     649  }
    649650  theta= Te;
    650651}
     
    665666
    666667  if(index < 0 || index >= NbThetaSlices())
    667     {
    668        throw RangeCheckError("SphereThetaPhi::PIxVal Pixel index out of range");
    669  
    670     }
     668    throw RangeCheckError("SphereThetaPhi::GetThetaSlice(idx...)  idx out of range");
    671669
    672670  int iring= Index(index,0);
     
    677675  double Te= 0.;
    678676  double Fi= 0.;
    679   for(int kk = 0; kk < lring; kk++)
    680     {
    681       pixelIndices(kk)=kk+iring ;
    682       value(kk)= PixVal(kk+iring);
    683     }
    684       PixThetaPhi(iring,theta,phi0);
     677  for(int kk = 0; kk < lring; kk++)  {
     678    pixelIndices(kk)=kk+iring ;
     679    value(kk)= pixels_(kk+iring);
     680  }
     681  PixThetaPhi(iring,theta,phi0);
    685682}
    686683
     
    692689{
    693690  Show(os);
     691  os << "SphereThetaPhi<T> NTheta_= " << NTheta_ << " NPix_    = " << NPix_
     692     << " Omega_  =  " << Omega_   << endl;
    694693  if(this->mInfo_) os << "  DVList Info= " << *(this->mInfo_) << endl;
    695   //
    696   os << " NTheta_= " << NTheta_ << endl;
    697   os << " NPix_    = " << NPix_   << endl;
    698   os << " Omega_  =  " << Omega_   << endl;
    699 
    700   os << " contenu de NPhi_ : ";
     694
     695  os << "... NPhi_ Values : ";
    701696  int i;
    702697  for(i=0; i < NTheta_; i++)
     
    707702  os << endl;
    708703
    709   os << " contenu de Theta_ : ";
     704  os << "... Theta_ Values : ";
    710705  for(i=0; i < NTheta_+1; i++)
    711706    {
     
    715710  os << endl;
    716711
    717   os << " contenu de TNphi_ : ";
     712  os << "... TNphi_ Values : ";
    718713  for(i=0; i < NTheta_+1; i++)
    719714    {
     
    723718  os << endl;
    724719
    725   os << " contenu de pixels : ";
     720  os << "... Pixel Values : ";
    726721  for(i=0; i < NPix_; i++)
    727722    {
Note: See TracChangeset for help on using the changeset viewer.