Changeset 1334 in Sophya for trunk/SophyaExt/FitsIOServer/fitsautoreader.cc
- Timestamp:
- Nov 15, 2000, 4:29:11 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsautoreader.cc
r1301 r1334 25 25 } 26 26 27 int FITS_AutoReader::NbBlocks() 28 { 29 return inFits_->NbBlocks(); 30 } 27 31 28 32 AnyDataObj* FITS_AutoReader::ReadObject(int hdunum) const 29 33 { 34 if (hdunum<=0) 35 { 36 throw PException(" FITS_AutoReader::ReadObject : hdu number must be positive"); 37 } 30 38 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 } 31 44 DVList dvl=inFits_->DVListFromFits(); 32 45 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; 34 47 if (nameObj == string("TArray") ) 35 48 { … … 83 96 else 84 97 { 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); 86 100 } 87 101
Note:
See TracChangeset
for help on using the changeset viewer.