Last change
on this file since 2655 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:
730 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 "localmap.h"
|
---|
| 7 |
|
---|
| 8 | // Utilisation des generateurs aleatoires
|
---|
| 9 | #include "nbrandom.h"
|
---|
| 10 | #include "fitsioserver.h"
|
---|
[768] | 11 | #include "skymapinit.h"
|
---|
| 12 |
|
---|
| 13 |
|
---|
[573] | 14 | int main()
|
---|
| 15 | {
|
---|
| 16 |
|
---|
| 17 | // ----- ATTENTION -------
|
---|
[768] | 18 | // Initialisation de Sophya
|
---|
[573] | 19 | // A faire au debut de main()
|
---|
[768] | 20 | SophyaInit();
|
---|
[573] | 21 |
|
---|
| 22 | int nx=10;
|
---|
| 23 | int ny=5;
|
---|
| 24 | LocalMap cart(nx,ny);
|
---|
| 25 |
|
---|
| 26 | float tt=1.57;
|
---|
| 27 | float ff=3.14;
|
---|
| 28 | cart.SetOrigin(tt*1.5,tt,45.);
|
---|
| 29 | cart.SetSize(60.,30.);
|
---|
| 30 | for(int j=0; j<cart.NbPixels(); j++ ) {
|
---|
| 31 | float theta,phi;
|
---|
| 32 | cart.PixThetaPhi(j, theta,phi);
|
---|
| 33 | int jsph=sph.PixIndexSph(theta, phi);
|
---|
| 34 | cart(j)= (double)j;
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 |
|
---|
| 38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.