Changeset 885 in Sophya
- Timestamp:
- Apr 11, 2000, 4:31:36 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/PMixer/skymixer.cc
r880 r885 208 208 cout << "....BetaFits... Reading Beta FITS map " << (string)flnm << endl; 209 209 fios.load(betaMap, flnm, 2); 210 if(nSideForInt<0) nSideForInt = sqrt( betaMap.NbPixels()/12);210 if(nSideForInt<0) nSideForInt = sqrt((double)betaMap.NbPixels()/12); 211 211 212 212 bool bydefault = true; … … 521 521 cout << "nb pixels: " << finalMap.NbPixels() << endl; 522 522 } 523 SphereHEALPix<T> bigBetaMap(sqrt( nbpix/12));523 SphereHEALPix<T> bigBetaMap(sqrt((double)nbpix/12)); 524 524 if(nbpix != betaMap.NbPixels()) 525 525 { … … 543 543 { 544 544 // int nbpix = intBetaMap.NbPixels(); 545 // SphereHEALPix<T> newMap(sqrt( nbpix/12));545 // SphereHEALPix<T> newMap(sqrt((double)nbpix/12)); 546 546 Sph2Sph(betaMap,intBetaMap); 547 547 for(int i=0; i<intBetaMap.NbPixels(); i++) … … 576 576 { 577 577 cout << "nbpix != intBetaMap.NbPixels()" << endl; 578 SphereHEALPix<T> bigBetaMap(sqrt( nbpix/12));579 cout << "new map with size corresponding to mapToAdd" << sqrt( nbpix/12) << endl;578 SphereHEALPix<T> bigBetaMap(sqrt((double)nbpix/12)); 579 cout << "new map with size corresponding to mapToAdd" << sqrt((double)nbpix/12) << endl; 580 580 Sph2Sph(intBetaMap,bigBetaMap); 581 581 for(int i=0; i<finalMap.NbPixels();i++) … … 604 604 // Les spheres peuvent etre de type et de pixelisations differentes 605 605 { 606 int k ,kin,kout;606 int kin,kout; 607 607 double teta,phi; 608 608
Note:
See TracChangeset
for help on using the changeset viewer.