#include <RaDecByAst.hxx>
Public Member Functions | |
RaDecByAst (const FitsFile &aFile) | |
Constructor takes a FitsFile object. | |
virtual | ~RaDecByAst () |
Destructor. | |
void | setSource (IntMap &tbls, IntMap &cols, StringMap units) |
void | setTarget (IntMap &cols, StringMap units) |
void | doit2 (TableData< DataType > &inpData, TableData< DataType > &data, int row1, int row2) |
Fill up the data columns for the ten WCS derived quantities. | |
void | doit (TableData< DataType > &data, int row1, int row2) |
Private Attributes | |
FitsFile | mFile |
int | extnumColno |
int | raColno |
int | decColno |
int | xColno |
int | yColno |
int | extnumTblno |
int | xTblno |
int | yTblno |
double | decFact |
double | raFact |
Logger | log |
Implements method to determine RA and DEC of sources in catalogue files calculated from WCS information encoded in FITS files.
RaDecByAst< DataType >::RaDecByAst | ( | const FitsFile & | aFile | ) | [inline] |
Constructor takes a FitsFile object.
virtual RaDecByAst< DataType >::~RaDecByAst | ( | ) | [inline, virtual] |
Destructor.
void RaDecByAst< DataType >::doit | ( | TableData< DataType > & | data, | |
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Run the data method. This fills up the appropriate columns in the TableData object over the given row range where row>=row1 and row<row2
Implements DataMethod< DataType >.
void RaDecByAst< DataType >::doit2 | ( | TableData< DataType > & | inpData, | |
TableData< DataType > & | data, | |||
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Fill up the data columns for the ten WCS derived quantities.
Implements DataMethod< DataType >.
References Logger::addError(), TableData< DataType >::assign(), FitsFile::cCRVAL1, FitsFile::cCRVAL2, ExpectNames::dec, RaDecByAst< DataType >::decColno, RaDecByAst< DataType >::decFact, ExpectNames::extNum, RaDecByAst< DataType >::extnumColno, FitsFile::getFileName(), FitsFile::getNumCards(), FitsFile::getNumHdus(), RaDecByAst< DataType >::log, RaDecByAst< DataType >::mFile, FitsFile::movabsHdu(), StringOps::NumToString(), ExpectNames::ra, RaDecByAst< DataType >::raColno, RaDecByAst< DataType >::raFact, FitsFile::readCard(), FitsFile::readKey(), TableData< DataType >::value(), RaDecByAst< DataType >::xColno, and RaDecByAst< DataType >::yColno.
void RaDecByAst< DataType >::setSource | ( | IntMap & | tbls, | |
IntMap & | cols, | |||
StringMap | units | |||
) | [inline, virtual] |
Source is the data column corresponding to the HDU number in the FITS file in which the WCS information is encoded
Implements DataMethod< DataType >.
References RaDecByAst< DataType >::extnumColno, RaDecByAst< DataType >::extnumTblno, RaDecByAst< DataType >::xColno, RaDecByAst< DataType >::xTblno, RaDecByAst< DataType >::yColno, and RaDecByAst< DataType >::yTblno.
void RaDecByAst< DataType >::setTarget | ( | IntMap & | cols, | |
StringMap | units | |||
) | [inline, virtual] |
Targets are the data columns corresponing to the ten WCS derived quantities
Implements DataMethod< DataType >.
References RaDecByAst< DataType >::decColno, RaDecByAst< DataType >::decFact, Converter::getFactor(), RaDecByAst< DataType >::raColno, and RaDecByAst< DataType >::raFact.
int RaDecByAst< DataType >::decColno [private] |
Referenced by RaDecByAst< DataType >::doit2(), and RaDecByAst< DataType >::setTarget().
double RaDecByAst< DataType >::decFact [private] |
Referenced by RaDecByAst< DataType >::doit2(), and RaDecByAst< DataType >::setTarget().
int RaDecByAst< DataType >::extnumColno [private] |
Referenced by RaDecByAst< DataType >::doit2(), and RaDecByAst< DataType >::setSource().
int RaDecByAst< DataType >::extnumTblno [private] |
Referenced by RaDecByAst< DataType >::setSource().
Logger RaDecByAst< DataType >::log [private] |
Referenced by RaDecByAst< DataType >::doit2().
FitsFile RaDecByAst< DataType >::mFile [private] |
Referenced by RaDecByAst< DataType >::doit2().
int RaDecByAst< DataType >::raColno [private] |
Referenced by RaDecByAst< DataType >::doit2(), and RaDecByAst< DataType >::setTarget().
double RaDecByAst< DataType >::raFact [private] |
Referenced by RaDecByAst< DataType >::doit2(), and RaDecByAst< DataType >::setTarget().
int RaDecByAst< DataType >::xColno [private] |
Referenced by RaDecByAst< DataType >::doit2(), and RaDecByAst< DataType >::setSource().
int RaDecByAst< DataType >::xTblno [private] |
Referenced by RaDecByAst< DataType >::setSource().
int RaDecByAst< DataType >::yColno [private] |
Referenced by RaDecByAst< DataType >::doit2(), and RaDecByAst< DataType >::setSource().
int RaDecByAst< DataType >::yTblno [private] |
Referenced by RaDecByAst< DataType >::setSource().