| Last change
 on this file since 2498 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:
            719 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 "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.