| Rev | Line |  | 
|---|
| [658] | 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 "spheregorski.h" | 
|---|
|  | 6 |  | 
|---|
|  | 7 | // Utilisation des generateurs aleatoires | 
|---|
|  | 8 | #include "nbrandom.h" | 
|---|
|  | 9 | #include "fitsioserver.h" | 
|---|
|  | 10 | int main() | 
|---|
|  | 11 | { | 
|---|
|  | 12 |  | 
|---|
|  | 13 | // ----- ATTENTION ------- | 
|---|
|  | 14 | // Initialisation de Peida | 
|---|
|  | 15 | // A faire au debut de main() | 
|---|
|  | 16 | PeidaInit(); | 
|---|
|  | 17 |  | 
|---|
|  | 18 | int m=4; | 
|---|
|  | 19 | SphereGorski<float> sph(m); | 
|---|
|  | 20 | cout << " nombre de pixels: " << sph.NbPixels() << endl; | 
|---|
|  | 21 | for(int j=0; j<sph.NbPixels(); j++ ) { | 
|---|
|  | 22 | sph(j)= (float)j; | 
|---|
|  | 23 | } | 
|---|
|  | 24 | sph.print(cout); | 
|---|
|  | 25 | FitsIoServer fserv; | 
|---|
|  | 26 | fserv.save(sph, "sph.fits"); | 
|---|
|  | 27 | SphereGorski<double> sph2(m); | 
|---|
|  | 28 | fserv.load(sph2, "sph.fits"); | 
|---|
|  | 29 | sph2.print(cout); | 
|---|
|  | 30 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.