|
Last change
on this file since 3536 was 2615, checked in by cmv, 21 years ago |
|
using namespace sophya enleve de machdefs.h, nouveau sopnamsp.h cmv 10/09/2004
|
|
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.