Go to the documentation of this file.
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>
130 else cout <<
"can not read the table" << endl;
236 {
return pf ? (*pf)(i) : (
pl ? (*
pl)(i) : (*
ps)(i));}
ReservedName
FITS Reserved Names.
Double cdelt(Int i)
Coordinate delta.
Char * ctype(Int i)
Coordinate type.
int read()
read, or write the next group
PrimaryGroup< FitsLong > * pl
PrimaryGroup< Short > * ps
MSPrimaryTableHolder()
This is a helper class to avoid cumbersome switch statements on the template type of the primary arra...
char * ctype(int n) const
Double parm(Int i)
Get i'th parameter.
Int dims()
Number of dimensions.
MSPrimaryGroupHolder()
This is a helper class to avoid cumbersome switch statements on the template type of the primary grou...
Int dim(Int i)
Length of i'th axis.
double crpix(int n) const
char * ptype(int n) const
const FitsKeyword * kw(const FITS::ReservedName &n)
Keyword of given type.
MSPrimaryGroupHolder(FitsInput &infile)
Construct from an input file containing a FITS primary group hdu.
PrimaryTable< Short > * ps
MSPrimaryTableHolder(FitsInput &infile)
Construct from an input file containing a FITS primary group hdu.
Int dims()
Number of dimensions.
Int gcount() const
Number of groups.
double crval(int n) const
PrimaryTable< Float > * pf
A helper class for MSFitsInput.
const FitsKeyword * nextkw()
Advance to next keyword.
Int read()
Read the next group.
double cdelt(int n) const
ConstFitsKeywordList & kwlist()
All keywords.
PrimaryGroup< Float > * pf
Double crval(Int i)
Coordinate reference value.
Int pcount() const
Number of parameters.
this file contains all the compiler specific defines
Types
Types of known MFrequencies Warning: The order defines the order in the translation matrix FromTo in...
int read()
The ‘read()’ and ‘write()’ functions control reading and writing data from the external FITS I/O medi...
ConstFitsKeywordList & kwlist()
All keywords.
@ Standard
Standard, optimizes i/o by using large tiles (128 kB)
Double crpix(Int i)
Coordinate reference pixel.
void detach()
Detach from the input file.
const FitsKeyword * kw(const FITS::ReservedName &n)
Keyword of given type.
Char * ctype(Int i)
Coordinate type.
Char * ptype(Int i) const
Parameter type.
void attach(FitsInput &infile)
Attach to the input file, create the appropriate PrimaryGroup.
Int read()
Read the next group.
Double crval(Int i)
Coordinate reference value.
Int dim(Int i)
Length of i'th axis.
String: the storage and methods of handling collections of characters.
void detach()
Detach from the input file.
bool Bool
Define the standard types used by Casacore.
PrimaryTable< uChar > * pb
Types
Types of known MDirections Warning: The order defines the order in the translation matrix FromTo in ...
list of read-only FITS keywords
Double cdelt(Int i)
Coordinate delta.
Double operator()(Int i) const
Get group data with index i, scaled and converted to Double.
void attach(FitsInput &infile)
Attach to the input file, create the appropriate PrimaryArray.
Double crpix(Int i)
Coordinate reference pixel.
const FitsKeyword * nextkw()
Advance to next keyword.
PrimaryTable< FitsLong > * pl
Int gcount() const
Return basic parameters of a random group.