casa
$Rev:20696$
|
Accessor class for NRO 45m FITS data. More...
#include <NROFITSDataset.h>
Public Member Functions | |
NROFITSDataset (string name) | |
constructor | |
virtual | ~NROFITSDataset () |
destructor | |
virtual void | initialize () |
data initialization | |
virtual int | fillHeader () |
fill header from file | |
virtual int | fillRecord (int i) |
fill data record | |
virtual vector< vector< double > > | getSpectrum () |
get various parameters | |
virtual vector< double > | getSpectrum (int i) |
virtual int | getIndex (int irow) |
virtual int | getPolarizationNum () |
virtual uInt | getArrayId (string type) |
virtual double | getStartIntTime (int i) |
Protected Member Functions | |
int | fillHeader (int sameEndian) |
fill header information | |
int | readHeader (string &v, char *name) |
Read char data. | |
int | readTable (char *v, char *name) |
int | readTable (char *v, char *name, int clen, int idx) |
int | readTable (vector< char * > &v, char *name, int idx) |
int | readColumn (vector< string > &v, char *name) |
int | readColumn (vector< string > &v, char *name, int idx) |
int | readHeader (int &v, char *name, int b) |
Read int data. | |
int | readTable (int &v, char *name, int b) |
int | readTable (int &v, char *name, int b, int idx) |
int | readTable (vector< int > &v, char *name, int b, int idx) |
int | readColumn (vector< int > &v, char *name, int b) |
int | readColumn (vector< int > &v, char *name, int b, int idx) |
int | readHeader (float &v, char *name, int b) |
Read float data. | |
int | readTable (float &v, char *name, int b) |
int | readTable (float &v, char *name, int b, int idx) |
int | readTable (vector< float > &v, char *name, int b, int idx) |
int | readColumn (vector< float > &v, char *name, int b) |
int | readColumn (vector< float > &v, char *name, int b, int idx) |
int | readHeader (double &v, char *name, int b) |
Read double data. | |
int | readTable (double &v, char *name, int b) |
int | readTable (double &v, char *name, int b, int idx) |
int | readTable (vector< double > &v, char *name, int b, int idx) |
int | readColumn (vector< double > &v, char *name, int b) |
int | readColumn (vector< double > &v, char *name, int b, int idx) |
int | readARRY () |
read ARRY | |
double | radRA (string ra) |
Convert RA character representation to radian. | |
double | radDEC (string dec) |
Convert DEC character representation to radian. | |
void | getField () |
get field parameters for scan header | |
void | fillARYTP () |
fill array type | |
void | findData () |
find data for each ARYTP | |
int | getOffset (char *name) |
get offset bytes for attributes | |
Protected Attributes | |
int | numField_ |
convert frequency frame virtual double toLSR( double v, double t, double x, double y ) ; | |
int | numHdu_ |
number of HDU | |
vector< string > | ARYTP |
array type | |
vector< int > | arrayid_ |
reference index | |
vector< string > | forms_ |
field names | |
vector< string > | names_ |
field types | |
vector< string > | units_ |
field units | |
vector< int > | JDATA |
spectral data |
Accessor class for NRO 45m FITS data.
This class actually accesses data from NRO telescopes. This is specialized class for NRO 45m telescope with non-OTF observing mode. In contrast to other concrete classes, both fillHeader and fillRecord methods are implemented here. This is because that the output of non-OTF observing mode is in FITS format and is quite different format from that of OTF observing mode.
Note: Although the input data is FITS format, the class does not depend on cfitsio library;
Accessor class for NRO 45m FITS data.
Definition at line 73 of file NROFITSDataset.h.
NROFITSDataset::NROFITSDataset | ( | string | name | ) |
constructor
virtual NROFITSDataset::~NROFITSDataset | ( | ) | [virtual] |
destructor
void NROFITSDataset::fillARYTP | ( | ) | [protected] |
fill array type
virtual int NROFITSDataset::fillHeader | ( | ) | [virtual] |
fill header from file
Implements NRODataset.
int NROFITSDataset::fillHeader | ( | int | sameEndian | ) | [protected, virtual] |
fill header information
Implements NRODataset.
virtual int NROFITSDataset::fillRecord | ( | int | i | ) | [virtual] |
fill data record
Reimplemented from NRODataset.
void NROFITSDataset::findData | ( | ) | [protected] |
find data for each ARYTP
virtual uInt NROFITSDataset::getArrayId | ( | string | type | ) | [virtual] |
Reimplemented from NRODataset.
void NROFITSDataset::getField | ( | ) | [protected] |
get field parameters for scan header
virtual int NROFITSDataset::getIndex | ( | int | irow | ) | [virtual] |
Reimplemented from NRODataset.
int NROFITSDataset::getOffset | ( | char * | name | ) | [protected] |
get offset bytes for attributes
virtual int NROFITSDataset::getPolarizationNum | ( | ) | [virtual] |
Reimplemented from NRODataset.
virtual vector< vector<double> > NROFITSDataset::getSpectrum | ( | ) | [virtual] |
get various parameters
Reimplemented from NRODataset.
virtual vector<double> NROFITSDataset::getSpectrum | ( | int | i | ) | [virtual] |
Reimplemented from NRODataset.
virtual double NROFITSDataset::getStartIntTime | ( | int | i | ) | [virtual] |
Reimplemented from NRODataset.
virtual void NROFITSDataset::initialize | ( | ) | [virtual] |
data initialization
Reimplemented from NRODataset.
double NROFITSDataset::radDEC | ( | string | dec | ) | [protected] |
Convert DEC character representation to radian.
double NROFITSDataset::radRA | ( | string | ra | ) | [protected] |
Convert RA character representation to radian.
int NROFITSDataset::readARRY | ( | ) | [protected] |
read ARRY
int NROFITSDataset::readColumn | ( | vector< string > & | v, |
char * | name | ||
) | [protected] |
int NROFITSDataset::readColumn | ( | vector< string > & | v, |
char * | name, | ||
int | idx | ||
) | [protected] |
int NROFITSDataset::readColumn | ( | vector< int > & | v, |
char * | name, | ||
int | b | ||
) | [protected] |
int NROFITSDataset::readColumn | ( | vector< int > & | v, |
char * | name, | ||
int | b, | ||
int | idx | ||
) | [protected] |
int NROFITSDataset::readColumn | ( | vector< float > & | v, |
char * | name, | ||
int | b | ||
) | [protected] |
int NROFITSDataset::readColumn | ( | vector< float > & | v, |
char * | name, | ||
int | b, | ||
int | idx | ||
) | [protected] |
int NROFITSDataset::readColumn | ( | vector< double > & | v, |
char * | name, | ||
int | b | ||
) | [protected] |
int NROFITSDataset::readColumn | ( | vector< double > & | v, |
char * | name, | ||
int | b, | ||
int | idx | ||
) | [protected] |
int NROFITSDataset::readHeader | ( | string & | v, |
char * | name | ||
) | [protected] |
Read char data.
int NROFITSDataset::readHeader | ( | int & | v, |
char * | name, | ||
int | b | ||
) | [protected] |
Read int data.
int NROFITSDataset::readHeader | ( | float & | v, |
char * | name, | ||
int | b | ||
) | [protected] |
Read float data.
int NROFITSDataset::readHeader | ( | double & | v, |
char * | name, | ||
int | b | ||
) | [protected] |
Read double data.
int NROFITSDataset::readTable | ( | char * | v, |
char * | name | ||
) | [protected] |
int NROFITSDataset::readTable | ( | char * | v, |
char * | name, | ||
int | clen, | ||
int | idx | ||
) | [protected] |
int NROFITSDataset::readTable | ( | vector< char * > & | v, |
char * | name, | ||
int | idx | ||
) | [protected] |
int NROFITSDataset::readTable | ( | int & | v, |
char * | name, | ||
int | b | ||
) | [protected] |
int NROFITSDataset::readTable | ( | int & | v, |
char * | name, | ||
int | b, | ||
int | idx | ||
) | [protected] |
int NROFITSDataset::readTable | ( | vector< int > & | v, |
char * | name, | ||
int | b, | ||
int | idx | ||
) | [protected] |
int NROFITSDataset::readTable | ( | float & | v, |
char * | name, | ||
int | b | ||
) | [protected] |
int NROFITSDataset::readTable | ( | float & | v, |
char * | name, | ||
int | b, | ||
int | idx | ||
) | [protected] |
int NROFITSDataset::readTable | ( | vector< float > & | v, |
char * | name, | ||
int | b, | ||
int | idx | ||
) | [protected] |
int NROFITSDataset::readTable | ( | double & | v, |
char * | name, | ||
int | b | ||
) | [protected] |
int NROFITSDataset::readTable | ( | double & | v, |
char * | name, | ||
int | b, | ||
int | idx | ||
) | [protected] |
int NROFITSDataset::readTable | ( | vector< double > & | v, |
char * | name, | ||
int | b, | ||
int | idx | ||
) | [protected] |
vector<int> NROFITSDataset::arrayid_ [protected] |
reference index
Definition at line 169 of file NROFITSDataset.h.
vector<string> NROFITSDataset::ARYTP [protected] |
array type
Definition at line 166 of file NROFITSDataset.h.
vector<string> NROFITSDataset::forms_ [protected] |
field names
Definition at line 172 of file NROFITSDataset.h.
vector<int> NROFITSDataset::JDATA [protected] |
spectral data
Definition at line 181 of file NROFITSDataset.h.
vector<string> NROFITSDataset::names_ [protected] |
field types
Definition at line 175 of file NROFITSDataset.h.
int NROFITSDataset::numField_ [protected] |
convert frequency frame virtual double toLSR( double v, double t, double x, double y ) ;
number of column for scan header
Definition at line 160 of file NROFITSDataset.h.
int NROFITSDataset::numHdu_ [protected] |
number of HDU
Definition at line 163 of file NROFITSDataset.h.
vector<string> NROFITSDataset::units_ [protected] |
field units
Definition at line 178 of file NROFITSDataset.h.