Changeset 2990 in Sophya for trunk/SophyaLib/SkyMap/sphereecp.cc


Ignore:
Timestamp:
Jun 23, 2006, 12:35:17 PM (19 years ago)
Author:
ansari
Message:

Ajouts methode GetThetaSliceDataPtr() dans SphericalMap, SphereThetaPhi SphereHEALPix SphereECP pour optimisation calcul transforme Ylm + passage TypeOfMap TETAFI->ECP pour SphereECP , Reza 23/6/2006

File:
1 edited

Legend:

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

    r2987 r2990  
    167167string SphereECP<T>::TypeOfMap() const
    168168{
    169   return string("TETAFI");
     169  return string("ECP");
    170170}
    171171
     
    370370  return;
    371371
     372}
     373
     374template <class T>
     375T*  SphereECP<T>::GetThetaSliceDataPtr(int_4 index)
     376{
     377  if( (index < 0) || (index >= _pixels.SizeY()) ) 
     378    throw RangeCheckError("SphereECP::GetThetaSliceDataPtr() index out of range");
     379  int_4 ioff = _phi1/_dphi;
     380  if (ioff != 0) return NULL;
     381  return _pixels.Data() + index*_pixels.SizeX();
    372382}
    373383
Note: See TracChangeset for help on using the changeset viewer.