Ignore:
Timestamp:
Aug 11, 2006, 10:42:10 AM (19 years ago)
Author:
ansari
Message:

Ajout FitsInOutFile::SkipEmptyFirstHDU() , positionnement sur HDU 2 si HDU 1 vide ds operateur >> lisant des tables + autres petites corrections , Reza 11/08/2006

File:
1 edited

Legend:

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

    r2979 r3047  
    172172void FITS_SphereHEALPix<T>::ReadFromFits(FitsInFile& is)
    173173{
    174   if(dobj_ == NULL)
    175     {
    176       dobj_= new SphereHEALPix<T>;
    177       ownobj_= true;     
    178     }
     174  if (is.CurrentHDUType() != BINARY_TBL )
     175    throw FitsIOException("FITS_SphereHEALPix<T>::ReadFromFits Not a binary table HDU");
     176
     177  if(dobj_ == NULL) {
     178    dobj_= new SphereHEALPix<T>;
     179    ownobj_= true;     
     180  }
    179181  int nbcols, nbentries;
    180182  //
Note: See TracChangeset for help on using the changeset viewer.