Last change
on this file since 3263 was 3077, checked in by cmv, 19 years ago |
remplacement nbrandom.h (obsolete) -> srandgen.h cmv 14/09/2006
|
File size:
741 bytes
|
Line | |
---|
1 | // Utilisation des flots d'entree-sortie C++
|
---|
2 | #include <iostream>
|
---|
3 | // Utilisation de la classe LocalMap<T>
|
---|
4 | #include "sopnamsp.h"
|
---|
5 | #include "ntoolsinit.h"
|
---|
6 | #include "spheregorski.h"
|
---|
7 |
|
---|
8 | // Utilisation des generateurs aleatoires
|
---|
9 | #include "srandgen.h"
|
---|
10 | #include "fitsioserver.h"
|
---|
11 | #include "skymapinit.h"
|
---|
12 |
|
---|
13 | int main()
|
---|
14 | {
|
---|
15 |
|
---|
16 | // ----- ATTENTION -------
|
---|
17 | // Initialisation de Sophya
|
---|
18 | // A faire au debut de main()
|
---|
19 | SophyaInit();
|
---|
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.