Last change
on this file since 1170 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
|
Rev | Line | |
---|
[491] | 1 | #include <iostream.h>
|
---|
[526] | 2 | #include "sambainit.h"
|
---|
[583] | 3 | #include "tod.h"
|
---|
[857] | 4 | #include "spherehealpix.h"
|
---|
[491] | 5 |
|
---|
| 6 |
|
---|
| 7 | int main()
|
---|
| 8 | {
|
---|
| 9 | double teta,phi;
|
---|
[768] | 10 | SophyaInit();
|
---|
| 11 |
|
---|
[491] | 12 | int m=32;
|
---|
[857] | 13 | SphereHEALPix<double> sph(m);
|
---|
[491] | 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 |
|
---|
[857] | 21 | cout << " ===== Fin de sphg0 ======== " << endl;
|
---|
[491] | 22 | return 0;
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.