28 #ifndef MS_MSFITSINPUT_H
29 #define MS_MSFITSINPUT_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/Arrays/Matrix.h>
33 #include <casacore/casa/Arrays/Vector.h>
34 #include <casacore/casa/Containers/Block.h>
35 #include <casacore/casa/Containers/Record.h>
36 #include <casacore/fits/FITS/fits.h>
37 #include <casacore/fits/FITS/hdu.h>
38 #include <casacore/casa/Logging/LogIO.h>
39 #include <casacore/ms/MeasurementSets/MeasurementSet.h>
40 #include <casacore/measures/Measures/MDirection.h>
41 #include <casacore/measures/Measures/MFrequency.h>
42 #include <casacore/casa/BasicSL/String.h>
43 #include <casacore/ms/MeasurementSets/MSTileLayout.h>
44 #include <casacore/tables/Tables/BaseTable.h>
51 template <
class T>
class ScalarColumn;
131 else cout <<
"can not read the table" << endl;
237 {
return pf ? (*pf)(i) : (
pl ? (*
pl)(i) : (*
ps)(i));}
list of read-only FITS keywords
ReservedName
FITS Reserved Names.
Types
Types of known MDirections Warning: The order defines the order in the translation matrix FromTo in ...
Types
Types of known MFrequencies Warning: The order defines the order in the translation matrix FromTo in...
A helper class for MSFitsInput.
PrimaryGroup< Float > * pf
const FitsKeyword * nextkw()
Advance to next keyword.
Int gcount() const
Number of groups.
MSPrimaryGroupHolder(FitsInput &infile)
Construct from an input file containing a FITS primary group hdu.
void detach()
Detach from the input file.
Double crval(Int i)
Coordinate reference value.
Int dim(Int i)
Length of i'th axis.
Double operator()(Int i) const
Get group data with index i, scaled and converted to Double.
Double crpix(Int i)
Coordinate reference pixel.
Int pcount() const
Number of parameters.
Int dims()
Number of dimensions.
Double cdelt(Int i)
Coordinate delta.
Char * ctype(Int i)
Coordinate type.
PrimaryGroup< FitsLong > * pl
const FitsKeyword * kw(const FITS::ReservedName &n)
Keyword of given type.
PrimaryGroup< Short > * ps
MSPrimaryGroupHolder()
This is a helper class to avoid cumbersome switch statements on the template type of the primary grou...
ConstFitsKeywordList & kwlist()
All keywords.
Char * ptype(Int i) const
Parameter type.
Int read()
Read the next group.
void attach(FitsInput &infile)
Attach to the input file, create the appropriate PrimaryGroup.
Double parm(Int i)
Get i'th parameter.
PrimaryTable< Float > * pf
Int read()
Read the next group.
PrimaryTable< FitsLong > * pl
const FitsKeyword * kw(const FITS::ReservedName &n)
Keyword of given type.
ConstFitsKeywordList & kwlist()
All keywords.
PrimaryTable< uChar > * pb
Int dim(Int i)
Length of i'th axis.
const FitsKeyword * nextkw()
Advance to next keyword.
Int dims()
Number of dimensions.
void detach()
Detach from the input file.
Char * ctype(Int i)
Coordinate type.
Double crpix(Int i)
Coordinate reference pixel.
PrimaryTable< Short > * ps
void attach(FitsInput &infile)
Attach to the input file, create the appropriate PrimaryArray.
Double cdelt(Int i)
Coordinate delta.
MSPrimaryTableHolder()
This is a helper class to avoid cumbersome switch statements on the template type of the primary arra...
Double crval(Int i)
Coordinate reference value.
MSPrimaryTableHolder(FitsInput &infile)
Construct from an input file containing a FITS primary group hdu.
@ Standard
Standard, optimizes i/o by using large tiles (128 kB)
char * ctype(int n) const
double cdelt(int n) const
double crpix(int n) const
double crval(int n) const
int read()
read, or write the next group
Int gcount() const
Return basic parameters of a random group.
char * ptype(int n) const
int read()
The ‘read()’ and ‘write()’ functions control reading and writing data from the external FITS I/O medi...
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.