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
|
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
|
---|
[3077] | 9 | #include "srandgen.h"
|
---|
[573] | 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.