//#define TOISEQBUFFERED #include #include "toi.h" #include "fitstoirdr.h" #include "fitstoiwtr.h" #include "fitsspherehealpix.h" #include "sambainit.h" #include void usage(void); void usage(void) { cout<<"map_comp [-h] fitsphere1 fitshere2 fitsphere2w fitsout"<=narg) {usage(); exit(2);} string const fitsphere1 = arg[optind]; string const fitsphere2 = arg[optind+1]; string const fitsphere2w = arg[optind+2]; string const fitsphout = arg[optind+3]; cout<<">>>> map_comp:"< sph1,sph2,sph2w,sphdiff; FitsInFile sfits1(fitsphere1); sfits1 >> sph1; cout<<"SphereHEALPix: Type de map : "<> sph2; cout<<"SphereHEALPix: Type de map : "<> sph2w; cout<<"SphereHEALPix: Type de map : "<* sph = new SphereHEALPix(nlat); cout<<"SphereHEALPix: Type de map : "<TypeOfMap()<NbPixels()<SizeIndex()< diff(npix); // for (int j=0;j 0) && (sph1.PixVal(i) > -999.)) { diff[i] = sph1.PixVal(i) - sph2.PixVal(i); sph->PixVal(i)=diff[i]; nok ++; } else sph->PixVal(i)=-99999999.; r_8 min,max; diff.MinMax(min,max); cout << " MinMax = " << min << " " << max << endl; cout << " Mean = " << diff.Sum()/npix << endl; cout << " Var = " << diff.SumX2()/npix << endl; cout << "Values computed on " << double(nok)/npix*100. << "% of the map" << endl; // Ecriture de la sphere Healpix sur fits { FitsOutFile sfits(fitsphout,FitsFile::clear); cout<<"tsttoi2map: Creating sphere fits file "<