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