casa
$Rev:20696$
|
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. | |
MSPrimaryTableHolder (FitsInput &infile) | |
Construct from an input file containing a FITS primary group hdu. | |
~MSPrimaryTableHolder () | |
void | attach (FitsInput &infile) |
Attach to the input file, create the appropriate PrimaryArray. | |
void | detach () |
Detach from the input file. | |
Int | dims () |
Number of dimensions. | |
Int | dim (Int i) |
Length of i'th axis. | |
Char * | ctype (Int i) |
Coordinate type. | |
Double | crval (Int i) |
Coordinate reference value. | |
Double | crpix (Int i) |
Coordinate reference pixel. | |
Double | cdelt (Int i) |
Coordinate delta. | |
const FitsKeyword * | kw (const FITS::ReservedName &n) |
Keyword of given type. | |
ConstFitsKeywordList & | kwlist () |
All keywords. | |
const FitsKeyword * | nextkw () |
Advance to next keyword. | |
Int | read () |
Read the next group. | |
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.
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
Construct from an input file containing a FITS primary group hdu.
Throws an exception if the datatype is not Short, FitsLong or Float
void casa::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
Double casa::MSPrimaryTableHolder::cdelt | ( | Int | i | ) | [inline] |
Coordinate delta.
Definition at line 109 of file MSFitsInput.h.
References casa::PrimaryArray< TYPE >::cdelt(), pf, pl, and ps.
Double casa::MSPrimaryTableHolder::crpix | ( | Int | i | ) | [inline] |
Coordinate reference pixel.
Definition at line 105 of file MSFitsInput.h.
References casa::PrimaryArray< TYPE >::crpix(), pf, pl, and ps.
Double casa::MSPrimaryTableHolder::crval | ( | Int | i | ) | [inline] |
Coordinate reference value.
Definition at line 101 of file MSFitsInput.h.
References casa::PrimaryArray< TYPE >::crval(), pf, pl, and ps.
Char* casa::MSPrimaryTableHolder::ctype | ( | Int | i | ) | [inline] |
Coordinate type.
Definition at line 97 of file MSFitsInput.h.
References casa::PrimaryArray< TYPE >::ctype(), pf, pl, and ps.
void casa::MSPrimaryTableHolder::detach | ( | ) |
Detach from the input file.
Int casa::MSPrimaryTableHolder::dim | ( | Int | i | ) | [inline] |
Length of i'th axis.
Definition at line 93 of file MSFitsInput.h.
References casa::HeaderDataUnit::dim(), and hdu_p.
Int casa::MSPrimaryTableHolder::dims | ( | ) | [inline] |
Number of dimensions.
Definition at line 89 of file MSFitsInput.h.
References casa::HeaderDataUnit::dims(), and hdu_p.
const FitsKeyword* casa::MSPrimaryTableHolder::kw | ( | const FITS::ReservedName & | n | ) | [inline] |
Keyword of given type.
Definition at line 113 of file MSFitsInput.h.
References hdu_p, and casa::HeaderDataUnit::kw().
ConstFitsKeywordList& casa::MSPrimaryTableHolder::kwlist | ( | ) | [inline] |
All keywords.
Definition at line 117 of file MSFitsInput.h.
References hdu_p, and casa::HeaderDataUnit::kwlist().
const FitsKeyword* casa::MSPrimaryTableHolder::nextkw | ( | ) | [inline] |
Advance to next keyword.
Definition at line 121 of file MSFitsInput.h.
References hdu_p, and casa::HeaderDataUnit::nextkw().
Int casa::MSPrimaryTableHolder::read | ( | ) | [inline] |
Read the next group.
Definition at line 125 of file MSFitsInput.h.
References pb, pf, pl, ps, and casa::PrimaryTable< TYPE >::read().
HeaderDataUnit* casa::MSPrimaryTableHolder::hdu_p [private] |
PrimaryTable<uChar>* casa::MSPrimaryTableHolder::pb [private] |
Definition at line 139 of file MSFitsInput.h.
Referenced by read().
PrimaryTable<Float>* casa::MSPrimaryTableHolder::pf [private] |
PrimaryTable<FitsLong>* casa::MSPrimaryTableHolder::pl [private] |
PrimaryTable<Short>* casa::MSPrimaryTableHolder::ps [private] |