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