Changeset 854 in Sophya for trunk/SophyaExt/FitsIOServer/fitsioserver.cc
- Timestamp:
- Apr 10, 2000, 3:02:18 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsioserver.cc
r838 r854 80 80 if(DTYPE == TDOUBLE) 81 81 { 82 SphereH ealpix<double> *sph= new SphereHealpix<double>(nside);82 SphereHEALPix<double> *sph= new SphereHEALPix<double>(nside); 83 83 load(*sph,flnm,hdunum); 84 84 return sph; … … 87 87 else if(DTYPE == TFLOAT) 88 88 { 89 SphereH ealpix<float> *sph= new SphereHealpix<float>(nside);89 SphereHEALPix<float> *sph= new SphereHEALPix<float>(nside); 90 90 load(*sph,flnm,hdunum); 91 91 return sph; … … 501 501 { 502 502 sph.Resize(nside); 503 cout << "FitsIoServer::load(SphereH ealpix<double> ...) ReSizing to NSide= " << nside << endl;503 cout << "FitsIoServer::load(SphereHEALPix<double> ...) ReSizing to NSide= " << nside << endl; 504 504 } 505 505 // else … … 513 513 514 514 515 void FitsIoServer::load(SphereH ealpix<float>& sph,char flnm[],int nth)515 void FitsIoServer::load(SphereHEALPix<float>& sph,char flnm[],int nth) 516 516 { 517 517 int npixels= 0; … … 537 537 { 538 538 cout<<" FITSIOSERVER: no resolution parameter on fits file "<<endl; 539 throw IOExc("FitsIoServer::load(SphereH ealpix<float>& ," + (string)flnm + ", ) Error No resolution parameter !");539 throw IOExc("FitsIoServer::load(SphereHEALPix<float>& ," + (string)flnm + ", ) Error No resolution parameter !"); 540 540 } 541 541 if (nside != sph.SizeIndex()) 542 542 { 543 543 sph.Resize(nside); 544 cout << " FitsIoServer::load(SphereH ealpix<float> ...)";544 cout << " FitsIoServer::load(SphereHEALPix<float> ...)"; 545 545 cout << " ReSizing to NSide= " << nside << endl; 546 546 } … … 550 550 } 551 551 552 void FitsIoServer::load(SphereH ealpix<double>& sph,char flnm[],int nth)552 void FitsIoServer::load(SphereHEALPix<double>& sph,char flnm[],int nth) 553 553 { 554 554 int npixels= 0; … … 570 570 { 571 571 if(nside <= 0) 572 throw IOExc("FitsIoServer::load(SphereH ealpix<double>& ," + (string)flnm + ", ) No resol parameter !");572 throw IOExc("FitsIoServer::load(SphereHEALPix<double>& ," + (string)flnm + ", ) No resol parameter !"); 573 573 574 574 if(nside != sph.SizeIndex()) 575 575 { 576 576 sph.Resize(nside); 577 cout << " FitsIoServer::load(SphereH ealpix<double> ...)";577 cout << " FitsIoServer::load(SphereHEALPix<double> ...)"; 578 578 cout << " ReSizing to NSide= " << nside << endl; 579 579 } … … 584 584 } 585 585 586 void FitsIoServer::load(SphereH ealpix<double>& sph1,SphereHealpix<double>& sph2,SphereHealpix<double>& sph3, char flnm[])586 void FitsIoServer::load(SphereHEALPix<double>& sph1,SphereHEALPix<double>& sph2,SphereHEALPix<double>& sph3, char flnm[]) 587 587 { 588 588 int npixels= 0; … … 604 604 { 605 605 if(nside <= 0) 606 throw IOExc("FitsIoServer::load(SphereH ealpix<double>& ," + (string)flnm + ", ) No resol parameter !");606 throw IOExc("FitsIoServer::load(SphereHEALPix<double>& ," + (string)flnm + ", ) No resol parameter !"); 607 607 608 608 if(nside != sph1.SizeIndex() || nside != sph2.SizeIndex() || nside != sph3.SizeIndex()) … … 611 611 sph2.Resize(nside); 612 612 sph3.Resize(nside); 613 cout << " FitsIoServer::load(SphereH ealpix<double> ...)";613 cout << " FitsIoServer::load(SphereHEALPix<double> ...)"; 614 614 cout << " ReSizing to NSide= " << nside << endl; 615 615 } … … 621 621 } 622 622 623 void FitsIoServer::load(SphereH ealpix<float>& sph1,SphereHealpix<float>& sph2,SphereHealpix<float>& sph3, char flnm[])623 void FitsIoServer::load(SphereHEALPix<float>& sph1,SphereHEALPix<float>& sph2,SphereHEALPix<float>& sph3, char flnm[]) 624 624 { 625 625 int npixels= 0; … … 645 645 { 646 646 cout<<" FITSIOSERVER: no resolution parameter on fits file "<<endl; 647 throw IOExc("FitsIoServer::load(SphereH ealpix<float>& ," + (string)flnm + ", ) Error No resolution parameter !");647 throw IOExc("FitsIoServer::load(SphereHEALPix<float>& ," + (string)flnm + ", ) Error No resolution parameter !"); 648 648 } 649 649 if(nside != sph1.SizeIndex() || nside != sph2.SizeIndex() || nside != sph3.SizeIndex()) … … 652 652 sph2.Resize(nside); 653 653 sph3.Resize(nside); 654 cout << " FitsIoServer::load(SphereH ealpix<float> ...)";654 cout << " FitsIoServer::load(SphereHEALPix<float> ...)"; 655 655 cout << " ReSizing to NSide= " << nside << endl; 656 656 } … … 1064 1064 1065 1065 } 1066 void FitsIoServer::save(SphereH ealpix<float>& sph, char filename[], int nth)1066 void FitsIoServer::save(SphereHEALPix<float>& sph, char filename[], int nth) 1067 1067 { 1068 1068 int npixels = sph.NbPixels(); … … 1086 1086 1087 1087 } 1088 void FitsIoServer::save(SphereH ealpix<double>& sph, char filename[], int nth)1088 void FitsIoServer::save(SphereHEALPix<double>& sph, char filename[], int nth) 1089 1089 { 1090 1090 int npixels = sph.NbPixels(); … … 1108 1108 1109 1109 } 1110 void FitsIoServer::save(SphereH ealpix<double>& sph1,SphereHealpix<double>& sph2,SphereHealpix<double>& sph3, char filename[])1110 void FitsIoServer::save(SphereHEALPix<double>& sph1,SphereHEALPix<double>& sph2,SphereHEALPix<double>& sph3, char filename[]) 1111 1111 { 1112 1112 int npixels = sph1.NbPixels(); … … 1140 1140 } 1141 1141 1142 void FitsIoServer::save(SphereH ealpix<float>& sph1,SphereHealpix<float>& sph2,SphereHealpix<float>& sph3, char filename[])1142 void FitsIoServer::save(SphereHEALPix<float>& sph1,SphereHEALPix<float>& sph2,SphereHEALPix<float>& sph3, char filename[]) 1143 1143 { 1144 1144 int npixels = sph1.NbPixels();
Note:
See TracChangeset
for help on using the changeset viewer.