- Timestamp:
- Oct 17, 2001, 5:38:16 PM (24 years ago)
- Location:
- trunk/SophyaExt/FitsIOServer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsfile.cc
r1499 r1703 187 187 cout << " erreur:: " << texte << endl; 188 188 throw IOExc("FitsFile:: error FITSIO status"); 189 } 190 void FitsFile::printerrorAndContinue(int& status, char* texte) 191 //*****************************************************/ 192 //* Print out cfitsio error messages and exit program */ 193 //*****************************************************/ 194 { 195 // print out cfitsio error messages and exit program 196 // print error report 197 fits_report_error(stderr, status); 198 cout << " erreur:: " << texte << endl; 199 // throw IOExc("FitsFile:: error FITSIO status"); 189 200 } 190 201 … … 322 333 if (hdunum<0) 323 334 { 324 throw PException(" F ITS_AutoReader::ReadObject: hdu number must be not negative");335 throw PException(" FitsInFile::ReadHeader : hdu number must be not negative"); 325 336 } 326 337 if (hdunum != 0 ) hdunum_ = hdunum; … … 835 846 fits_read_col(fptr_,TDOUBLE,NoCol+1,1,1,nels,&dnull,valeurs, 836 847 &anull,&status); 837 if( status ) printerror( status,"erreur lecture de colonne" ); 838 848 if( status ) 849 { 850 printerrorAndContinue( status,"erreur lecture de colonne" ); 851 } 839 852 } 840 853 … … 872 885 fits_read_col(fptr_,TFLOAT,NoCol+1,1,1,nels,&fnull,valeurs, 873 886 &anull,&status); 874 if( status ) printerror ( status,"erreur lecture de colonne" );887 if( status ) printerrorAndContinue( status,"erreur lecture de colonne" ); 875 888 } 876 889 … … 907 920 fits_read_col(fptr_,TINT,NoCol+1,1,1,nels,&inull,valeurs, 908 921 &anull,&status); 909 if( status ) printerror ( status,"erreur lecture de colonne" );922 if( status ) printerrorAndContinue( status,"erreur lecture de colonne" ); 910 923 } 911 924 … … 938 951 fits_read_col(fptr_,TSTRING,NoCol+1,frow,felem,nels,cnull,valeurs, 939 952 &anull,&status); 940 if( status ) printerror ( status,"erreur lecture de colonne" );953 if( status ) printerrorAndContinue( status,"erreur lecture de colonne" ); 941 954 } 942 955 -
trunk/SophyaExt/FitsIOServer/fitsfile.h
r1418 r1703 113 113 static void printerror(int&) ; 114 114 static void printerror(int&,char* texte) ; 115 static void printerrorAndContinue(int& status, char* texte); 115 116 inline void InitNull() {fptr_ = NULL; hdutype_= FitsExtensionType_NULL; hdunum_ = 0; 116 117 fits_status_ = 0; imageOnPrimary_ = true;} -
trunk/SophyaExt/FitsIOServer/fitsspherehealpix.cc
r1371 r1703 188 188 else 189 189 { 190 throw IOExc("FITS_SphereHEALPix:: No NSIDE nor LASTPIX on file"); 190 // dvl.Print(); 191 // int naxis2 = dvl.GetI("NAXIS2"); 192 // if (naxis2 > 0 ) 193 // { 194 nside = sqrt((double)(nbentries/12)); 195 // } 196 // else 197 // throw IOExc("FITS_SphereHEALPix:: No NSIDE nor LASTPIX nor NAXIS2 on file"); 191 198 } 192 199 }
Note:
See TracChangeset
for help on using the changeset viewer.