Changeset 2082 in Sophya for trunk/SophyaExt


Ignore:
Timestamp:
Jul 3, 2002, 3:29:50 PM (23 years ago)
Author:
ansari
Message:

Modifs HEALPixUtils.cc concernant la transformation des fmod() en operateur % et les floor() en div entier, + instanciation ecriture spherehealpix et autres cartes en int_4 (PPF et FITS) - Reza 3/7/2002

Location:
trunk/SophyaExt/FitsIOServer
Files:
2 edited

Legend:

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

    r1703 r2082  
    3737FITS_SphereHEALPix<T>::FITS_SphereHEALPix(const SphereHEALPix<T>& obj)
    3838{
    39    dobj_= new SphereHEALPix<T>(obj);
     39  dobj_= new SphereHEALPix<T>(obj);
    4040  ownobj_= true;
    4141}
     
    111111  string Type;
    112112  if (typeid(T) == typeid(r_8) ) Type+='D';
    113   else
    114     if (typeid(T) == typeid(r_4) )  Type+='E';
     113  else if (typeid(T) == typeid(r_4) )  Type+='E';
     114    else if (typeid(T) == typeid(int_4) )  Type+='J';
    115115    else
    116116      {
    117         cout <<  " type de la sphere= " <<  typeid(T).name() << endl;
    118         throw IOExc("FITS_SphereHEALPix:: unknown type");
     117        cout <<  "FITS_SphereHEALPix<T>::WriteToFits()- Unsupported data type ("
     118             <<  typeid(T).name() << ") throwing IOExc " << endl;
     119        throw IOExc("FITS_SphereHEALPix<T>::WriteToFits() unsupported data type");
    119120      }
    120121  vector<int> dummy;
  • trunk/SophyaExt/FitsIOServer/fitsspherethetaphi.cc

    r1752 r2082  
    111111  string Type;
    112112  if (typeid(T) == typeid(r_8) ) Type+='D';
    113   else
    114     if (typeid(T) == typeid(r_4) )  Type+='E';
     113  else if (typeid(T) == typeid(r_4) )  Type+='E';
     114  else if (typeid(T) == typeid(int_4) )  Type+='J';
    115115    else
    116116      {
    117         cout <<  " type de la sphere= " <<  typeid(T).name() << endl;
    118         throw IOExc("FITS_SphereThetaPhi:: unknown type");
     117        cout <<  "FITS_SphereThetaPhi<T>::WriteToFits - Unsupported data type ("
     118             <<  typeid(T).name() << ") throwing IOExc " << endl;
     119        throw IOExc("FITS_SphereThetaPhi<T>::WriteToFits() unsupported data type");
    119120      }
    120121
Note: See TracChangeset for help on using the changeset viewer.