Changeset 518 in Sophya for trunk/SophyaLib/Samba/spheregorski.cc


Ignore:
Timestamp:
Oct 26, 1999, 4:31:44 PM (26 years ago)
Author:
ansari
Message:

Introduction de SpherePosition and SphereCoordSys, and Initiator for module Samba - Reza+I. Grivell 26/10/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/spheregorski.cc

    r515 r518  
    452452//++
    453453template<class T>
     454bool SphereGorski<T>::ContainsSph(double theta, double phi) const
     455//--
     456{
     457return(true);
     458}
     459
     460/* --Methode-- */
     461//++
     462template<class T>
    454463int SphereGorski<T>::PixIndexSph(double theta,double phi) const
    455464
     
    890899  //  return ( ipf + face_num*pow(nside,2));//    ! in {0, 12*nside**2 - 1}
    891900  // $CHECK$  Reza 25/10/99 , pow remplace par *
    892   //  ipf = ipf / ((ns_max/nside)*(ns_max/nside)); //  ! in {0, nside**2 - 1}
    893   //  return ( ipf + face_num*(nside*nside);//    ! in {0, 12*nside**2 - 1}
     901  ipf = ipf / ((ns_max/nside)*(ns_max/nside));
     902  return (ipf + face_num*nside*nside);
    894903}
    895904
     
    11381147    }
    11391148
     1149// Let's Read the SphereCoordSys object  -- ATTENTIOn - $CHECK$
     1150  SphereCoordSys* cs = dynamic_cast<SphereCoordSys*>(is.ReadObject());
     1151  dobj->SetCoordSys(cs);
     1152
    11401153  // Pour savoir s'il y avait un DVList Info associe
    11411154  char strg[256];
     
    11771190      return;
    11781191    }
     1192
     1193// Let's write the SphereCoordSys object
     1194  dobj->GetCoordSys()->Write(os);
    11791195
    11801196  char strg[256];
Note: See TracChangeset for help on using the changeset viewer.