casacore
|
A helper class for MSFitsInput. More...
#include <MSFitsInput.h>
Public Member Functions | |
MSPrimaryGroupHolder () | |
This is a helper class to avoid cumbersome switch statements on the template type of the primary group It forwards all the PrimaryGroup member function we need in the filler. | |
MSPrimaryGroupHolder (FitsInput &infile) | |
Construct from an input file containing a FITS primary group hdu. | |
~MSPrimaryGroupHolder () | |
void | attach (FitsInput &infile) |
Attach to the input file, create the appropriate PrimaryGroup. | |
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 | gcount () const |
Number of groups. | |
Int | pcount () const |
Number of parameters. | |
Char * | ptype (Int i) const |
Parameter type. | |
Int | read () |
Read the next group. | |
Double | parm (Int i) |
Get i'th parameter. | |
Double | operator() (Int i) const |
Get group data with index i, scaled and converted to Double. | |
Private Attributes | |
HeaderDataUnit * | hdu_p |
PrimaryGroup< Short > * | ps |
PrimaryGroup< FitsLong > * | pl |
PrimaryGroup< Float > * | pf |
A helper class for MSFitsInput.
Internal
This class can hold a primary group of several datatypes
This is a helper class to avoid cumbersome switch statements on the template type of the primary group It forwards all the PrimaryGroup member functions we need in the filler.
Definition at line 153 of file MSFitsInput.h.
casacore::MSPrimaryGroupHolder::MSPrimaryGroupHolder | ( | ) |
This is a helper class to avoid cumbersome switch statements on the template type of the primary group It forwards all the PrimaryGroup member function we need in the filler.
Construct an empty holder, used to attach to later
casacore::MSPrimaryGroupHolder::MSPrimaryGroupHolder | ( | 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::MSPrimaryGroupHolder::~MSPrimaryGroupHolder | ( | ) |
void casacore::MSPrimaryGroupHolder::attach | ( | FitsInput & | infile | ) |
Attach to the input file, create the appropriate PrimaryGroup.
Throws an exception if the datatype is not Short, FitsLong or Float
Coordinate delta.
Definition at line 198 of file MSFitsInput.h.
References casacore::PrimaryArray< TYPE >::cdelt(), pf, pl, and ps.
Coordinate reference pixel.
Definition at line 194 of file MSFitsInput.h.
References casacore::PrimaryArray< TYPE >::crpix(), pf, pl, and ps.
Coordinate reference value.
Definition at line 190 of file MSFitsInput.h.
References casacore::PrimaryArray< TYPE >::crval(), pf, pl, and ps.
Coordinate type.
Definition at line 186 of file MSFitsInput.h.
References casacore::PrimaryArray< TYPE >::ctype(), pf, pl, and ps.
void casacore::MSPrimaryGroupHolder::detach | ( | ) |
Detach from the input file.
Length of i'th axis.
Definition at line 182 of file MSFitsInput.h.
References casacore::HeaderDataUnit::dim(), and hdu_p.
|
inline |
Number of dimensions.
Definition at line 178 of file MSFitsInput.h.
References casacore::HeaderDataUnit::dims(), and hdu_p.
|
inline |
Number of groups.
Definition at line 214 of file MSFitsInput.h.
References casacore::PrimaryGroup< TYPE >::gcount(), pf, pl, and ps.
|
inline |
Keyword of given type.
Definition at line 202 of file MSFitsInput.h.
References hdu_p, and casacore::HeaderDataUnit::kw().
|
inline |
All keywords.
Definition at line 206 of file MSFitsInput.h.
References hdu_p, and casacore::HeaderDataUnit::kwlist().
|
inline |
Advance to next keyword.
Definition at line 210 of file MSFitsInput.h.
References hdu_p, and casacore::HeaderDataUnit::nextkw().
Get group data with index i, scaled and converted to Double.
Definition at line 234 of file MSFitsInput.h.
Get i'th parameter.
Definition at line 230 of file MSFitsInput.h.
References casacore::PrimaryGroup< TYPE >::parm(), pf, pl, and ps.
|
inline |
Number of parameters.
Definition at line 218 of file MSFitsInput.h.
References casacore::PrimaryGroup< TYPE >::pcount(), pf, pl, and ps.
Parameter type.
Definition at line 222 of file MSFitsInput.h.
References pf, pl, ps, and casacore::PrimaryGroup< TYPE >::ptype().
|
inline |
Read the next group.
Definition at line 226 of file MSFitsInput.h.
References pf, pl, ps, and casacore::PrimaryGroup< TYPE >::read().
|
private |
|
private |
|
private |
|
private |