Ignore:
Timestamp:
Apr 10, 2000, 3:02:18 PM (25 years ago)
Author:
ansari
Message:

Adaptation s SphereHEALPix et deplacement SkyMap/fitsspherehealpix ici

Reza 10/4/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsioserver.cc

    r838 r854  
    8080          if(DTYPE == TDOUBLE)
    8181            {
    82               SphereHealpix<double> *sph= new SphereHealpix<double>(nside);
     82              SphereHEALPix<double> *sph= new SphereHEALPix<double>(nside);
    8383              load(*sph,flnm,hdunum);
    8484              return sph;
     
    8787          else if(DTYPE == TFLOAT)
    8888            {
    89               SphereHealpix<float> *sph= new SphereHealpix<float>(nside);
     89              SphereHEALPix<float> *sph= new SphereHEALPix<float>(nside);
    9090              load(*sph,flnm,hdunum);
    9191              return sph;
     
    501501        {
    502502          sph.Resize(nside);
    503           cout << "FitsIoServer::load(SphereHealpix<double> ...) ReSizing to NSide= " << nside  << endl;
     503          cout << "FitsIoServer::load(SphereHEALPix<double> ...) ReSizing to NSide= " << nside  << endl;
    504504        }
    505505      //      else
     
    513513
    514514
    515 void FitsIoServer::load(SphereHealpix<float>& sph,char flnm[],int nth)
     515void FitsIoServer::load(SphereHEALPix<float>& sph,char flnm[],int nth)
    516516{
    517517  int npixels= 0;
     
    537537        {
    538538          cout<<" FITSIOSERVER: no resolution parameter on fits file "<<endl;
    539           throw IOExc("FitsIoServer::load(SphereHealpix<float>& ," + (string)flnm + ", ) Error No resolution parameter !");
     539          throw IOExc("FitsIoServer::load(SphereHEALPix<float>& ," + (string)flnm + ", ) Error No resolution parameter !");
    540540        }
    541541      if (nside != sph.SizeIndex())
    542542        {
    543543          sph.Resize(nside);
    544           cout << " FitsIoServer::load(SphereHealpix<float> ...)";
     544          cout << " FitsIoServer::load(SphereHEALPix<float> ...)";
    545545          cout << "  ReSizing to NSide= " << nside << endl;
    546546        }
     
    550550}
    551551
    552 void FitsIoServer::load(SphereHealpix<double>& sph,char flnm[],int nth)
     552void FitsIoServer::load(SphereHEALPix<double>& sph,char flnm[],int nth)
    553553{
    554554  int npixels= 0;
     
    570570    {
    571571      if(nside <= 0)
    572         throw IOExc("FitsIoServer::load(SphereHealpix<double>& ," + (string)flnm + ", )  No resol parameter !");
     572        throw IOExc("FitsIoServer::load(SphereHEALPix<double>& ," + (string)flnm + ", )  No resol parameter !");
    573573
    574574      if(nside != sph.SizeIndex())
    575575        {
    576576          sph.Resize(nside);
    577           cout << " FitsIoServer::load(SphereHealpix<double> ...)";
     577          cout << " FitsIoServer::load(SphereHEALPix<double> ...)";
    578578          cout << "  ReSizing to NSide= " << nside << endl;
    579579        }
     
    584584}
    585585
    586 void FitsIoServer::load(SphereHealpix<double>& sph1,SphereHealpix<double>& sph2,SphereHealpix<double>& sph3, char flnm[])
     586void FitsIoServer::load(SphereHEALPix<double>& sph1,SphereHEALPix<double>& sph2,SphereHEALPix<double>& sph3, char flnm[])
    587587{
    588588  int npixels= 0;
     
    604604    {
    605605      if(nside <= 0)
    606         throw IOExc("FitsIoServer::load(SphereHealpix<double>& ," + (string)flnm + ", )  No resol parameter !");
     606        throw IOExc("FitsIoServer::load(SphereHEALPix<double>& ," + (string)flnm + ", )  No resol parameter !");
    607607
    608608      if(nside != sph1.SizeIndex() || nside != sph2.SizeIndex() || nside != sph3.SizeIndex())
     
    611611          sph2.Resize(nside);
    612612          sph3.Resize(nside);
    613           cout << " FitsIoServer::load(SphereHealpix<double> ...)";
     613          cout << " FitsIoServer::load(SphereHEALPix<double> ...)";
    614614          cout << "  ReSizing to NSide= " << nside << endl;
    615615        }
     
    621621}
    622622
    623 void FitsIoServer::load(SphereHealpix<float>& sph1,SphereHealpix<float>& sph2,SphereHealpix<float>& sph3, char flnm[])
     623void FitsIoServer::load(SphereHEALPix<float>& sph1,SphereHEALPix<float>& sph2,SphereHEALPix<float>& sph3, char flnm[])
    624624{
    625625  int npixels= 0;
     
    645645        {
    646646          cout<<" FITSIOSERVER: no resolution parameter on fits file "<<endl;
    647           throw IOExc("FitsIoServer::load(SphereHealpix<float>& ," + (string)flnm + ", ) Error No resolution parameter !");
     647          throw IOExc("FitsIoServer::load(SphereHEALPix<float>& ," + (string)flnm + ", ) Error No resolution parameter !");
    648648        }
    649649      if(nside != sph1.SizeIndex() || nside != sph2.SizeIndex() || nside != sph3.SizeIndex())
     
    652652          sph2.Resize(nside);
    653653          sph3.Resize(nside);
    654           cout << " FitsIoServer::load(SphereHealpix<float> ...)";
     654          cout << " FitsIoServer::load(SphereHEALPix<float> ...)";
    655655          cout << "  ReSizing to NSide= " << nside << endl;
    656656        }
     
    10641064
    10651065}
    1066 void FitsIoServer::save(SphereHealpix<float>& sph, char filename[], int nth)   
     1066void FitsIoServer::save(SphereHEALPix<float>& sph, char filename[], int nth)   
    10671067{
    10681068  int npixels = sph.NbPixels();
     
    10861086
    10871087}
    1088 void FitsIoServer::save(SphereHealpix<double>& sph, char filename[], int nth)   
     1088void FitsIoServer::save(SphereHEALPix<double>& sph, char filename[], int nth)   
    10891089{
    10901090  int npixels = sph.NbPixels();
     
    11081108
    11091109}
    1110 void FitsIoServer::save(SphereHealpix<double>& sph1,SphereHealpix<double>& sph2,SphereHealpix<double>& sph3, char filename[])   
     1110void FitsIoServer::save(SphereHEALPix<double>& sph1,SphereHEALPix<double>& sph2,SphereHEALPix<double>& sph3, char filename[])   
    11111111{
    11121112  int npixels = sph1.NbPixels();
     
    11401140}
    11411141
    1142 void FitsIoServer::save(SphereHealpix<float>& sph1,SphereHealpix<float>& sph2,SphereHealpix<float>& sph3, char filename[])   
     1142void FitsIoServer::save(SphereHEALPix<float>& sph1,SphereHEALPix<float>& sph2,SphereHEALPix<float>& sph3, char filename[])   
    11431143{
    11441144  int npixels = sph1.NbPixels();
Note: See TracChangeset for help on using the changeset viewer.