| Last change
 on this file since 2538 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:
            708 bytes | 
      
      
| Rev | Line |  | 
|---|
| [573] | 1 | // Utilisation des flots d'entree-sortie C++ | 
|---|
| [2322] | 2 | #include <iostream> | 
|---|
| [573] | 3 | // Utilisation de la classe LocalMap<T> | 
|---|
| [837] | 4 | #include "ntoolsinit.h" | 
|---|
| [573] | 5 | #include "localmap.h" | 
|---|
|  | 6 |  | 
|---|
|  | 7 | // Utilisation des generateurs aleatoires | 
|---|
|  | 8 | #include "nbrandom.h" | 
|---|
|  | 9 | #include "fitsioserver.h" | 
|---|
| [768] | 10 | #include "skymapinit.h" | 
|---|
|  | 11 |  | 
|---|
|  | 12 |  | 
|---|
| [573] | 13 | int main() | 
|---|
|  | 14 | { | 
|---|
|  | 15 |  | 
|---|
|  | 16 | // ----- ATTENTION ------- | 
|---|
| [768] | 17 | // Initialisation de Sophya | 
|---|
| [573] | 18 | // A faire au debut de main() | 
|---|
| [768] | 19 | SophyaInit(); | 
|---|
| [573] | 20 |  | 
|---|
|  | 21 | int nx=10; | 
|---|
|  | 22 | int ny=5; | 
|---|
|  | 23 | LocalMap cart(nx,ny); | 
|---|
|  | 24 |  | 
|---|
|  | 25 | float tt=1.57; | 
|---|
|  | 26 | float ff=3.14; | 
|---|
|  | 27 | cart.SetOrigin(tt*1.5,tt,45.); | 
|---|
|  | 28 | cart.SetSize(60.,30.); | 
|---|
|  | 29 | for(int j=0; j<cart.NbPixels(); j++ ) { | 
|---|
|  | 30 | float theta,phi; | 
|---|
|  | 31 | cart.PixThetaPhi(j, theta,phi); | 
|---|
|  | 32 | int jsph=sph.PixIndexSph(theta, phi); | 
|---|
|  | 33 | cart(j)= (double)j; | 
|---|
|  | 34 | } | 
|---|
|  | 35 |  | 
|---|
|  | 36 |  | 
|---|
|  | 37 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.