source: Sophya/trunk/SophyaProg/Tests/fitsioLocMap.cc@ 1198

Last change on this file since 1198 was 837, checked in by ansari, 25 years ago

modifs cmv 7/4/00

File size: 710 bytes
Line 
1// Utilisation des flots d'entree-sortie C++
2#include <iostream.h>
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
13int 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.