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

Last change on this file since 2609 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
Line 
1// Utilisation des flots d'entree-sortie C++
2#include <iostream>
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.