Ignore:
Timestamp:
Oct 17, 2001, 5:38:16 PM (24 years ago)
Author:
lemeur
Message:

lecture de spheres fits, sans NSIDE ni LASTPIX

File:
1 edited

Legend:

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

    r1499 r1703  
    187187  cout << " erreur:: " << texte << endl;
    188188  throw IOExc("FitsFile:: error FITSIO status");
     189}
     190void 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");
    189200}
    190201
     
    322333  if (hdunum<0)
    323334    {
    324       throw PException(" FITS_AutoReader::ReadObject : hdu number must be not negative");
     335      throw PException(" FitsInFile::ReadHeader : hdu number must be not negative");
    325336    }
    326337  if (hdunum != 0 ) hdunum_ = hdunum;
     
    835846      fits_read_col(fptr_,TDOUBLE,NoCol+1,1,1,nels,&dnull,valeurs,
    836847                            &anull,&status);
    837       if( status ) printerror( status,"erreur lecture de colonne" );
    838      
     848      if( status )
     849        {
     850          printerrorAndContinue( status,"erreur lecture de colonne" );
     851        }
    839852    }
    840853
     
    872885      fits_read_col(fptr_,TFLOAT,NoCol+1,1,1,nels,&fnull,valeurs,
    873886                            &anull,&status);
    874       if( status ) printerror( status,"erreur lecture de colonne" );
     887      if( status ) printerrorAndContinue( status,"erreur lecture de colonne" );
    875888    }
    876889
     
    907920      fits_read_col(fptr_,TINT,NoCol+1,1,1,nels,&inull,valeurs,
    908921                            &anull,&status);
    909       if( status ) printerror( status,"erreur lecture de colonne" );
     922      if( status ) printerrorAndContinue( status,"erreur lecture de colonne" );
    910923    }
    911924
     
    938951      fits_read_col(fptr_,TSTRING,NoCol+1,frow,felem,nels,cnull,valeurs,
    939952                    &anull,&status);
    940       if( status ) printerror( status,"erreur lecture de colonne" );
     953      if( status ) printerrorAndContinue( status,"erreur lecture de colonne" );
    941954    }
    942955
Note: See TracChangeset for help on using the changeset viewer.