source: Sophya/trunk/SophyaProg/Tests/fitsioSphere.cc@ 1567

Last change on this file since 1567 was 837, checked in by ansari, 25 years ago

modifs cmv 7/4/00

File size: 721 bytes
Line 
1// Utilisation des flots d'entree-sortie C++
2#include <iostream.h>
3// Utilisation de la classe LocalMap<T>
4#include "ntoolsinit.h"
5#include "spheregorski.h"
6
7// Utilisation des generateurs aleatoires
8#include "nbrandom.h"
9#include "fitsioserver.h"
10#include "skymapinit.h"
11
12int main()
13{
14
15 // ----- ATTENTION -------
16 // Initialisation de Sophya
17 // A faire au debut de main()
18 SophyaInit();
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.