| Last change
 on this file since 823 was             768, checked in by ansari, 26 years ago | 
        
          | 
Reorganisation - PeidaInit() -> SophyaInit() - Reza 2/3/2000
 | 
        
          | File size:
            710 bytes | 
      
      
| Rev | Line |  | 
|---|
| [573] | 1 | // Utilisation des flots d'entree-sortie C++ | 
|---|
|  | 2 | #include <iostream.h> | 
|---|
|  | 3 | // Utilisation de la classe LocalMap<T> | 
|---|
|  | 4 | #include "outilsinit.h" | 
|---|
|  | 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.