source: Sophya/trunk/SophyaProg/Tests/sphg0.cc@ 2322

Last change on this file since 2322 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: 412 bytes
Line 
1#include <iostream>
2#include "sambainit.h"
3#include "tod.h"
4#include "spherehealpix.h"
5
6
7int main()
8{
9 double teta,phi;
10 SophyaInit();
11
12 int m=32;
13 SphereHEALPix<double> sph(m);
14 for (int j=0;j<sph.NbPixels();j++)
15 {
16 sph.PixThetaPhi(j,teta,phi);
17 sph(j)= 0.2* cos(3.*teta)*sin(8*phi);
18 }
19 // Projection dans une image
20
21 cout << " ===== Fin de sphg0 ======== " << endl;
22 return 0;
23}
Note: See TracBrowser for help on using the repository browser.