149 void mk(
const char *n,
Bool v,
const char *
c = 0);
150 void mk(
const char *n,
const char *v = 0,
const char *
c = 0);
151 void mk(
const char *n,
Int v,
const char *
c = 0);
152 void mk(
const char *n,
float v,
const char *
c = 0);
153 void mk(
const char *n,
double v,
const char *
c = 0);
154 void mk(
const char *n,
Int r,
Int i,
const char *
c = 0);
155 void mk(
const char *n,
float r,
float i,
const char *
c = 0);
156 void mk(
const char *n,
double r,
double i,
const char *
c = 0);
157 void spaces(
const char *n = 0,
const char *
c = 0);
158 void comment(
const char *n = 0,
const char *
c = 0);
339 template <
class TYPE>
378 double operator () (
int,
int,
int,
int,
int)
const;
388 TYPE &
data(
int,
int,
int,
int,
int);
389 TYPE &
data(
int,
int,
int,
int);
390 TYPE &
data(
int,
int,
int);
391 TYPE &
data(
int,
int);
418 int store(
const TYPE *source,
int npixels);
419 void copy(
double *target,
int npixels)
const;
420 void copy(
float *target,
int npixels)
const;
421 void move(TYPE *target,
int npixels)
const;
426 int naxis,
long naxes[],
int extend );
442 virtual int read(
int );
484 int offset(
int,
int)
const;
485 int offset(
int,
int,
int)
const;
486 int offset(
int,
int,
int,
int)
const;
487 int offset(
int,
int,
int,
int,
int)
const;
514 template <
class TYPE>
535 int bitpix,
int naxis,
long *naxes);
593 template <
class TYPE>
620 void copyparm(
double *target)
const;
705 template <
class TYPE>
720 int bitpix,
int naxis,
long *naxes);
812 int read(
char *addr,
int nbytes) {
851 virtual void *
data() = 0;
852 virtual int dims()
const;
853 virtual int dim(
int n)
const;
862 virtual void show(std::ostream &) = 0;
867 virtual void setaddr(
void **) = 0;
881 template <
class TYPE>
891 (*field)[0] = x;
return *
this; }
898 void show(std::ostream &);
934 byte_offset = i / 8;
mask = 0200 >> (i % 8);
return *
this; }
937 (*field)[byte_offset] =
938 (i == 0 ? ((*field)[byte_offset] & ~
mask) :
939 ((*
field)[byte_offset] |
mask));
return *
this; }
944 operator int() {
return (((*
field)[byte_offset] &
mask) != 0); }
948 void show(std::ostream &);
971 template <
class TYPE>
981 int dim(
int n)
const;
1012 int dim(
int n)
const;
1092 const char**,
const char**,
const char*,
long );
1177 long,
int,
const char **,
long *,
1178 const char **,
const char **,
const char *
e);
1199 #ifndef CASACORE_NO_AUTO_TEMPLATES
1200 #include <casacore/fits/FITS/hdu.tcc>
1201 #endif //# CASACORE_NO_AUTO_TEMPLATES
virtual int dim(int n) const
virtual int localfieldsize() const =0
int write_priTable_hdr(FitsOutput &fout, int bitpix, int naxis, long *naxes)
write required keywords for PrimaryTable
A 1-D Specialization of the Array class.
templated primary array base class of given type
virtual int write(FitsOutput &)
FitsArray< unsigned char > ByteFitsArray
ImageExtension< FitsLong > LongImageExtension
PrimaryArray< short > ShortPrimaryArray
int read()
The `read()' and `write()' functions control reading and writing data from the external FITS I/O medi...
char * ptype(int n) const
FitsBase(const FITS::ValueType &t, int n)
int writerow(FitsOutput &)
FITS templated helper class.
FitsKeyword * next(const FITS::ReservedName &)
static FitsBase * make(const FITS::ValueType &, int=1)
int write(FitsOutput &)
write current rows
unsigned int nelements() const
FitsField< FitsVADesc > VADescFitsField
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
void mk(FITS::ReservedName k, Bool v, const char *c=0)
Add (make) a reserved keyword with the given value and optional comment The comment will be truncated...
int write_imgExt_hdr(FitsOutput &fout, int bitpix, int naxis, long *naxes)
write required keywords for ImageExtension
virtual int fitsfieldsize() const =0
FitsBase & operator=(FitsBase &)
double crota(int n) const
BinaryTableExtension(FitsInput &, FITSErrorHandler errhandler=FITSError::defaultHandler)
void comment(const char *n=0, const char *c=0)
add a comment card
const char * tform(int n) const
double bscale() const
General access routines for a primary array.
char * tnull(int n)
ascii string that represents the NULL value
Int nrows() const
return basic elements of a table
FitsArray< double > DoubleFitsArray
double cdelt(int n) const
BinaryTableExtension & operator++()
row selector functions
virtual OFF_T set_next(OFF_T)
FitsArray< DComplex > DComplexFitsArray
static functions and enumerations
FitsArray< float > FloatFitsArray
PrimaryGroup< float > FloatPrimaryGroup
Random Group datastructure.
PrimaryTable< float > FloatPrimaryTable
FitsField< unsigned char > ByteFitsField
PrimaryTable< unsigned char > BytePrimaryTable
virtual int readrow()
read and write the next FITS data row
FitsField< Complex > ComplexFitsField
double crval(int n) const
FitsField< IComplex > IComplexFitsField
int offset(int, int) const
compute a linear offset from array indicies
helper class Note: Note that FitsField does not allocate space for the data; Space is external to Fi...
double pzero(int n) const
helper class for FITS Binary Tables
HDUType
Types of FITS Header-Data Units.
ostream & operator<<(ostream &os, const std::pair< T, U > &p)
double tzero(int n) const
PrimaryGroup< short > ShortPrimaryGroup
int read()
read, or write the next group
ValueType
FITS I/O Error message types.
FitsField< char > CharFitsField
FitsArray< short > ShortFitsArray
void setaddr(void **addr)
void show(std::ostream &)
PrimaryGroup< FitsLong > LongPrimaryGroup
char * ctype(int n) const
PrimaryArray< FitsLong > LongPrimaryArray
int read()
read entire table into memory
void(* FITSErrorHandler)(const char *errMessage, FITSError::ErrorLevel severity)
Define a typedef for the handler function signature for convenience.
void copy(double *target, FITS::FitsArrayOption=FITS::NoOpt) const
const char * tdim(int n) const
const char * ttype(int n) const
PrimaryTable< FitsLong > LongPrimaryTable
PrimaryGroup< unsigned char > BytePrimaryGroup
int bind(int, FitsBase &)
binds a FitsField to a column
PrimaryArray< float > FloatPrimaryArray
ImageExtension< float > FloatImageExtension
virtual void show(std::ostream &)=0
virtual ~BinaryTableExtension()
void move(TYPE *target, FITS::FitsArrayOption=FITS::NoOpt) const
FitsField< FitsLong > LongFitsField
virtual void setaddr(void **)=0
void moveparm(TYPE *target) const
FitsArray< FitsLogical > LogicalFitsArray
FitsArray(int, const int *)
int store(const TYPE *source, FITS::FitsArrayOption=FITS::NoOpt)
The `store()', `move()' and `copy()' functions allow bulk data transfer between the internal FITS arr...
ImageExtension(FitsInput &, FITSErrorHandler errhandler=FITSError::defaultHandler)
FITS::ValueType fieldtype() const
double cdelt(int n) const
const char * ctype(int n) const
int localfieldsize() const
PrimaryTable(FitsInput &, FITSErrorHandler errhandler=FITSError::defaultHandler)
int write_priArr_hdr(FitsOutput &fout, int simple, int bitpix, int naxis, long naxes[], int extend)
FitsField< DComplex > DComplexFitsField
FitsField< FitsLogical > LogicalFitsField
bool Bool
Define the standard types used by Casacore.
FitsField< FitsBit > BitFitsField
PrimaryTable< double > DoublePrimaryTable
list of read-only FITS keywords
FitsBase & field(int i) const
select a field
ImageExtension< unsigned char > ByteImageExtension
IMAGE extension of given type.
FitsArray< Complex > ComplexFitsArray
FitsArray< FitsLong > LongFitsArray
const char * referenc() const
void history(const char *c=0)
add a history card
virtual ~PrimaryArray()
destructor
FitsField< TYPE > & operator=(const TYPE &x)
BinaryTableExtension & operator()(int)
ImageExtension< double > DoubleImageExtension
int fitsfieldsize() const
FitsArray< FitsBit > BitFitsArray
PrimaryGroup< double > DoublePrimaryGroup
PrimaryGroup(FitsInput &, FITSErrorHandler errhandler=FITSError::defaultHandler)
int write_ascTbl_hdr(FitsOutput &, long, long, int, const char **, long *, const char **, const char **, const char *e)
write the required keywords for ASCIITableExtension
const char * tdisp(int n) const
void ** data_addr
data addresses of fields of current row
virtual int read()
The `read()' and `write()' functions control reading and writing data from the external FITS I/O medi...
fixed-length sequential blocked FITS output
Int currrow() const
get current row
const char * author() const
FitsArray< char > CharFitsArray
TYPE & data(int, int, int, int, int)
The various `data()' functions allow one to access and set the raw data itself.
FitsArray< IComplex > IComplexFitsArray
const Double e
e and functions thereof:
PrimaryArray< unsigned char > BytePrimaryArray
FitsField< float > FloatFitsField
virtual int writerow(FitsOutput &)
PrimaryTable< short > ShortPrimaryTable
int write_priGrp_hdr(FitsOutput &fout, int simple, int bitpix, int naxis, long naxes[], long pcount, long gcount)
write the required keywords for PrimaryGroup
linked list of FITS keywords
FITS::ValueType data_type
FitsArrayOption
Options on FITS array manipulations.
OFF_T set_next(OFF_T)
disable these functions, since they are inherited from PrimaryArray
const Double c
Fundamental physical constants (SI units):
FITS array of given type.
PrimaryArray< double > DoublePrimaryArray
Int tbcol(int n)
position in which column starts
double crpix(int n) const
double crpix(int n) const
void set_fitsrow(Int)
sets field addresses in the current row
void storeparm(const TYPE *source)
void copyparm(double *target) const
FitsArray< FitsVADesc > VADescFitsArray
double tscal(int n) const
ImageExtension< short > ShortImageExtension
BinaryTableExtension & operator--()
TYPE * array
the allocated array
Int gcount() const
Return basic parameters of a random group.
int set_next(int)
prepare to write the next N rows
double crota(int n) const
double crval(int n) const
double pscal(int n) const
FitsField< double > DoubleFitsField
AsciiTableExtension(FitsInput &, FITSErrorHandler errhandler=FITSError::defaultHandler)
const char * tunit(int n) const
Bool isatnull(int n) const
PrimaryArray(FitsInput &, FITSErrorHandler=FITSError::defaultHandler)
constructor from a FitsInput
double operator()(int, int, int, int, int) const
The overloaded operator functions `()' all return physical data, i.
int write_binTbl_hdr(FitsOutput &, long, int, const char **, const char **, const char **, const char *, long)
create a binary table header without using FitsKeywordList objet.
int readrow()
read and write the next FITS data row
void spaces(const char *n=0, const char *c=0)
add a spaces line
ReservedName
FITS Reserved Names.
static void defaultHandler(const char *errMessage, ErrorLevel severity)
The default error handler.
FITS array of FitsBit type Note: We must specify a FitsArray<FitsBit> as a specialization; ...
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.
FitsField< short > ShortFitsField