| Rev | Line |   | 
|---|
| [573] | 1 | // Utilisation des flots d'entree-sortie C++
 | 
|---|
 | 2 | #include <iostream.h>
 | 
|---|
 | 3 | // Utilisation de la classe LocalMap<T>
 | 
|---|
| [837] | 4 | #include "ntoolsinit.h"
 | 
|---|
| [573] | 5 | #include "spheregorski.h"
 | 
|---|
 | 6 | 
 | 
|---|
 | 7 | // Utilisation des generateurs aleatoires
 | 
|---|
 | 8 | #include "nbrandom.h"
 | 
|---|
 | 9 | #include "fitsioserver.h" 
 | 
|---|
| [768] | 10 | #include "skymapinit.h"
 | 
|---|
 | 11 | 
 | 
|---|
| [573] | 12 | int main()
 | 
|---|
 | 13 | {
 | 
|---|
 | 14 | 
 | 
|---|
 | 15 |   // ----- ATTENTION -------
 | 
|---|
| [768] | 16 |   // Initialisation de Sophya
 | 
|---|
| [573] | 17 |   // A faire au debut de main()
 | 
|---|
| [768] | 18 |   SophyaInit();
 | 
|---|
| [573] | 19 | 
 | 
|---|
 | 20 |   int m=4;
 | 
|---|
 | 21 |   SphereGorski<float> sph(m);
 | 
|---|
 | 22 |   cout << " nombre de pixels: " << sph.NbPixels() << endl;
 | 
|---|
 | 23 |   for(int j=0; j<sph.NbPixels(); j++ ) {
 | 
|---|
 | 24 |     sph(j)= (float)j;
 | 
|---|
 | 25 |   }
 | 
|---|
 | 26 |   sph.print(cout);
 | 
|---|
 | 27 |   FitsIoServer fserv;
 | 
|---|
 | 28 |   fserv.save(sph, "sph.fits");
 | 
|---|
 | 29 |   SphereGorski<double> sph2(m);
 | 
|---|
 | 30 |   fserv.load(sph2, "sph.fits");
 | 
|---|
 | 31 |   sph2.print(cout);
 | 
|---|
 | 32 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.