Last change
on this file since 1616 was 857, checked in by ansari, 25 years ago |
Adapatation a SphereHEALPix, correction tsttmatrix.cc tsttvector.cc - Reza 10/4/2000
|
File size:
414 bytes
|
Line | |
---|
1 | #include <iostream.h>
|
---|
2 | #include "sambainit.h"
|
---|
3 | #include "tod.h"
|
---|
4 | #include "spherehealpix.h"
|
---|
5 |
|
---|
6 |
|
---|
7 | int 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.