casa
5.7.0-16
|
A helper class for MSFitsInput. More...
#include <MSFitsInput.h>
Public Member Functions | |
MSPrimaryTableHolder () | |
This is a helper class to avoid cumbersome switch statements on the template type of the primary array It forwards all the PrimaryTable member function we need in the filler. More... | |
MSPrimaryTableHolder (FitsInput &infile) | |
Construct from an input file containing a FITS primary group hdu. More... | |
~MSPrimaryTableHolder () | |
void | attach (FitsInput &infile) |
Attach to the input file, create the appropriate PrimaryArray. More... | |
void | detach () |
Detach from the input file. More... | |
Int | dims () |
Number of dimensions. More... | |
Int | dim (Int i) |
Length of i'th axis. More... | |
Char * | ctype (Int i) |
Coordinate type. More... | |
Double | crval (Int i) |
Coordinate reference value. More... | |
Double | crpix (Int i) |
Coordinate reference pixel. More... | |
Double | cdelt (Int i) |
Coordinate delta. More... | |
const FitsKeyword * | kw (const FITS::ReservedName &n) |
Keyword of given type. More... | |
ConstFitsKeywordList & | kwlist () |
All keywords. More... | |
const FitsKeyword * | nextkw () |
Advance to next keyword. More... | |
Int | read () |
Read the next group. More... | |
Private Attributes | |
HeaderDataUnit * | hdu_p |
PrimaryTable< Short > * | ps |
PrimaryTable< FitsLong > * | pl |
PrimaryTable< Float > * | pf |
PrimaryTable< uChar > * | pb |
A helper class for MSFitsInput.
Internal
This class can hold a primary array of several datatypes
This is a helper class to avoid cumbersome switch statements on the template type of the primary array It forwards all the PrimaryArray member functions we need in the filler.
Definition at line 64 of file MSFitsInput.h.
casacore::MSPrimaryTableHolder::MSPrimaryTableHolder | ( | ) |
This is a helper class to avoid cumbersome switch statements on the template type of the primary array It forwards all the PrimaryTable member function we need in the filler.
Construct an empty holder, used to attach to later
casacore::MSPrimaryTableHolder::MSPrimaryTableHolder | ( | FitsInput & | infile | ) |
Construct from an input file containing a FITS primary group hdu.
Throws an exception if the datatype is not Short, FitsLong or Float
casacore::MSPrimaryTableHolder::~MSPrimaryTableHolder | ( | ) |
void casacore::MSPrimaryTableHolder::attach | ( | FitsInput & | infile | ) |
Attach to the input file, create the appropriate PrimaryArray.
Throws an exception if the datatype is not Short, FitsLong or Float
Coordinate delta.
Definition at line 109 of file MSFitsInput.h.
References casacore::PrimaryArray< TYPE >::cdelt(), pf, pl, and ps.
Coordinate reference pixel.
Definition at line 105 of file MSFitsInput.h.
References casacore::PrimaryArray< TYPE >::crpix(), pf, pl, and ps.
Coordinate reference value.
Definition at line 101 of file MSFitsInput.h.
References casacore::PrimaryArray< TYPE >::crval(), pf, pl, and ps.
Coordinate type.
Definition at line 97 of file MSFitsInput.h.
References casacore::PrimaryArray< TYPE >::ctype(), pf, pl, and ps.
void casacore::MSPrimaryTableHolder::detach | ( | ) |
Detach from the input file.
Length of i'th axis.
Definition at line 93 of file MSFitsInput.h.
References casacore::HeaderDataUnit::dim(), and hdu_p.
|
inline |
Number of dimensions.
Definition at line 89 of file MSFitsInput.h.
References casacore::HeaderDataUnit::dims(), and hdu_p.
|
inline |
Keyword of given type.
Definition at line 113 of file MSFitsInput.h.
References hdu_p, and casacore::HeaderDataUnit::kw().
|
inline |
All keywords.
Definition at line 117 of file MSFitsInput.h.
References hdu_p, and casacore::HeaderDataUnit::kwlist().
|
inline |
Advance to next keyword.
Definition at line 121 of file MSFitsInput.h.
References hdu_p, and casacore::HeaderDataUnit::nextkw().
|
inline |
Read the next group.
Definition at line 125 of file MSFitsInput.h.
References pb, pf, pl, ps, and casacore::PrimaryTable< TYPE >::read().
|
private |
|
private |
Definition at line 139 of file MSFitsInput.h.
Referenced by read().
|
private |
|
private |
|
private |