#include #include "sambainit.h" #include "spheregorski.h" #include "tod.h" #include "timing.h" int main(int narg, char* arg[]) { double teta,phi; PeidaInit(); InitTim(); // Initializing the CPU timer if ((narg > 1) && (strcmp(arg[1],"-h") == 0) ) { cout << " tspm [Gorski_M=32] : Gorski Spherical Map Test " << endl; exit(0); } int m=32; if (narg >1) m = atoi(arg[1]); cout << " ===== Gorski Spherical Map Test M= " << m << endl; SphereGorski sph(m); cout << "Filling spherical map NPixels= " << sph.NbPixels() << endl; for (int j=0;j fiog(sph) ; fiog.Write(s); cout << "SphMap written to sphg.ppf " << endl; } // Reading from the file { FIO_SphereGorski fiog("sphg.ppf"); double gmoy=0. , gsig = 0.; double valok; SphereGorski sph2 = fiog; PrtTim("End of Write/Read "); int ndiff = 0; for(int k=0; k 1.e-49) ndiff++; } cout << "SphMapFromFile Mean= " << gmoy << " Sigma = " << gsig << endl; cout << " NDiff = " << ndiff << " (should be zero = 0) " << endl; PrtTim("End of Mean-Sig "); } cout << " ===== Fin de TSPM_Test ======== " << endl; return 0; }