| 
            Last change
 on this file since 2886 was             2615, checked in by cmv, 21 years ago           | 
        
        
          | 
             
using namespace sophya enleve de machdefs.h, nouveau sopnamsp.h  cmv 10/09/2004 
 
           | 
        
        
          | 
            File size:
            741 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [573] | 1 | // Utilisation des flots d'entree-sortie C++
 | 
|---|
| [2322] | 2 | #include <iostream>
 | 
|---|
| [573] | 3 | // Utilisation de la classe LocalMap<T>
 | 
|---|
| [2615] | 4 | #include "sopnamsp.h"
 | 
|---|
| [837] | 5 | #include "ntoolsinit.h"
 | 
|---|
| [573] | 6 | #include "spheregorski.h"
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | // Utilisation des generateurs aleatoires
 | 
|---|
 | 9 | #include "nbrandom.h"
 | 
|---|
 | 10 | #include "fitsioserver.h" 
 | 
|---|
| [768] | 11 | #include "skymapinit.h"
 | 
|---|
 | 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 m=4;
 | 
|---|
 | 22 |   SphereGorski<float> sph(m);
 | 
|---|
 | 23 |   cout << " nombre de pixels: " << sph.NbPixels() << endl;
 | 
|---|
 | 24 |   for(int j=0; j<sph.NbPixels(); j++ ) {
 | 
|---|
 | 25 |     sph(j)= (float)j;
 | 
|---|
 | 26 |   }
 | 
|---|
 | 27 |   sph.print(cout);
 | 
|---|
 | 28 |   FitsIoServer fserv;
 | 
|---|
 | 29 |   fserv.save(sph, "sph.fits");
 | 
|---|
 | 30 |   SphereGorski<double> sph2(m);
 | 
|---|
 | 31 |   fserv.load(sph2, "sph.fits");
 | 
|---|
 | 32 |   sph2.print(cout);
 | 
|---|
 | 33 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.