26#ifndef MS_MSFITSINPUT_H
27#define MS_MSFITSINPUT_H
29#include <casacore/casa/aips.h>
30#include <casacore/casa/Arrays/Matrix.h>
31#include <casacore/casa/Arrays/Vector.h>
32#include <casacore/casa/Containers/Block.h>
33#include <casacore/casa/Containers/Record.h>
34#include <casacore/fits/FITS/fits.h>
35#include <casacore/fits/FITS/hdu.h>
36#include <casacore/casa/Logging/LogIO.h>
37#include <casacore/ms/MeasurementSets/MeasurementSet.h>
38#include <casacore/measures/Measures/MDirection.h>
39#include <casacore/measures/Measures/MFrequency.h>
40#include <casacore/casa/BasicSL/String.h>
41#include <casacore/ms/MeasurementSets/MSTileLayout.h>
42#include <casacore/tables/Tables/BaseTable.h>
49template <
class T>
class ScalarColumn;
129 else cout <<
"can not read the table" << endl;
235 {
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
Int gcount() const
Number of groups.
Char * ctype(Int i)
Coordinate type.
MSPrimaryGroupHolder(FitsInput &infile)
Construct from an input file containing a FITS primary group hdu.
ConstFitsKeywordList & kwlist()
All keywords.
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.
Char * ptype(Int i) const
Parameter type.
Int pcount() const
Number of parameters.
const FitsKeyword * kw(const FITS::ReservedName &n)
Keyword of given type.
const FitsKeyword * nextkw()
Advance to next keyword.
Int dims()
Number of dimensions.
Double cdelt(Int i)
Coordinate delta.
PrimaryGroup< FitsLong > * pl
PrimaryGroup< Short > * ps
MSPrimaryGroupHolder()
This is a helper class to avoid cumbersome switch statements on the template type of the primary grou...
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.
const FitsKeyword * kw(const FITS::ReservedName &n)
Keyword of given type.
const FitsKeyword * nextkw()
Advance to next keyword.
PrimaryTable< FitsLong > * pl
PrimaryTable< uChar > * pb
Int dim(Int i)
Length of i'th axis.
Char * ctype(Int i)
Coordinate type.
Int dims()
Number of dimensions.
ConstFitsKeywordList & kwlist()
All keywords.
void detach()
Detach from the input file.
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)
double cdelt(int n) const
double crpix(int n) const
double crval(int n) const
char * ctype(int n) const
Random Group datastructure.
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.