| 
            Last change
 on this file since 2396 was             2322, checked in by cmv, 23 years ago           | 
        
        
          
            - passage xxstream.h en xxstream
 - compile avec gcc_3.2, gcc_2.96 et cxx
En 3.2 le seek from ::end semble marcher (voir Eval/COS/pbseekios.cc)
 
 
rz+cmv 11/2/2003 
 
 
 
           | 
        
        
          | 
            File size:
            412 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [2322] | 1 | #include <iostream>
 | 
|---|
| [526] | 2 | #include "sambainit.h"
 | 
|---|
| [583] | 3 | #include "tod.h"
 | 
|---|
| [857] | 4 | #include "spherehealpix.h"
 | 
|---|
| [491] | 5 | 
 | 
|---|
 | 6 | 
 | 
|---|
 | 7 | int main() 
 | 
|---|
 | 8 | {
 | 
|---|
 | 9 |   double teta,phi;
 | 
|---|
| [768] | 10 |   SophyaInit();
 | 
|---|
 | 11 | 
 | 
|---|
| [491] | 12 |   int  m=32;
 | 
|---|
| [857] | 13 |   SphereHEALPix<double> sph(m);
 | 
|---|
| [491] | 14 |   for (int j=0;j<sph.NbPixels();j++) 
 | 
|---|
 | 15 |     {
 | 
|---|
 | 16 |       sph.PixThetaPhi(j,teta,phi);
 | 
|---|
 | 17 |       sph(j)= 0.2* cos(3.*teta)*sin(8*phi);
 | 
|---|
 | 18 |     }
 | 
|---|
 | 19 |   // Projection  dans une image
 | 
|---|
 | 20 | 
 | 
|---|
| [857] | 21 |   cout <<  " ===== Fin de sphg0 ======== " << endl;
 | 
|---|
| [491] | 22 |   return 0;
 | 
|---|
 | 23 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.