Changeset 857 in Sophya for trunk/SophyaProg/Tests/tspm.cc
- Timestamp:
- Apr 10, 2000, 3:04:05 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Tests/tspm.cc
r768 r857 1 1 #include <iostream.h> 2 2 #include "skymapinit.h" 3 #include "spheregorski.h" 4 #include "spherethetaphi.h" 3 #include "skymap.h" 5 4 6 5 #include "tod.h" … … 30 29 InitTim(); // Initializing the CPU timer 31 30 if ((narg > 1) && (strcmp(arg[1],"-h") == 0) ) { 32 cout << " tspm [ Gorski_M=32] [M_TetaPhi=64] : Spherical Map Test " << endl;31 cout << " tspm [HEALPix_M=32] [M_TetaPhi=64] : Spherical Map Test " << endl; 33 32 exit(0); 34 33 } … … 36 35 int m=32; 37 36 if (narg >1) m = atoi(arg[1]); 38 cout << " ===== GorskiSpherical Map Test M= " << m << endl;37 cout << " ===== HEALPix Spherical Map Test M= " << m << endl; 39 38 40 Sphere Gorski<double> sph(m);39 SphereHEALPix<double> sph(m); 41 40 42 41 cout << "Filling spherical map NPixels= " << sph.NbPixels() << endl; … … 50 49 // Computing mean and sigma on the sphere 51 50 MeanSig(sph, gmoy, gsig); 52 cout << "Sphere Gorski<double> Mean= " << gmoy << " Sigma = " << gsig << endl;51 cout << "SphereHEALPix<double> Mean= " << gmoy << " Sigma = " << gsig << endl; 53 52 PrtTim("End of Mean-Sig "); 54 53 … … 56 55 { 57 56 POutPersist s("sphg.ppf"); 58 FIO_Sphere Gorski<double> fiog(&sph) ;57 FIO_SphereHEALPix<double> fiog(&sph) ; 59 58 fiog.Write(s); 60 cout << "Sphere Gorski<double> written to sphg.ppf " << endl;59 cout << "SphereHEALPix<double> written to sphg.ppf " << endl; 61 60 } 62 61 63 62 // Reading from the file 64 63 { 65 FIO_Sphere Gorski<double> fiog("sphg.ppf");66 Sphere Gorski<double> sph2 = fiog;64 FIO_SphereHEALPix<double> fiog("sphg.ppf"); 65 SphereHEALPix<double> sph2 = fiog; 67 66 PrtTim("End of Write/Read "); 68 67
Note:
See TracChangeset
for help on using the changeset viewer.