source:
Sophya/trunk/SophyaProg/Tests/sphg0.cc
Last change on this file was 2615, checked in by , 21 years ago | |
---|---|
File size: 434 bytes |
Line | |
---|---|
1 | #include <iostream> |
2 | #include "sopnamsp.h" |
3 | #include "sambainit.h" |
4 | #include "tod.h" |
5 | #include "spherehealpix.h" |
6 | |
7 | |
8 | int main() |
9 | { |
10 | double teta,phi; |
11 | SophyaInit(); |
12 | |
13 | int m=32; |
14 | SphereHEALPix<double> sph(m); |
15 | for (int j=0;j<sph.NbPixels();j++) |
16 | { |
17 | sph.PixThetaPhi(j,teta,phi); |
18 | sph(j)= 0.2* cos(3.*teta)*sin(8*phi); |
19 | } |
20 | // Projection dans une image |
21 | |
22 | cout << " ===== Fin de sphg0 ======== " << endl; |
23 | return 0; |
24 | } |
Note:
See TracBrowser
for help on using the repository browser.