Ignore:
Timestamp:
Nov 15, 2000, 4:29:11 PM (25 years ago)
Author:
ansari
Message:

modifs returns de autoreader

File:
1 edited

Legend:

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

    r1301 r1334  
    2525}
    2626
     27int FITS_AutoReader::NbBlocks()
     28{
     29  return inFits_->NbBlocks();
     30}
    2731
    2832AnyDataObj* FITS_AutoReader::ReadObject(int hdunum) const
    2933{
     34  if (hdunum<=0)
     35    {
     36      throw PException(" FITS_AutoReader::ReadObject : hdu number must be positive");
     37    }
    3038  inFits_->ReadHeader(hdunum);
     39  if (inFits_->IsFitsEOF()) return NULL;
     40  if (inFits_->IsFitsERROR())
     41    {
     42      throw IOExc("FITS_AutoReader::ReadObject: FITSIO error in reading");
     43    }
    3144  DVList dvl=inFits_->DVListFromFits();
    3245  string nameObj = dvl.GetS("CONTENT");
    33   cout << " SOPHYA object identified as: " << dvl.GetS("CONTENT") << endl;
     46  //    cout << " SOPHYA object identified as: " << dvl.GetS("CONTENT") << endl;
    3447  if (nameObj == string("TArray") )
    3548    {
     
    8396  else
    8497    {
    85       throw IOExc("FITS_AutoReader::ReadObject : object not recognized as a  SOPHYA object");
     98      cout << " WARNING ( FITS_AutoReader::ReadObject) : object not recognized as a  SOPHYA object" << endl;
     99      return new DVList(dvl);
    86100    }
    87101 
Note: See TracChangeset for help on using the changeset viewer.