source: Sophya/trunk/Poubelle/DPC:FitsIOServer/Tests/fitsioLocMap.cc

Last change on this file was 658, checked in by ansari, 26 years ago

no message

File size: 682 bytes
Line 
1// Utilisation des flots d'entree-sortie C++
2#include <iostream.h>
3// Utilisation de la classe LocalMap<T>
4#include "outilsinit.h"
5#include "localmap.h"
6
7// Utilisation des generateurs aleatoires
8#include "nbrandom.h"
9#include "fitsioserver.h"
10int main()
11{
12
13 // ----- ATTENTION -------
14 // Initialisation de Peida
15 // A faire au debut de main()
16 PeidaInit();
17
18 int nx=10;
19 int ny=5;
20 LocalMap cart(nx,ny);
21
22 float tt=1.57;
23 float ff=3.14;
24 cart.SetOrigin(tt*1.5,tt,45.);
25 cart.SetSize(60.,30.);
26 for(int j=0; j<cart.NbPixels(); j++ ) {
27 float theta,phi;
28 cart.PixThetaPhi(j, theta,phi);
29 int jsph=sph.PixIndexSph(theta, phi);
30 cart(j)= (double)j;
31 }
32
33
34}
Note: See TracBrowser for help on using the repository browser.