casa
5.7.0-16
|
fixed-length sequential blocked FITS input More...
#include <fitsio.h>
Public Member Functions | |
FitsInput (const char *, const FITS::FitsDevice &, int=10, FITSErrorHandler errhandler=FITSError::defaultHandler) | |
FitsInput (FITSErrorHandler errhandler=FITSError::defaultHandler) | |
~FitsInput () | |
int | skip_hdu () |
void | skip_all (FITS::HDUType) |
skip all remaining data More... | |
char * | read_sp () |
int skip_hdu2(); read special or unrecognizable records More... | |
Vector< String > | kwlist_str (Bool length80=False) |
get hdu header image cards as strings. More... | |
int | blockno () const |
number of physical blocks read/written More... | |
int | recno () const |
number of logical records read/written More... | |
BlockInput & | getfin () |
int | getnumhdu () const |
the number of hdu in this fits file More... | |
Public Member Functions inherited from casacore::FitsIO | |
virtual | ~FitsIO () |
int | err () const |
int | fitsrecsize () const |
record size, in bytes, of a FITS block. More... | |
Bool | isafits () const |
is it a valid fits file (SIMPLE==T). More... | |
Bool | isextend () const |
see if there may be FITS extensions present (EXTENT==T) More... | |
Bool | eof () const |
test if end of file has been reached More... | |
FITS::FitsRecType | rectype () const |
the FITS record type More... | |
FITS::HDUType | hdutype () const |
Header Data Unit type (e.g. More... | |
FITS::ValueType | datatype () const |
OFF_T | datasize () const |
return the datasize of the current HDU. More... | |
Int | itemsize () const |
data characteristics More... | |
OFF_T | currsize () const |
for input, size of remaining data for output, size of data written More... | |
FitsKeyCardTranslator & | getkc () |
get FitsKeyCardTranslator More... | |
fitsfile * | getfptr () const |
get the fitsfile pointer More... | |
OFF_T | getskipsize () const |
get the size of the last skipped HDU More... | |
Private Member Functions | |
BlockInput & | make_input (const char *, const FITS::FitsDevice &, int, FITSErrorHandler errhandler=FITSError::defaultHandler) |
virtual void | errmsg (FitsErrs, const char *) |
set error message that belongs to one of the enumerated types More... | |
void | init () |
void | read_header_rec () |
bool | current_hdu_type (FITS::HDUType &) |
bool | get_data_type (FITS::ValueType &) |
int | process_header (FITS::HDUType, FitsKeywordList &) |
Special interface to class HeaderDataUnit. More... | |
OFF_T | read_all (FITS::HDUType, char *) |
read all data into a given address - all responsibility is given to the user More... | |
int | read (FITS::HDUType, char *, int) |
read N bytes into address More... | |
int | skip (FITS::HDUType, OFF_T) |
skip N bytes More... | |
Private Attributes | |
BlockInput & | m_fin |
Bool | m_got_rec |
flag used for read control in errors More... | |
int | m_thdunum |
total number of hdu in this fits file More... | |
Friends | |
int | HeaderDataUnit::get_hdr (FITS::HDUType, FitsKeywordList &) |
OFF_T | HeaderDataUnit::read_all_data (char *) |
int | HeaderDataUnit::read_data (char *, Int) |
int | HeaderDataUnit::skip (uInt) |
int | HeaderDataUnit::skip () |
Additional Inherited Members | |
Public Types inherited from casacore::FitsIO | |
enum | FitsErrs { OK, IOERR, MISSKEY, BADBEGIN, EMPTYFILE, NOPRIMARY, BADOPER, BADEOF, MEMERR, BADBITPIX, NOAXISN, NOPCOUNT, NOGCOUNT, BADPCOUNT, BADGCOUNT, NOGROUPS, BADNAXIS, BADPRIMARY, BADSIZE, HDUERR } |
error return code. More... | |
Protected Member Functions inherited from casacore::FitsIO | |
FitsIO (FITSErrorHandler) | |
Protected Attributes inherited from casacore::FitsIO | |
fitsfile * | m_fptr |
const int | m_recsize |
Bool | m_valid_fits |
Bool | m_extend |
Bool | m_isaprimary |
Bool | m_header_done |
FITS::FitsRecType | m_rec_type |
FITS::HDUType | m_hdu_type |
FITSErrorHandler | m_errfn |
FitsErrs | m_err_status |
FitsKeyCardTranslator | m_kc |
FitsKeywordList | m_kw |
char * | m_curr |
int | m_bytepos |
Int | m_item_size |
FITS::ValueType | m_data_type |
OFF_T | m_data_size |
uInt m_data_size; More... | |
OFF_T | m_curr_size |
for input, size of remaining data for output, size of data written uInt m_curr_size; More... | |
OFF_T | m_skipHDU_size |
for size of the last HDU skipped More... | |
casacore::FitsInput::FitsInput | ( | const char * | , |
const FITS::FitsDevice & | , | ||
int | = 10 , |
||
FITSErrorHandler | errhandler = FITSError::defaultHandler |
||
) |
casacore::FitsInput::FitsInput | ( | FITSErrorHandler | errhandler = FITSError::defaultHandler | ) |
casacore::FitsInput::~FitsInput | ( | ) |
|
inline |
number of physical blocks read/written
Definition at line 186 of file fitsio.h.
References casacore::BlockIO::blockno(), and m_fin.
|
private |
|
privatevirtual |
set error message that belongs to one of the enumerated types
Implements casacore::FitsIO.
|
private |
|
inline |
|
inline |
|
private |
get hdu header image cards as strings.
By default the strings will be of variable length. You can optionally ask for them to be length 80 (padded with spaces).
|
private |
|
private |
Special interface to class HeaderDataUnit.
special way to process header
|
private |
read N bytes into address
|
private |
read all data into a given address - all responsibility is given to the user
|
private |
char* casacore::FitsInput::read_sp | ( | ) |
int skip_hdu2(); read special or unrecognizable records
|
inline |
number of logical records read/written
Definition at line 189 of file fitsio.h.
References m_fin, and casacore::BlockIO::recno().
|
private |
skip N bytes
void casacore::FitsInput::skip_all | ( | FITS::HDUType | ) |
skip all remaining data
int casacore::FitsInput::skip_hdu | ( | ) |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |
total number of hdu in this fits file
Definition at line 203 of file fitsio.h.
Referenced by getnumhdu().